Skip to main content
Log in

Sampling from binomial and poisson distributions: A method with bounded computation times

Erzeugung Binomial- und Poisson-verteilter Zufallszahlen: Eine Methode mit beschränkten Rechenzeiten

  • Published:
Computing Aims and scope Submit manuscript

Abstract

An accurate acceptance-rejection algorithm is devised and tested. The procedure requires an average of less than 3 uniform deviates whenever the standard deviation σ of the distribution is at least 4, and this number decreases monotonically to 2.63 as σ→∞. Variable parameters are permitted, and no subroutines for sampling from other statistical distributions are needed.

Zusammenfassung

Ein exakter Verwerfungsalgorithmus wird konstruiert und ausgetestet. Das Verfahren erfordert durchschnittlich weniger als 3 gleichverteilte Zufallszahlen, solange die Standardabweichung σ der Verteilung mindestens 4 beträgt; diese Anzahl fällt monoton gegen 2,63 für σ→∞. Variable Parameter sind zugelassen; es werden keinerlei Unterprogramme für Stichproben von anderen statistischen Verteilungen benötigt.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Abramowitz, M., Stegun, I. A.: Handbook of mathematical functions. Dover Publication Inc. 1972.

  2. Ahrens, J. H., Dieter, U.: Computer methods for sampling from the exponential and normal distributions. Comm. ACM15, 873–882 (1972).

    Google Scholar 

  3. Ahrens, J. H., Dieter, U.: Computer methods for sampling from gamma, beta, Poisson and binomial distributions. Computing12, 223–246 (1974).

    Google Scholar 

  4. Fishman, G. S.: Sampling from the Poisson distribution on a computer. Computing17, 147–156 (1976).

    Google Scholar 

  5. Fishman, G. S.: Sampling from the binomial distribution on a computer. Technical Report No 77-4, Curriculum in Operations Research and Systems Analysis, University of North Carolina at Chapel Hill, May 1977.

  6. Fishman, G. S.: Principles of discrete event simulation. J. Wiley 1978.

  7. Knuth, D. E.: The art of computer programming, Vol. II: Seminumerical algorithms. Addison Wesley 1969.

  8. Marsaglia, G.: Random variables and computers. Transactions, Third Prague Conference on Information Theory, Statistics and Decision Functions, Prague 1964, 499–512.

  9. Vàduva, I.: On computer generation of gamma variables by rejection and composition procedures. Math. Operationsforschung und Statistik8, 545–576 (1977).

    Google Scholar 

  10. Walker, A. J.: An efficient method for generating discrete random variables with general distributions. ACM Transactions on Math. Software3, 253–256 (1977).

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Additional information

This research was supported by the Austrian Research Council (Fonds zur Förderung der wissenschaftlichen Forschung).

Rights and permissions

Reprints and permissions

About this article

Cite this article

Ahrens, J.H., Dieter, U. Sampling from binomial and poisson distributions: A method with bounded computation times. Computing 25, 193–208 (1980). https://doi.org/10.1007/BF02241999

Download citation

  • Received:

  • Revised:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF02241999

Key words and phrases

Navigation