Ivor the Engineer
Penultimate Amazing
- Joined
- Feb 18, 2006
- Messages
- 10,593
Let's say you're attempting to test a coin for fairness. You toss the coin N times and get N heads (or tails)*. You know getting N heads or N tails should occur with a probability 1/2^(N-1). In other words, over an infinite number of trials of a fair coin, each N tosses long, 100%/2^(N-1) of them would consist of all heads or all tails.
Since any event with non-zero probability can occur, however many heads or tails in a row you get can (should?) be produced by a fair coin over an infinite time period.
What do algorithms which test for the randomness of a generator actually test for, when a generator which produced a constant value over the test period would be as "random" as generators which produced other sequences?
What is randomness from a testing or observer's point of view?
*Ignore the possibility of the coin landing on its edge.
Since any event with non-zero probability can occur, however many heads or tails in a row you get can (should?) be produced by a fair coin over an infinite time period.
What do algorithms which test for the randomness of a generator actually test for, when a generator which produced a constant value over the test period would be as "random" as generators which produced other sequences?
What is randomness from a testing or observer's point of view?
*Ignore the possibility of the coin landing on its edge.
Last edited:
