IDEAS home Printed from https://ideas.repec.org/a/jss/jstsof/v012i07.html
   My bibliography  Save this article

A Comment on the Implementation of the Ziggurat Method

Author

Listed:
  • Leong, Philip H. W.
  • Zhang, Ganglie
  • Lee, Dong-U
  • Luk, Wayne
  • Villasenor, John

Abstract

We show that the short period of the uniform random number generator in the published implementation of Marsaglia and Tsang's Ziggurat method for generating random deviates can lead to poor distributions. Changing the uniform random number generator used in its implementation fixes this issue.

Suggested Citation

  • Leong, Philip H. W. & Zhang, Ganglie & Lee, Dong-U & Luk, Wayne & Villasenor, John, 2005. "A Comment on the Implementation of the Ziggurat Method," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 12(i07).
  • Handle: RePEc:jss:jstsof:v:012:i07
    DOI: http://hdl.handle.net/10.18637/jss.v012.i07
    as

    Download full text from publisher

    File URL: https://www.jstatsoft.org/index.php/jss/article/view/v012i07/v12i07.pdf
    Download Restriction: no

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v012.i07?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
    ---><---

    References listed on IDEAS

    as
    1. Marsaglia, George & Tsang, Wai Wan, 2000. "The Ziggurat Method for Generating Random Variables," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 5(i08).
    2. Marsaglia, George, 2003. "Xorshift RNGs," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 8(i14).
    Full references (including those not matched with items on IDEAS)

    Citations

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


    Cited by:

    1. Nguyen Nguyet & Xu Linlin & Ökten Giray, 2018. "A quasi-Monte Carlo implementation of the ziggurat method," Monte Carlo Methods and Applications, De Gruyter, vol. 24(2), pages 93-99, June.
    2. repec:jss:jstsof:12:i07 is not listed on IDEAS
    3. Yiran Chen & Giray Ökten, 2022. "A goodness-of-fit test for copulas based on the collision test," Statistical Papers, Springer, vol. 63(5), pages 1369-1385, October.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Parrini, Alessandro, 2013. "Importance Sampling for Portfolio Credit Risk in Factor Copula Models," MPRA Paper 103745, University Library of Munich, Germany.
    2. Björn Lutz, 2010. "Pricing of Derivatives on Mean-Reverting Assets," Lecture Notes in Economics and Mathematical Systems, Springer, number 978-3-642-02909-7, December.
    3. Kato, Kensuke, 2016. "Long-range Ising model for credit portfolios with heterogeneous credit exposures," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 462(C), pages 1103-1119.
    4. repec:jss:jstsof:12:i07 is not listed on IDEAS
    5. Löhndorf, Nils, 2016. "An empirical analysis of scenario generation methods for stochastic optimization," European Journal of Operational Research, Elsevier, vol. 255(1), pages 121-132.
    6. Kurita, Takamitsu, 2020. "Likelihood-based tests for parameter constancy in I(2) CVAR models with an application to fixed-term deposit data," Journal of Multivariate Analysis, Elsevier, vol. 178(C).
    7. Nordahl, Helge A., 2008. "Valuation of life insurance surrender and exchange options," Insurance: Mathematics and Economics, Elsevier, vol. 42(3), pages 909-919, June.
    8. Ran Li & Xiaomeng Duan & Yongfeng Lv, 2018. "Adaptive compressive sensing of images using error between blocks," International Journal of Distributed Sensor Networks, , vol. 14(6), pages 15501477187, June.
    9. Michele Azzone & Roberto Baviera, 2023. "A fast Monte Carlo scheme for additive processes and option pricing," Computational Management Science, Springer, vol. 20(1), pages 1-34, December.
    10. Fernández, J.L. & Ferreiro, A.M. & García-Rodríguez, J.A. & Leitao, A. & López-Salas, J.G. & Vázquez, C., 2013. "Static and dynamic SABR stochastic volatility models: Calibration and option pricing using GPUs," Mathematics and Computers in Simulation (MATCOM), Elsevier, vol. 94(C), pages 55-75.
    11. Hime Aguiar e Oliveira, 2022. "Deterministic sampling from uniform distributions with Sierpiński space-filling curves," Computational Statistics, Springer, vol. 37(1), pages 535-549, March.
    12. Diaz-Emparanza, Ignacio, 2014. "Numerical distribution functions for seasonal unit root tests," Computational Statistics & Data Analysis, Elsevier, vol. 76(C), pages 237-247.
    13. Roberto Baviera & Pietro Manzoni, 2024. "Fast and General Simulation of L\'evy-driven OU processes for Energy Derivatives," Papers 2401.15483, arXiv.org, revised Sep 2024.
    14. Ömür Ugur, 2008. "An Introduction to Computational Finance," World Scientific Books, World Scientific Publishing Co. Pte. Ltd., number p556, February.
    15. Emma Viviani & Luca Di Persio & Matthias Ehrhardt, 2021. "Energy Markets Forecasting. From Inferential Statistics to Machine Learning: The German Case," Energies, MDPI, vol. 14(2), pages 1-33, January.
    16. Marsaglia, George & Tsang, Wai Wan & Wang, Jingbo, 2004. "Fast Generation of Discrete Random Variables," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 11(i03).
    17. Thomas W. Zuehlke, 2017. "Use of quadratic terms in Type 2 Tobit models," Applied Economics, Taylor & Francis Journals, vol. 49(17), pages 1706-1714, April.
    18. Huthmacher, Klaus & Herzwurm, André & Gnewuch, Michael & Ritter, Klaus & Rethfeld, Baerbel, 2015. "Monte Carlo simulation of electron dynamics in liquid water," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 429(C), pages 242-251.
    19. Yiran Chen & Giray Ökten, 2022. "A goodness-of-fit test for copulas based on the collision test," Statistical Papers, Springer, vol. 63(5), pages 1369-1385, October.
    20. Rui Zhang & Lawrence M. Leemis, 2012. "Rectangles algorithm for generating normal variates," Naval Research Logistics (NRL), John Wiley & Sons, vol. 59(1), pages 52-57, February.
    21. Ahmed Bensaida, 2012. "Improving the Forecasting Power of Volatility Models," International Journal of Academic Research in Accounting, Finance and Management Sciences, Human Resource Management Academic Research Society, International Journal of Academic Research in Accounting, Finance and Management Sciences, vol. 2(3), pages 51-64, July.

    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:jss:jstsof:v:012:i07. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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: Christopher F. Baum (email available below). General contact details of provider: http://www.jstatsoft.org/ .

    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.