Estimating Probabilities Using Simulation
▶︎ Watch it animatedinteractive step-through · ~3 min · optionalProbability is the long-run relative frequency of an outcome, $\hat{p} = \frac{k}{n}$ approaching $P$ as $n$ grows, which is exactly the fact simulation exploits. A correct simulation assigns outcomes to a random device so the modeled chances match the real ones (three digits out of ten for a 30% event, with unused digits discarded rather than folded in), defines one trial and its stopping rule, states what counts as a success in the wording of the question, then repeats many times and reports the proportion. The law of large numbers guarantees that this proportion approaches the probability, and the estimate's typical error shrinks like $\frac{1}{\sqrt{n}}$.
The failures cluster on the short run. Streaks are read as debts: six heads and tails is "due", though the seventh toss is still 0.5, since the long-run proportion recovers by dilution and not by compensation. Small runs are read as verdicts: seven heads in eight tosses declared proof of an unfair coin, or a 20-trial simulation reported as the probability rather than as a noisy estimate. And the design itself quietly changes the question, most often by assigning four digits of ten to a 30% event or by reusing digits that should have been discarded, so that thousands of correctly executed trials answer a situation nobody asked about.
The work
3 ways in · any order
Lesson
Estimating Probabilities Using Simulation
›
Builds simulation from what a probability is: assign a device whose chances match, define one trial and its stopping rule, run many, and report an estimate. Includes the law of large numbers and the compensation it never promises.
Diagnostic
10-item topic check
›
Ten items on simulation and the long run: streaks read as debts, twenty trials reported as the answer, digit assignments that model the wrong probability, and trials that stop on the wrong rule. Take it cold to find your habit, or after the lesson to check it is gone.
Targeted Practice
Drill a single misconception
›
Pick one of the failure modes you missed and drill it on its own. The round is adaptive: two correct in a row clears it for now and moves you to the next. Two in a row is a checkpoint, not proof: if the error resurfaces later, the misconception comes back.