-
4
pagini
-
English
-
Documente
Descriere
Journal of Statistical SoftwareJSSFebruary 2005, Volume 12, Issue 7. http://www.jstatsoft.org/A Comment on the Implementation of the ZigguratMethodPhilip H.W. Leong Guanglie ZhangChinese University of Hong Kong Chinese University of Hong KongDong-U Lee Wayne Luk John D. VillasenorImperial College London Imperial College London University of CaliforniaLos AngelesAbstractWe show that the short period of the uniform random number generator in the pub-lished implementation of Marsaglia and Tsang’s Ziggurat method for generating randomdeviates can lead to poor distributions. Changing the uniform random number generatorused in its implementation xes this issue.Keywords:randomnumbergenerators,normaldistribution,Zigguratmethod,XorshiftRNGs.Marsaglia and Tsang (2000) proposed the Ziggurat method for generating a random variablefrom a given decreasing probability density. This method is one of the fastest available2for generating normal variates. We applied the chi-square ( ) goodness-of- t test ( Knuth(1997)) to check the distribution of random variables generated using an implementationavailable from Marsaglia and Tsang (2000).2The test involves quantizing the horizontal axis of the probability density function (pdf)into k bins, determining the actual and expected number of samples appearing in each bin,and using the results to derive a single number that serves as an overall quality metric. Lett be the number of observations, p be the probability that ...
-
Publicat de
-
Limba
English