(12C) Two Random Generator Comparison
|
07-26-2018, 06:03 PM
(This post was last modified: 07-26-2018 06:47 PM by Dieter.)
Post: #5
|
|||
|
|||
RE: (12C) Two Random Generator Comparison
(07-25-2018 10:47 AM)Gamo Wrote: This program compare the two "Random Number Generator" by using the "Accumulate Statistic" Gamo: sorry, but this does not work. You cannot use the result of one RNG as the input of another one as this does not return what the second RNG should. Instead you actually get the results of a third, different RNG which here in this case is \(\large x_{n+1} = frac(997 \cdot frac(e^{x_n+\pi})) \) (Well, not quite, as the result is not the input of the first RNG again) Also the mean does not say much about a RNG. Consider a RNG that returns 0,5 0,5 0,5 0,5 0,5... or 0,4 0,6 0,4 0,6... All this gives a perfect 0,5 as the mean. Although the sequence sure is not random at all. The following program is different from yours in these points:
Code: 01 STO 0 Example: 0,1234567 [STO] 7 [STO] 8 1000 [R/S] ... 0 g [\(\bar{x}\)] => 0,4855 [X<>Y] 0,5002 g [\(s\)] => 0,2898 [X<>Y] 0,2888 Of course the \(\bar{x}\) and \(s\) calculation could also be done by the program, but when the user invokes these functions he always knows which value he gets. And it doesn't require more than pressing a key. Dieter __________ * Yes, the calculated (sample) standard deviation actually is slightly less by a factor of sqrt((n–1)/n) but for large sample sizes this does not make much of a difference. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(12C) Two Random Generator Comparison - Gamo - 07-25-2018, 10:47 AM
RE: (12C) Two Random Generator Comparison - Joe Horn - 07-25-2018, 12:15 PM
RE: (12C) Two Random Generator Comparison - Gamo - 07-26-2018, 12:07 AM
RE: (12C) Two Random Generator Comparison - Gamo - 07-26-2018, 10:48 AM
RE: (12C) Two Random Generator Comparison - Dieter - 07-26-2018 06:03 PM
RE: (12C) Two Random Generator Comparison - Thomas Klemm - 07-27-2018, 07:27 AM
RE: (12C) Two Random Generator Comparison - Dieter - 07-27-2018, 11:42 AM
|
User(s) browsing this thread: 1 Guest(s)