math – update

blogging & searching for true math …

Day #12: Buffon’s Needle Problem or – not exactly – how much is the chance you don´t lose your needle when sewing on the terrace??… (Assume the chance you´re sewing is not zero)

Leave a comment


Q: Suppose we have a floor made of parallel strips of wood, each the same width, and we drop a needle onto the floor. What is the probability that the needle will lie across a line between two strips?

Buffon’s needle problem is a question first posed in the 18th century by Georges-Louis Leclerc, Comte de Buffon:[1]It was the earliest problem in geometric probability to be solved; it can be solved using integral geometry. The solution, in the case where the needle length is not greater than the width of the strips, can be used to design a Monte Carlo method for approximating the number π, although that was not the original motivation for de Buffon’s question.[2]

The a needle lies across a line, while the b needle does not.


A: The problem in more mathematical terms is: Given a needle of length l dropped on a plane ruled with parallel lines t units apart, what is the probability that the needle will cross a line?

Let x be the distance from the center of the needle to the closest line, let θ be the acute angle between the needle and the lines.

The uniform probability density function of x between 0 and t /2 is

 \begin{cases} \frac{2}{t} &:\ 0 \le x \le \frac{t}{2}\\ 0 &: \text{elsewhere.} \end{cases}

The uniform probability density function of θ between 0 and π/2 is

 \begin{cases} \frac{2}{\pi} &:\ 0 \le \theta \le \frac{\pi}{2}\\ 0 &: \text{elsewhere.} \end{cases}

The two random variables, x and θ, are independent, so the joint probability density function is the product

   \begin{cases} \frac{4}{t\pi} &:\ 0 \le x \le \frac{t}{2}, \ 0 \le \theta \le \frac{\pi}{2}\\ 0 &: \text{elsewhere.} \end{cases}

The needle crosses a line if

  x \le \frac{l}{2}\sin\theta.

Now there are two cases.

Case 1: Short needle

Integrating the joint probability density function gives the probability that the needle will cross a line:

P = \int_{\theta=0}^{\frac{\pi}{2}} \int_{x=0}^{(l/2)\sin\theta}  \frac{4}{t\pi}\,dx\,d\theta = \frac{2 l}{t\pi}.

A particularly nice argument for this result can alternatively be given using “Buffon’s noodle“.

Case 2: Long needle

Suppose l > t . In this case, integrating the joint probability density function, we obtain:

\int_{\theta=0}^{\frac{\pi}{2}} \int_{x=0}^{m(\theta)}  \frac{4}{t\pi}\,dx\,d\theta ,

where m ( θ ) is the minimum between ( l / 2 ) sin ⁡ θ and t / 2.

Thus, performing the above integration, we see that, when t < l , the probability that the needle will cross a line is

\frac{2 l}{t\pi} - \frac{2}{t\pi}\left\{\sqrt{l^2 - t^2} + t\sin^{-1}\left(\frac{t}{l}\right)\right\}+1


   \frac{2}{\pi} \cos^{-1}\frac{t}{l} + \frac{2}{\pi} \frac{l}{t} \left\{1 - \sqrt{1 - \left( \frac{t}{l} \right)^2  } \right\}.

In the second expression, the first term represents the probability of the angle of the needle being such that it will always cross at least one line. The right term represents the probability that, the needle falls at an angle where its position matters, and it crosses the line.

Using Elementary Calculus

The following solution for the “short needle” case, while equivalent to the one above, has a more visual flavor, and avoids iterated integrals.

We can calculate the probability P as the product of 2 probabilities: P = P 1 ⋅ P 2, where P 1 is the probability that the center of the needle falls close enough to a line for the needle to possibly cross it, and P 2 is the probability that the needle actually crosses the line, given that the center is within reach.

Looking at the illustration in the above section, it is apparent that the needle can cross a line if the center of the needle is within l / 2 units of either side of the strip. Adding


from both sides and dividing by the whole width t, we obtain

P_1 = \frac{l}{t}.

The red and blue needles are both centered at x. The red one falls within the gray area, contained by an angle of 2θ on each side, so it crosses the vertical line; the blue one does not. The proportion of the circle that is gray is what we integrate as the center x goes from 0 to 1

Now, we assume that the center is within reach of the edge of the strip, and calculate P 2. To simplify the calculation, we can assume that l = 2.

Let x and θ be as in the illustration in this section. Placing a needle’s center at x, the needle will cross the vertical axis if it falls within a range of 2θ radians, out of π radians of possible orientations. This represents the gray area to the left of x in the figure. For a fixed x, we can express θ as a function of x:

\theta\left(x\right) = \cos^{-1}\left(x\right).

Now we can let x move from 0 to 1, and integrate:

P_2 = \int_0^1 \frac{2\theta(x)}{\pi}\,dx = \frac{2}{\pi}\int_0^1 \cos^{-1}(x)\,dx = \frac{2}{\pi}\cdot 1 = \frac{2}{\pi}.

 P = P_1\cdot P_2 = \frac{l}{t}\frac{2}{\pi} = \frac{2 l}{t\pi}, as above.

There is an even more elegant and simple method of calculating the “short needle case”. The end of the needle farthest away from any one of the two lines bordering its region must be located within a horizontal (perpendicular to the bordering lines) distance of  l\cos\theta (where θ is the angle between the needle and the horizontal) from this line in order for the needle to cross it. The farthest this end of the needle can move away from this line horizontally in its region is t. The probability that the farthest end of the needle is located no more than a distance  l\cos\theta away from the line (and thus that the needle crosses the line) out of the total distance t it can move in its region for  0 \le \theta \le \pi/2  is given by

  P = \frac{\int_0^{\frac{\pi}{2}} l\cos\theta d\theta}{\int_0^{\frac{\pi}{2}} t d\theta} = \frac{l}{t}\frac{\int_0^{\frac{\pi}{2}} \cos\theta d\theta}{\int_0^{\frac{\pi}{2}} d\theta} = \frac{l}{t}\frac{1}{\frac{\pi}{2}}=\frac{2l}{t\pi} , as above.

Source: WikipediA

Note: The probability the needle falls right between two stripes of wood could be calculated if we knew the distance between them and assume it is not zero! (The probability of falling right on a line is of course zero!).



Author: Math - Update

Updating Math In Our Mind & Heart!!...

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s