Run coin flips and dice rolls. Watch the live histogram approach theoretical probabilities as trials pile up — the law of large numbers, made visible.
Fair coin — each side has probability 1/2.
Slow speeds show each roll. Fast speeds batch trials so you can watch probabilities converge.
Ready
Bar height = relative frequency. Dashed lines mark theoretical probability.
Press Run to start trials. Watch the bars approach the dashed theoretical marks.
Exact comparison for each outcome
| Outcome | Count | Obs. | Theory | Diff |
|---|---|---|---|---|
| Heads | 0 | — | 50.00% | — |
| Tails | 0 | — | 50.00% | — |
Count of an outcome divided by total trials. As N grows, this usually approaches the true probability.
Random short-run streaks are normal. Over many independent trials, averages settle near expectation.
Switch to Two dice: a sum of 7 has six ways (1+6 … 6+1), while 2 has only one — the histogram should look peaked.