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

Efficient Generation of Logarithmically Distributed Pseudo‐Random Variables

Author

Listed:
  • A. W. Kemp

Abstract

A one‐line algorithm LB is given for generating samples from the logarithmic series distribution. Two independent uniform random variables are converted into a single logarithmic variable by use of a structural property of the distribution. Faster versions of the method, algorithms LBM and LK, employ simple initial tests which identify those pairs of uniform random variables which yield the most frequently occurring values of the logarithmic variable. Comparison with a search method, algorithm LS, shows that the search method is faster when the parameter a of the logarithmic distribution is less than about 0‐95. However, values of a greater than 095 are often encountered. In ecological contexts a ranges from 0‐9 to 0‐9999; here the search method becomes prohibitively slow, and the algorithms based on the structural method are preferable. Both methods lead to very short, portable, procedures which require a trivial amount of storage.

Suggested Citation

  • A. W. Kemp, 1981. "Efficient Generation of Logarithmically Distributed Pseudo‐Random Variables," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 30(3), pages 249-253, November.
  • Handle: RePEc:bla:jorssc:v:30:y:1981:i:3:p:249-253
    DOI: 10.2307/2346348
    as

    Download full text from publisher

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

    File URL: https://libkey.io/10.2307/2346348?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
    ---><---

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Hofert, Marius, 2021. "Right-truncated Archimedean and related copulas," Insurance: Mathematics and Economics, Elsevier, vol. 99(C), pages 79-91.

    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:30:y:1981:i:3:p:249-253. 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.