Skip to content

Buffon's Needle

You'll drop 500 toothpicks onto lined paper and get an estimate of pi out of it, then try a second random method and compare the two.

About

In 1777 Buffon noticed that a needle dropped on a floor of parallel boards crosses a crack with a probability that has pi in it. Drop enough needles and you can work out pi from toothpicks. It's slow and it converges badly, and that's the lesson: random methods work, and they're expensive. Toothpicks bounce off a table, so tape your sheet to carpet. Plan on an afternoon of dropping and an evening of counting.

At a glance

Per requirement
25 XP
Completion bonus
150 XP
Requirements
5
Takes
One weekend
Skill level
Beginner (done it a few times)
Cost
Cheap (under $10)
Supplies
You need some
Where
At home
Other people
On your own
Locked for now
Earn two more Common badges in Statistics & Forecasting to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Rule a sheet with parallel lines exactly one toothpick length apart. Measure ten toothpicks and use the average length. Use a big sheet of paper or a poster board, with the lines running across the full width. Take a photo of the sheet with a toothpick lying across a gap. Photo
  2. 2
    Drop 100 toothpicks, count the crossings, and work out pi. Drop from about 30 centimeters and let them fall where they land, with no nudging. Count how many touch or cross a line. Pi comes out as about 2 times the number of drops divided by the number of crossings. Anything from 2.7 to 3.7 is normal at 100 drops. Take a photo of the sheet before you clear it, with the arithmetic. Photo
  3. 3
    Keep going to 500 total drops in batches of 100 and track the running estimate. After each batch, work out pi from the cumulative count. Plot the five estimates and watch it wobble toward 3.14 without quite settling. Take a photo of the table and the plot. Photo
  4. 4
    Work out how many drops it would take to trust the second decimal place. Your five batches of 100 each gave a different pi, and the size of that scatter is roughly the error you'd expect from any 100-drop run. The error shrinks with the square root of the number of drops, so four times the drops halves it, and a hundred times the drops cuts it to a tenth. Starting from your scatter, work out how many drops you'd need to get the error under 0.005, which is what trusting two decimal places means. It comes out around 200,000 drops. Take a photo of the arithmetic. Photo
  5. 5
    Estimate pi a second way, with random points in a square that has a quarter circle inside it. Draw a square and a quarter circle on graph paper. Drop 200 grains of rice from about 30 centimetres and leave out any that bounce off the page. Count the grains inside the circle against the total and multiply by 4. Compare the two methods' errors in a sentence and say which one you'd trust with 10,000 drops. Take a photo of the grid and the counts. Photo