Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article
Free access

The patchwork rejection technique for sampling from unimodal distributions

Published: 01 January 1999 Publication History
  • Get Citation Alerts
  • Abstract

    We report on both theoretical developments and comutational experience with the patchwork rejection technique in Zechner and Stadlober [1993] and Zechner [1997]. The basic approach is due to Minh [1988], who suggested a special sampling method for the gamma distribution. The method's general objective is to rearrange the area below the density of histogram f (x) in the body of the distribution by certain point reflections such that variates may be generated efficiently within a large center interval. This is carried out via uniform hat functions, combined with minorizing rectangles for immediate acceptance of one transformed uniform deviate. The remaining tails of f(x) are covered by exponential functions. Experiments show that patchwork rejection algorithms are in general faster than their competitors at the cost of higher set-up times.

    References

    [1]
    AHRENS, J. H. AND DIETER, U. 1982a. Generating gamma variates by a modified rejection technique. Commun. ACM 25, 1 (Jan.), 47-54.
    [2]
    AHRENS, J. H. AND DIETER, U. 1982b. Computer generation of Poisson deviates from modified normal distributions. ACM Trans. Math. Softw. 8, 2 (June), 163-179.
    [3]
    DEVROYE, L. 1987. A simple generator for discrete log-concave distributions. Computing 39, 1 (1987), 87-91.
    [4]
    H RMANN, W. 1992. The transformed rejection method for generating Poisson random variables. Insurance: Math. Econ. 11, 1-7.
    [5]
    H RMANN, W. 1993. The generation of binomial variates. J. Stat. Comput. Simul. 46, 1/2, 101-110.
    [6]
    H RMANN, W. 1994. A universal generator for discrete log-concave distributions. Computing 52, 1, 89-96.
    [7]
    H RMANN, W. 1995. A rejection technique for sampling from T-concave distributions. ACM Trans. Math. Softw. 21, 2 (June), 182-193.
    [8]
    H RMANN, W. AND DERFLINGER, G. 1996. Rejection-inversion to generate variates from monotone discrete distributions. ACM Trans. Model. Comput. Simul. 6, 3 (July), 169-184.
    [9]
    H RMANN, W. AND DERFLINGER, G. 1997. An automatic generator for a large class of unimodal discrete distributions. In ESM97, Gaining Competitive Advantage Through Simulation Technologies, A. R. Kaylan and A. Lehmann, Eds. 139-144.
    [10]
    KACHITVICHYANUKUL, V. AND SCHMEISER, B.W. 1985. Computer generation of hypergeometric random variates. J. Stat. Comput. Simul. 22, 1, 127-145.
    [11]
    KACHITVICHYANUKUL, V. AND SCHMEISER, B. W. 1988. Binomial random variate generation. Commun. ACM 31, 2 (Feb. 1988), 216-222.
    [12]
    KEMP, A. W. 1990. Patchwork rejection algorithms. J. Comput. Appl. Math. 31, 1 (July 1990), 127-131.
    [13]
    MINH, D. L. 1988. Generating gamma variates. ACM Trans. Math. Softw. 14, 3 (Sept. 1988), 261-266.
    [14]
    SAKASEGAWA, H. 1983. Stratified rejection and squeeze method for generating beta random numbers. Annual Institute Statistical Math. 35, B, 291-302.
    [15]
    SCHMEISER, B. W. AND BABU, A. J. G. 1980. Beta variate generation via exponential majorizing functions. Oper. Res. 28, 4, 917-926. (Errata: Oper. Research 31, 1983, 802).
    [16]
    SCHMEISER, B. W. AND LAL, R. 1980. Squeeze methods for generating gamma variates. J. Am. Stat. Assoc. 75, 371, 675-682.
    [17]
    STADLOBER, E. 1989. Sampling from Poisson, binomial, and hypergeometric distributions: ratio of uniforms as a simple and fast alternative. Math. Statist. Sektion 303. Forschungsgesellschaft Joanneum, Graz, Austria.
    [18]
    STADLOBER, E. 1990. The ratio of uniforms approach for generating discrete random variates. J. Comput. Appl. Math. 31, 1 (July 1990), 181-189.
    [19]
    STADLOBER, E. AND PIOK, M. 1995. WinRand 1.0/95.: Accessible by anonymous ftp from statistik.tu-graz, ac. at \ winrand.
    [20]
    ZECHNER, H. AND STADLOBER, E. 1993. Generating beta variates via patchwork rejection. Computing 50, 1, 1-18.
    [21]
    ZECHNER, H. 1997. Efficient sampling from continuous and discrete unimodal distributions. Ph.D. Dissertation. Technical University Graz, Graz, Austria.

    Cited By

    View all
    • (2019)General Temporally Biased Sampling Schemes for Online Model ManagementACM Transactions on Database Systems10.1145/336090344:4(1-45)Online publication date: 6-Dec-2019
    • (2019)Communication-free massively distributed graph generationJournal of Parallel and Distributed Computing10.1016/j.jpdc.2019.03.011131:C(200-217)Online publication date: 1-Sep-2019
    • (2018)Communication-Free Massively Distributed Graph Generation2018 IEEE International Parallel and Distributed Processing Symposium (IPDPS)10.1109/IPDPS.2018.00043(336-347)Online publication date: May-2018
    • Show More Cited By

    Recommendations

    Reviews

    R. Sambasiva Rao

    The rejection regions for many continuous and discrete statistical distributions are available in the literature. This paper is an outcome of the authors' continuous research work [1–4] in sampling methods. Minh [5] proposed a special sampling method for gamma distribution (using the hat function and minorizing rectangles) that rearranges the area under the histogram so that the samples may be generated within a large central interval. Exponential functions cover the tails of the function. Kemp [6] introduced improvement in the acceptance/rejection procedures applicable to continuous distributions with fixed parameters. Recently, universal rejection algorithms from log-concave discrete distributions and automatic generators have been reported. It is interesting that all of these methods have uniformly bounded sampling time. Stadlober has previously reported [1,2] on the algorithm and software for generating discrete random variates and sampling from Poisson, binomial, and hypergeometric distributions. Here, he reports on the patchwork rejection technique. The paper is divided into four sections and one appendix. The introduction deals with the status of sampling methods of acceptance-rejection type for several statistical distributions. In section 2, a general procedure for patchwork technique is described for continuous and discrete distributions, and beta binomial/Poisson distributions are considered. The authors have incorporated a pseudocode method for sampling discrete distribution in section 3. Section 4 is devoted to comparisons of algorithms and software implementation in Fortran and Turbo C++. The appendix contains proofs for feasible reflection centers and applications to hypergeometric distribution. The patchwork rejection is confined here to unimodal distributions. The area below the histogram is rearranged in the center. The PRD algorithm is applied to Poisson, binomial, and hypergeometric distributions. A staircase function is added for fast sampling, and the code is implemented in C in the WinRand 1.0/95 package, accessible by anonymous ftp from statistic.tu-graz.ac.at/winrand. The method described here is compared with other available methods in terms of speed and memory. For hypergeometric distributions, the current method is 1.3 to 2.5 times faster than the uniform exponential rejection (H2PE) and 1.2 to 3 times faster than the ratio of uniforms (HRUE).

    Access critical reviews of Computing literature here

    Become a reviewer for Computing Reviews.

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Transactions on Modeling and Computer Simulation
    ACM Transactions on Modeling and Computer Simulation  Volume 9, Issue 1
    Jan. 1999
    80 pages
    ISSN:1049-3301
    EISSN:1558-1195
    DOI:10.1145/301677
    Issue’s Table of Contents

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 01 January 1999
    Published in TOMACS Volume 9, Issue 1

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. patchwork rejection
    2. random variate generation
    3. random variate transformations
    4. sampling techniques
    5. stochastic simulation
    6. unimodal distributions

    Qualifiers

    • Article

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)26
    • Downloads (Last 6 weeks)3
    Reflects downloads up to 10 Aug 2024

    Other Metrics

    Citations

    Cited By

    View all
    • (2019)General Temporally Biased Sampling Schemes for Online Model ManagementACM Transactions on Database Systems10.1145/336090344:4(1-45)Online publication date: 6-Dec-2019
    • (2019)Communication-free massively distributed graph generationJournal of Parallel and Distributed Computing10.1016/j.jpdc.2019.03.011131:C(200-217)Online publication date: 1-Sep-2019
    • (2018)Communication-Free Massively Distributed Graph Generation2018 IEEE International Parallel and Distributed Processing Symposium (IPDPS)10.1109/IPDPS.2018.00043(336-347)Online publication date: May-2018
    • (2018)Direct MethodsIndependent Random Sampling Methods10.1007/978-3-319-72634-2_2(27-63)Online publication date: 1-Apr-2018
    • (2017)History of random variate generationProceedings of the 2017 Winter Simulation Conference10.5555/3242181.3242196(1-12)Online publication date: 3-Dec-2017
    • (2017)History of random variate generation2017 Winter Simulation Conference (WSC)10.1109/WSC.2017.8247791(231-242)Online publication date: Dec-2017
    • (2015)Exact Sublinear Binomial SamplingAlgorithmica10.1007/s00453-015-0077-873:4(637-651)Online publication date: 1-Dec-2015
    • (2013)Exact Sublinear Binomial SamplingAlgorithms and Computation10.1007/978-3-642-45030-3_23(240-250)Online publication date: 2013
    • (2008)Geological modelling from field data and geological knowledgePhysics of the Earth and Planetary Interiors10.1016/j.pepi.2008.06.014171:1-4(158-169)Online publication date: Dec-2008
    • (2008)Efficient sampling of random permutationsJournal of Discrete Algorithms10.1016/j.jda.2006.11.0026:1(125-139)Online publication date: 1-Mar-2008
    • Show More Cited By

    View Options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Get Access

    Login options

    Full Access

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media