A Method for Computer Generation of Variates from Arbitrary Continuous Distributions
Authors:
- Gary UlrichGUGary Ulrich
- Layne T. WatsonLWLayne T. Watson
- 1 March 1987
- journal article
- Published by Society for Industrial & Applied Mathematics (SIAM) in SIAM Journal on Scientific and Statistical Computing
- Vol. 8 (2) , 185-197
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.
Keywords
This publication has 13 references indexed in Scilit:
- Random variate generation for unimodal and monotone densitiesComputing, 1984
- Monotone and Convex Approximation by Splines: Error Estimates and a Curve Fitting AlgorithmSIAM Journal on Numerical Analysis, 1982
- A note on approximations in random variate generationJournal of Statistical Computation and Simulation, 1982
- Computer methods for efficient sampling from largely arbitrary statistical distributionsComputing, 1981
- Monotone Piecewise Cubic InterpolationSIAM Journal on Numerical Analysis, 1980
- A Practical Guide to Splines1978
- The Generation of Gamma Variables with Non-Integral Shape ParameterJournal of the Royal Statistical Society Series C: Applied Statistics, 1977
- A Note on a New Method of Histogram SamplingJournal of the Operational Research Society, 1974
- Algorithm 370: General random number generator [G5]Communications of the ACM, 1970
- A pseudo-random number generator for the System/360IBM Systems Journal, 1969