Buffon's Needle Problem - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

Buffon's Needle Problem

Main Concept

Buffon's Needle Problem refers to a question first posed by Georges-Louis Leclerc, Comte de Buffon: "Suppose we have a floor made of parallel strips of wood, each of the same width. If we drop a needle on the floor, what is the probability that the needle will land on a line between two strips?"

 

The case in which the length of the needle is less than or equal to the width of each strip of wood can be used to design a Monte-Carlo style approximation of .

Probability Density Functions

Let l be the length of the needle, d be the distance between the parallel lines, x be the distance from the center of the needle to the closest line, and  be the acute angle between the needle and a line.

The uniform probability density function of x between 0 and  is .

The uniform probability density function of  between 0 and  is .

So, the joint probability density function of the independent random variables x and  is the product of their individual probability density functions: .

The needle will cross a line only if  .

A Solution to the "Short Needle" Case Using Integral Geometry

This solution can be found simply by using an iterated integral. Assuming that , integrating the joint probability density function gives the probability that the needle will cross a line:

A Solution to the "Short Needle" Case Using Elementary Calculus

We can also calculate the probability, , of the needle crossing a line as the product of  and , where  is the probability that the center of the needle falls close enough to a line to possibly cross it and  is the probability that the needle actually crosses the line, given that its center is within reach.

Let  represent the length of the needle and  represent the width of each piece of wood (that is, the distance between two lines).

The needle can possibly cross a line if its center is within  of either side of the line. So, adding  to account for the needle falling on either side of the line, then dividing by the total distance between this line and the next, , we get

.

Now, we assume the center is within reach of crossing a line, meaning it lies  or less from a line.

Recall that the needle will cross a line for a given  when , or . The probability of this happening is thus , since we assume  ranges uniformly between 0 and , independently of . Taking the average overall possible values of  between 0 and , we find that:

Putting this all together, we obtain .

Approximation of π

The formula from the solution to the "short needle" case above can be rearranged to .  So, if we conduct an experiment to estimate , we can also find an approximation for .

Let's say our experiment involves dropping N needles on the floor and we observe that n of them cross a line, so the observed probability of a needle crossing a line is .

Thus, our approximation of π is: .

A Solution to the "Long Needle" Case Using Integral Geometry

This solution can also be found simply by using an iterated integral. Assuming that , integrating the joint probability density function gives us the probability that the needle will cross a line:

, where  is the minimum of . Splitting into the cases  and , we get:



=
.

Thus, when , a Monte-Carlo style approximation of π is available via:

.

 

 

Adjust the number of needles being dropped, the length of each needle, and the distance between lines to compare the expected probability of a needle crossing a line with the observed probability of the experiment. If the length of each needle is less than or equal to the distance between the parallel lines, observe the approximation of π constructed using the results of the experiment.

 

Number of Needles =

 

Distance between Lines (cm) =

 

 

Length of Each Needle (cm) =

 

Results:

More MathApps

MathApps/ProbabilityAndStatistics


Download Help Document