next up previous Next: Random Variate Generation Up: Tests for Random Numbers Previous: Gap Test
Poker Test
The poker test for independence is based on the frequency in which certain digits are repeated in a series of numbers. For example 0.255, 0.577, 0.331, 0.414, 0.828, 0.909, 0.303, 0.001... In each case, a pair of like digits appears in the number. In a three digit number, there are only three possibilities. 1. The individual digits can be all different. Case 1. 2. The individual digits can all be the same. Case 2. 3. There can be one pair of like digits. Case 3. P(case 1) = P(second differ from the first) * P(third differ from the first and second) = 0.9 * 0.8 = 0.72 P(case 2) = P(second the same as the first) * P(third same as the first) = 0.1 * 0.1 = 0.01 P(case 3) = 1 0.72 - 0.01 = 0.27 See Example 8.14 on page 316
Meng Xiannong 2002-10-18