LESSON 2.19 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Sampling and Monte Carlo methods
Throw random darts at a box, and watch them estimate π.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 2.19 · MONTE CARLO BAY400 DARTS · BOX 1 × 1
01
Stage 1 of 6 · Throw darts
Each dart takes two uniform random numbers: x across, y up. The darts cover the box evenly.
Explain it simply
Each dart needs two random numbers between 0 and 1. The first sets how far right it lands, and the second sets how high. Every spot in the box is equally likely, so 400 darts spread out evenly. The computer makes these numbers from a seed, here seed 1.
400 darts spread evenly over a box 1 wide and 1 tall. A quarter circle of radius 1 sits in its corner.
dart, darts thrown nbox B, curve f, predicted shapekept dart, kept x, estimate π̂rejected dart, error, SE
Toy: a quarter circle of radius 1 in a box · 100 to 1600 darts · seeds 1 to 400
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Two uniform numbers place each dart: x across, y up.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.