PROBABILITY, MADE VISIBLE

Finding π.
One random point at a time.

A square, a quarter circle, and a little uncertainty. Watch millions of small experiments converge on one familiar number.

THE MONTE CARLO METHODπ ≈ 4 × points inside
all points
Randomness becomes an estimate.
Ready for a little randomness
ESTIMATED π—Reference 3.14159265…
ABSOLUTE ERROR—Distance from true π
95% INTERVAL—Approximate sampling uncertainty

Preparing your first experiment…

Chance, in a square

One representative point per lane

01
Inside circleOutside— inside

Order from randomness

Cumulative estimate as samples accumulate

02
EstimateTrue πShaded: 95% interval
— samples evaluated— compute + readback

Your experiment notebook

Latest 12 runs · current session

Each run appears here. Try a new seed or increase the sample count to compare how the estimate changes.

More points.
Less uncertainty.

A quarter circle of radius 1 fills π/4 of a unit square. Uniform random points land inside it with that same probability. Count the hits, divide by all samples, and multiply by four.

Sampling error typically shrinks like 1/√N: four times the samples roughly halves the uncertainty. A 95% interval is a method that covers true π in about 95% of repeated experiments; any single run can miss.