m | is the modulus, | m > 0 | |
a | is the multiplier, | 0 <= a < m | |
c | is the increment, | 0 <= c < m | |
X0 | is the seed, | 0 <= X0 < m |
1. | gcd(a, m) = 1 (a and m are relatively prime) | |
2. | (a mod p) = 1 for prime factors p > 2 of m | |
3. | If (m mod 4) = 0, then (a mod 4) = 1 | |
4. | gcd(c, m) = 1 |
![]() |
|
results | 195 | 209 | 196 | 195 | 205 |
---|---|---|---|---|---|
expected | 200 | 200 | 200 | 200 | 200 |
Is this good or bad?
actual | 195 | 209 | 196 | 195 | 205 |
---|---|---|---|---|---|
expected | 200 | 200 | 200 | 200 | 200 |
Vo | = | sum(i = 1 to k, (Ai - Ei)2/Ei) |
= | ((195-200)2+(209-200)2+(196-200)2+(195-200)2+(205-200)2)/200 | |
= | (25 + 81 + 16 + 25 + 25)/200 = 197/200 = 0.985 |
This page last modified on 2 April 2005.