Take a needle of length and drop it in a random position on a hardwood floor whose boards have the same width
:

There’s some probability that the needle crosses between two adjacent floorboards. It turns out that
has a surprisingly simple formula,
Does this mean we can drop thousands of needles (or, for safety-sake, popsicle sticks) to accurately estimate ? A few years ago, my friend Jake Hillard and I put this to the test. Jake measured out the width between floorboards in the Stanford History Department and 3D-printed a few dozen popsicle sticks of the same length. Here’s one I kept as a momento:

(Since the sticks weren’t infinitesimally thin, the rule was to count a crossing only if the center of the stick crossed.)
With the help of Stanford Splash, we then recruited about a hundred middle- and high- school students to perform the experiment. In total, we recorded roughly popsicle-stick drops, and ended up estimating
to about….
. That’s actually not too far from what we expected, since even with no experimental error at all, the standard deviation that we would expect with
data points is roughly
.
Ok, so dropping popsicle sticks clearly isn’t the best way to estimate . But I’m hoping I can convince you that it is one of the combinatorially coolest. And that’s because the formula for
is actually just an extraordinarily slick (although slightly informal) application of linearity of expectation.
Anything Can be Solved with Enough Glue. For simplicity, I’ll assume for the rest of the post that $\ell = 1$. Imagine that, instead of dropping a single needle, we drop needles, glued together to form a regular
-gon. Here’s an example for
:

Each needle individually crosses between two floorboards with probability . By linearity of expectation, the expected total number of crossings by our
-gon is
. That is, the
-gon as a whole should, on average, induce
times as many crossings as would a single needle.
But now let’s think about what this picture looks like when is large.

When is very large, our
-gon starts to closely resemble a circle with circumference
. The height of the
-gon corresponds with the diameter of the circle, and is therefore roughly
(This step of the argument isn’t actually as obvious as it sounds, and requires a bit more work to be formal). But no matter how we drop our circle-like
-gon on the hardwood floor, the total number of crossings will always be almost exactly the same (up to
)! In particular, the total number of crossings by needles in the
-gon is just twice the height of the
-gon, i.e.,
. Since the expected number of crossings can be expressed as
, it follows that, as
grows large,
approaches
. Hence the formula
.









