Post Reply 
An unexpected result involving sums of random numbers
03-04-2023, 07:25 PM
Post: #26
RE: An unexpected result involving sums of random numbers
(03-04-2023 02:29 PM)Albert Chan Wrote:  We expected E*0.5 ≈ S. Here, expected counts estimated with 2S is better than E.

lua> E, 2*S
2.7186766      2.7182611704860222

2S is better estimate than E because *all* generated random numbers are included.
Mean of *all* random numbers = 0.5 is very very good (2 = 1/0.5)

Bonus, increase in accuracy may also comes with speedup. (loops counting not needed)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: An unexpected result involving sums of random numbers - Albert Chan - 03-04-2023 07:25 PM



User(s) browsing this thread: 7 Guest(s)