IDEAS home Printed from https://ideas.repec.org/a/bla/jorssc/v32y1983i3p276-286.html
   My bibliography  Save this article

Analytic Comparison of Three General‐Purpose Methods for the Computer Generation of Discrete Random Variables

Author

Listed:
  • Arthur V. Peterson
  • Richard A. Kronmal

Abstract

Three general‐purpose methods for generating large numbers of discrete random variables are compared: the alias method, the indexed‐search method, and the Marsaglia table method. Unlike previous comparisons, analytic comparisons are emphasized. Results indicate that for any distribution the alias method has fewer operations and thus is faster than the indexed search method. Conclusions about relative speed of the table method, however, are highly dependent on the distribution. For speed and accuracy, the alias method is recommended as a general‐purpose method for generating large numbers of discrete random variables. Timing results are also presented and discussed, and compared with others in the recent literature.

Suggested Citation

  • Arthur V. Peterson & Richard A. Kronmal, 1983. "Analytic Comparison of Three General‐Purpose Methods for the Computer Generation of Discrete Random Variables," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 32(3), pages 276-286, November.
  • Handle: RePEc:bla:jorssc:v:32:y:1983:i:3:p:276-286
    DOI: 10.2307/2347950
    as

    Download full text from publisher

    File URL: https://doi.org/10.2307/2347950
    Download Restriction: no

    File URL: https://libkey.io/10.2307/2347950?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:bla:jorssc:v:32:y:1983:i:3:p:276-286. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Wiley Content Delivery (email available below). General contact details of provider: https://edirc.repec.org/data/rssssea.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.