Coin flips and the law of large numbers

Understand why a fair coin may produce streaks and why larger samples tend to stabilize.

An independent fair coin has heads probability 1/2 on every flip. Even after five heads in a row, the next heads probability remains 1/2. The probability of five specified consecutive heads before observing them is (1/2)⁵ = 1/32.

For n independent flips the head count has mean n/2 and standard deviation √n/2. The head fraction has standard deviation 1/(2√n): 5 percentage points for 100 flips and 0.5 points for 10,000. These are typical scales of variation, not guaranteed bounds.

Use the simulator with 100, 1,000 and 10,000 trials and compare the head fraction. Larger samples tend to approach the theoretical fraction, but a particular large sample may deviate more than a smaller one. No finite experiment proves future outcomes will be fair.

In 100,000 simulated flips, the two outcomes occurred 49878 and 50122 times (49.878% and 50.122%). Measured 2026-11-25 on Trading-PC, Node v26.8.2 win32 x64 using the production engine and Node Web Crypto, not a browser benchmark. This single run is illustrative, not proof of fairness.

Related tools

References

LHTSOFT Random