Patterns in Luck · ChanceLab

Walk into a probability museum where every exhibit asks you to predict first, then check by hand. Release 500 steel balls on a tilting Galton board and watch chance pile up into the bell of a binomial distribution. Drop needles on an oak floor and estimate π one needle at a time with Buffon's method. Play the Monty Hall problem on a little stage, decide whether to switch, then let the computer play 1000 games. Pin a whole class onto a birthday ring and see that 23 people already give an even chance of a shared birthday. Tag the koi in a pond and recapture them to estimate a number you cannot count. Scoop beads from a jar, build a confidence interval, then run 100 surveys and count how many intervals miss.

Subject: Mathematics · Level: Middle school, High school · Topics: Binomial and normal distributions, Geometric probability and random simulation, Conditional probability, Complementary events, Estimating a population from a sample, Confidence interval

Chapters

The bell on a peg board

In 1873 the English scholar Francis Galton built a peg board: steel balls fall from the top, strike pegs on the way down, swerve a little left or right at each one at random, and end up in the bins below.

Each ball is a matter of chance; nobody can say which bin it will reach. Yet once there are many balls, the bins pile up into a stable shape.

With n rows of pegs and a probability p of going right each time, the probability of landing in bin k (going right k times) is P(k) = C(n,k) · p^k · (1 − p)^(n−k): the binomial distribution B(n, p). There are C(n,k) routes to bin k, so the middle bins have the most routes.

Turn on “Expected outline”: the gold line shows how high 500 · P(k) balls should stack. Then tilt the board to the right: at every peg the chance of going right grows, and the whole bell moves. The more rows, the closer the bell comes to a smooth normal curve with mean np and standard deviation √(np(1−p)).

The chi-square test on the right compares what actually piled up with what the binomial distribution predicts: a p-value that is not small means the difference is easily explained by chance.

π from a needle

In 1777 the French naturalist Buffon asked: if you drop a needle at random onto a floor ruled with evenly spaced parallel lines, what is the probability that it crosses a line?

The needle's position depends on two random quantities: the distance from its midpoint to the nearest seam, and its angle θ to the seams. When the needle length L is no longer than the spacing t, the crossing probability is P = 2L / (π t). π appears because the angle θ is uniform between 0 and π.

Turned around: just count n needles dropped and m crossing, and you can estimate π ≈ 2 L n / (t m). This is the earliest “random simulation”, today called the Monte Carlo method.

After 10 needles the estimate may be far off; after a few thousand it closes in on 3.14. The shaded band on the chart is the rough size of the error, and it narrows like 1/√n: to halve the error you need four times as many needles.

In 1901 the Italian mathematician Lazzarini claimed to have dropped 3408 needles and got π ≈ 355/113, correct to six decimal places. Given the size of the error, that is almost impossible: he most likely stopped at a convenient count.

Switch or stick

On the American TV show “Let's Make a Deal”, host Monty Hall asks you to choose one of three doors: one hides a big prize, the other two hide straw. Once you choose, the host, who knows the answer, opens another door to show straw, then asks: do you want to switch?

Intuition says two doors are left, so it is fifty-fifty either way. In 1990 the columnist Marilyn vos Savant wrote “you should switch: switching wins 2/3 of the time”, and received thousands of letters disagreeing, many from people with doctorates in mathematics.

Play a few rounds by hand first: click a door, watch the host open doors, then stick or switch. Then let the computer play 1000 games and compare the two strategies.

If it still feels wrong, use 10 doors: you pick one, the host opens 8 empty doors and leaves just one closed. Does it still feel like fifty-fifty?

The key is that the host knows. If the host does not know and opens a door at random (and happens to show straw), the two remaining doors really are fifty-fifty. Different conditions give different answers, and that is exactly what conditional probability deals with.

Same birthday

A year has 365 days and a class has a few dozen people, so two of them sharing a birthday sounds like a coincidence. Yet with 23 people in the class, the probability is already over a half.

Counting the ways a match can happen is messy, so compute its complementary event instead: everyone's birthday is different. The first person can have any day, the second must avoid 1 day, the third must avoid 2 days, and so on, so

P(all different) = 365/365 × 364/365 × … × (365 − n + 1)/365, and P(some shared) = 1 − P(all different).

Press “Deal a class” and watch each person's pin fly to their birthday; days with a match turn red. Then let the computer deal 1000 classes, count the share with a match, and compare it with the theoretical curve on the right.

Compare it with “someone shares a birthday with me”: with 23 people that is only about 6%. Our intuition answers the second question, but the problem asks about any two people, and 23 people make 253 pairs. We assume birthdays are uniform over the year and ignore 29 February.

Too many fish to count

How do ecologists know how many fish are in a lake? Draining it is out of the question. The usual method is capture–recapture:

First, catch M fish, tag them and let them go, and wait for them to spread out and mix. Second, catch C fish and count how many, R, carry a tag. If the tagged share of the pond is about the same as the tagged share of the second catch, R / C ≈ M / N, which gives N̂ = M · C / R.

Every survey gives a different answer: a few extra tagged fish in the net make the estimate low, a few fewer make it high. Repeat the same survey a few hundred times and the estimates form a distribution centred near the true N. The bigger M and C, the narrower the distribution and the more reliable the estimate.

The method has conditions: no fish are born, die or leave between the two catches; tags don't fall off or change behaviour; every fish has the same chance of being caught. Repeated surveys use Chapman's correction (M+1)(C+1)/(R+1) − 1, which avoids dividing by zero when R = 0.

What does 95% mean?

The jar holds about 3000 beads, and the red proportion p is the unknown “population proportion”. Scoop out n beads and count x red ones: the sample proportion p̂ = x/n estimates p.

Every scoop is different, so p̂ wobbles around p. The size of the wobble is the standard error, about √(p̂(1 − p̂)/n). That gives a range: p̂ ± 1.96 × √(p̂(1 − p̂)/n), the 95% confidence interval.

Press “Run 100 surveys” and 100 intervals line up on the right; the vertical line is the true p (shown once revealed). Count the red intervals that miss the true value.

Raise the scoop from 50 beads to 200: how much narrower do the intervals get? About half, because the width is proportional to 1/√n. Then set the confidence level to 99%: the intervals widen and fewer miss. More confidence costs a vaguer answer.

This uses the common Wald interval; with very small samples or p close to 0 or 1 its true coverage falls below 95%, and statisticians switch to methods such as the Wilson interval.

In-class testing

Look back over the six exhibits: the peg board, the needles, the three doors, the birthdays, the pond and the bead jar. Choose one answer for each question, then submit to see the explanations.

More labs

Back to home