How To Intuitively Understand Buffon’s Needle Problem
Published on July 2, 2022 by Hemanth
--
Buffon’s needle problem is a direct extension of theFranc-Carreau or the fair-square game. If you haven’t already, check out my original essay on this topic. I had covered the story of what motivated Georges-Louis LeClerc, Comte de Buffon to come up with and solve these problems.
In his attempt to make it into the Royal Academy of Sciences in Paris, Buffon started with the humble game of Franc-Carreau. This game combined the notion of probability with geometry. Back then, this was a novel approach because mathematicians of the time believed these to be unrelated fields.
But Buffon did not stop there. He pressed on to a much more complex problem that established the foundations of geometric probability. His paper made him so famous that the problem he presented and solved is known until today as Buffon’s needle problem in mathematical circles.
In this essay, we will look at the essence of Buffon’s needle problem. After establishing the context, we will proceed to solving it intuitively using simple mathematical concepts (not the way Buffon solved it). This approach enables us to appreciate the beauty and profoundness of the problem. Without any further ado, let us begin.
Say that we have access to a needle that is ‘L’ units long. Further, say that we have constructed a bunch of equidistant lanes on a piece of paper as shown in the illustration below. The width between each lane is exactly equal to ‘L’ units.
Illustration created by the author
Given this arrangement, we plan to just throw the needle randomly on to the paper with the lanes. As we do this, Buffon asks the following question:
“What is the probability that the needle crosses one of lane boundaries?”
This is basically Buffon’s needle problem statement. In order to answer this question, we could use a similar approach to the Franc-Carreau, but we run into a fundamental problem.
With the Franc-Carreau, we computed the probability that a circular coin lands squarely inside a square. We did not realise it back then, but a circle makes things significantly easier because it is symmetric around both the axes of a plane.
However, a needle is not symmetric. We need to factor in the direction of the needle in addition to its position. So, how shall we proceed?
What Does Intuition Say About Buffon’s Needle Problem?
Since the needle is ‘L’ units long, and the width between any two lane-boundaries is also ‘L’ units, we have just two extreme situations:
1. Case 1: Where the needle is parallel to the lane boundaries.
2. Case 2: Where the needle is perpendicular to the lane boundaries.
For case 1, the probability that the needle would cross a lane boundary is zero, since parallel lines do not ever meet. For case 2, the probability that the needle would cross a lane boundary is 1, because the lane width and needle length are equal.
So, the answer to Buffon’s question has to be somewhere in the middle. One approach would be to just weight the two extreme cases to arrive at an expected value of 0.5. That is, we could say that the needle crosses a lane boundary half on half the number of all throws.
However, in reality, this is a big underestimation, because the needle crosses a lane boundary more often than not. In fact, Buffon calculated the probability to be 2/π, which translates to approximately 64% of the time. But isn’t it strange that π shows up in a problem where we have no circles? Make a note of this; we will eventually answer this question.
Buffon originally used this problem to flex his math prowess, but we have no such lofty ambitions in this essay. Instead, we are going to cover an ingeniously intuitive solution proposed by Joseph-Émile Barbier.
Solving Buffon’s Needle Problem by Making Things More Complex
The very first thing that Barbier did was to rephrase Buffon’s question into a more complex question.
“Hang on a second! Why make a complex question even more complex? Why not make it simpler?”
If you are thinking along these lines, I empathise with you. In mathematics and logic, simplifying helps in some scenarios, but in other scenarios, important detail gets lost. In this case, we could choose to simplify, but the simplified version of this problem happens to be the Franc-Carreau.
In the Franc-Carreau, we work with a circle which is rotationally invariant, whereas we have a pin that is indeed rotationally variant. So, simplification does not help our cause.
Instead of doing this, what Barbier chose to do was as counter-intuitive back then as it is today. However, today, the concept has become standardized and is popularly known as making use of the linearity of expectation. Linearity of expectation states the following:
E(x + y) = E(x) + E(y), where E() denotes the expectation operator or the expectation function.
What is special about linearity of expectation is that it applies not just to independent random variables, but also dependent ones! This is precisely what makes it so counterintuitive.
There are certain conditions that these dependent variables have to meet though, which don’t concern us in this essay (I could go into stuff like Homoscedasticity, but it would be a long detour).
Buffon’s Needle Problem Rephrased
Coming back to Buffon’s needle problem, Barbier rephrased the question as follows:
“What is the expected number of lane boundaries that the needle crosses?”
If ‘p’ is the expected probability that a needle crosses a boundary, then, the expected number of crossed lane boundaries is calculated as follows:
Expected number of crossed lane boundaries = Sum of [(each possible number of crossed boundaries) * (probability of observing that number)]
= [(1 — p)*0] + (p*1) = p
So, the expected number of crossed lane boundaries is the same as the probability that the needle crosses a lane boundary (what Buffon’s question aims to answer).
How can this be? It might not be obvious, but this is an instantiation of the linearity of expectation: E(x + y) = E(x) + E(y).
Barbier’s Approach to Solving the Problem
If what you’ve seen so far is counterintuitive, the next bit is even more counterintuitive. Barbier imagined a situation where he threw a needle that was twice as long as the original needle (that is, the new needle is ‘2L’ units long).
“What is the probability that this needle crosses a lane boundary?”
Illustration created by the author
Intuition says that it must be greater than the probability of a needle half its size. Barbier did even better. He imagined that the needle was made of two needles of length ‘L’ glued at the centre.
Illustration created by the author
Here’s the counterintuitive bit: Apply linearity of expectation to these two needles!
Probability of the 2L needle crossing a boundary = E(Needle 1 + Needle 2) = E(Needle 1) + E(Needle 2)
E(Needle 1) or E(Needle 2) is none other than what we calculated previously as ‘p’. Therefore:
Probability of the 2L needle crossing a boundary = p + p = 2p
Extending Linearity of Expectation to More Needles
By the same logic we have used so far, we could compute the probability that a needle of any length crosses a boundary. Let us say that we have a needle of arbitrary length ‘nL’. Remember that ‘L’ is the width between any two lanes. If this is the case:
Probability of the nL needle crossing a boundary = np
Here’s the next counterintuitive bit: what we have figured out so far is true even if the needle is bent in different shapes as shown below:
Illustration created by the author
The probability for the triangle on the left turns out to be 3p + 3p + 2p = 8p. Similarly, the probability of the for the irregular geometry on the right is p + p + p + p + p + p = 6p.
In fact, with our model, we could construct any polygon and compute its probability of crossing a lane boundary. With this insight, we are finally ready to solve Buffon’s needle problem.
How to Solve Buffon’s Needle Problem
What if we construct a geometry that looks like a circle with a diameter of ‘L’ units? How do we do this? Simple: We string together thousands and thousands of tiny needles to make a polygon that approximates a circle.
Illustration created by the author
As a result, we end up with a rotationally invariant circle. In other words, we have regained the symmetry we had lost with the Franc-Carreau. With a circle, the problem becomes ridiculously simple.
Since the circle has a radius of ‘½ L’ units, its circumference is simply ‘πL’ units. Consequently, when we apply linearity of expectation:
Probability of the πL needle crossing a boundary = πp
Let us hold this result at the back of our minds. Since the circle has a diameter of ‘L’, no matter where it falls, it crosses a boundary exactly at two points (since it is a loop). Therefore:
Expected number of crossed lane boundaries for the circle = 2
Applying linearity of expectation to the last two equations, we arrive at the following result:
πp = 2
Dividing by π on both sides:
p = 2/π
There we go. We have solved Buffon’s needle problem (with Barbier’s help)! The probability is approximately 64%.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the ...
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-advertisement
1 year
Set by the GDPR Cookie Consent plugin, this cookie is used to record the user consent for the cookies in the "Advertisement" category .
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
CookieLawInfoConsent
1 year
Records the default button state of the corresponding category & the status of CCPA. It works only in coordination with the primary cookie.
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Cookie
Duration
Description
_gat
1 minute
This cookie is installed by Google Universal Analytics to restrain request rate and thus limit the collection of data on high traffic sites.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Cookie
Duration
Description
__gads
1 year 24 days
The __gads cookie, set by Google, is stored under DoubleClick domain and tracks the number of times users see an advert, measures the success of the campaign and calculates its revenue. This cookie can only be read from the domain they are set on and will not track any data while browsing through other sites.
_ga
2 years
The _ga cookie, installed by Google Analytics, calculates visitor, session and campaign data and also keeps track of site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognize unique visitors.
_ga_R5WSNS3HKS
2 years
This cookie is installed by Google Analytics.
_gat_gtag_UA_131795354_1
1 minute
Set by Google to distinguish users.
_gid
1 day
Installed by Google Analytics, _gid cookie stores information on how visitors use a website, while also creating an analytics report of the website's performance. Some of the data that are collected include the number of visitors, their source, and the pages they visit anonymously.
CONSENT
2 years
YouTube sets this cookie via embedded youtube-videos and registers anonymous statistical data.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Cookie
Duration
Description
IDE
1 year 24 days
Google DoubleClick IDE cookies are used to store information about how the user uses the website to present them with relevant ads and according to the user profile.
test_cookie
15 minutes
The test_cookie is set by doubleclick.net and is used to determine if the user's browser supports cookies.
VISITOR_INFO1_LIVE
5 months 27 days
A cookie set by YouTube to measure bandwidth that determines whether the user gets the new or old player interface.
YSC
session
YSC cookie is set by Youtube and is used to track the views of embedded videos on Youtube pages.
yt-remote-connected-devices
never
YouTube sets this cookie to store the video preferences of the user using embedded YouTube video.
yt-remote-device-id
never
YouTube sets this cookie to store the video preferences of the user using embedded YouTube video.
Comments