Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Box–Muller transform
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Tails truncation== When a computer is used to produce a uniform random variable it will inevitably have some inaccuracies because there is a lower bound on how close numbers can be to 0. If the generator uses 32 bits per output value, the smallest non-zero number that can be generated is <math>2^{-32}</math>. When <math>U_1</math> and <math>U_2</math> are equal to this the Box–Muller transform produces a normal random deviate equal to <math display="inline">\delta = \sqrt{-2 \ln(2^{-32})} \cos(2 \pi 2^{-32})\approx 6.660</math>. This means that the algorithm will not produce random variables more than 6.660 standard deviations from the mean. This corresponds to a proportion of <math>2(1-\Phi(\delta)) \simeq 2.738 \times 10^{-11}</math> lost due to the truncation, where <math>\Phi(\delta)</math> is the standard cumulative normal distribution. With 64 bits the limit is pushed to <math>\delta = 9.419</math> standard deviations, for which <math>2(1-\Phi(\delta)) < 5 \times 10^{-21}</math>.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)