A Method for Computer Generation of Variates from Arbitrary Continuous Distributions

Authors:
  • GUGary Ulrich
    Gary Ulrich
  • LWLayne T. Watson
    Layne T. Watson

Abstract
If X is a continuous random variable with cumulative distribution function (cdf) $F(x)$, then the most direct means of generating a variate from this distribution is the inverse cdf transform, $X = F^{ - 1} (U)$, where U is a random uniform variate. If $f(x)$ is the corresponding density function then X and U, as defined above, must satisfy the differential equation, $X' = {1/{f(X)}}$. This differential equation is applied, first, in the high accuracy computation of distribution percentiles. The differential equation is then used to motivate an interpolatory Runge-Kutta algorithm to approximate the inverse cdf in the transform described above. Finally, the best discrete least squares cubic spline approximation to the inverse cdf is constructed for the approximation of the inverse cdf. Comparisons between inverse cdf approximations are made on the basis of accuracy, efficiency, and setup requirements for the normal, exponential, Cauchy and gamma distributions.

This publication has 13 references indexed in Scilit: