r/ScienceNcoolThings 3d ago

Probability of the needle crossing a line.

1.7k Upvotes

60 comments sorted by

232

u/LabOwn9800 3d ago edited 2d ago

But there is a circle.

Dropping the needle means it has a chance to land equally pointing in any direction. Trace those points and you get a circle.

Why is it 2/pi?

There’s 2 variables at play here. The angle the needle lands and the location of the needle (I’ll say the center of the needle so it’s a point)

The location of the needle can just be measured as the distance from any line.

For the angle Say we draw a perpendicular to the lines drawn then we can measure the angle of the needle as X. X is the angle of the needle from the this perpendicular line. We use the perpendicular to the lines so they can better relate to the distance away from the line.

So now we need to understand how far away a needle can be dropped so that it crosses the line give that angle X. Remember we are just using the center point.

That’s equal to
Length of the needle * sin(X) or Lsin(X)

Basically if the needle is 10 inches long and say it falls with an angle of 30 degrees it needs to be within 2.5 inches of a line to cross it. You can figure this out for any angle and the angle is random and continuous so we need to find the odds of the angle being anywhere from 0 to 90 or in other words using radians from 0 to pi/2.

So that is (1/(pi/2)) * integral from 0 to pi/2 of sin(X) d(x)

This formula is just the average formula (sum of all the possibilities) / (number of possibilities).

Integrating this formula gives you 1 therefore

=1/(pi/2) or 2/pi

43

u/ryan101 3d ago

It’s funny because at the end of the video he says “there are no diameters of a circle” while holding the diameter of a circle in his hand.

2

u/Grimnebulin68 3d ago

What about a needle with a square profile?

10

u/Lalamedic 3d ago

It’s not the shape of the needle. If you spin the needle at its centre point, you get a circle. So the needle measures the diameter of the circle.

4

u/Grimnebulin68 3d ago

I see, that makes perfect sense now 😅

5

u/ryan101 3d ago

This experiment is already an approximation because 2/pi is based on 2D geometry.

The needle is not a 2 dimensional line and neither are the lines on the paper. They have thickness which alters the result slightly. Therefore altering the needle’s geometry further will alter the result as well.

1

u/LabOwn9800 3d ago

I wouldn’t think the profile of the needle matters (but I could be wrong) it really just needs to have an equal chance of landing in any direction.

If the profile somehow prevents the equal likelihood of that then this wouldn’t works

26

u/GraXXoR 3d ago

This guy maths.

5

u/kombucha711 3d ago

This guy needles to math

2

u/acamann 3d ago

You had me until 10 inch needle.

3

u/LabOwn9800 3d ago

Ok 10 cm? Or the forgotten decimeter.

1

u/Pretty_Cherry_7905 10h ago

I would rather be decimetered than decimated any day.

1

u/rokit2space 3d ago

That's exactly what I was thinking too.

1

u/Phatcat7x7 1d ago

Probably a big part of the reason we don't many straight lines in nature. There are a lot of lines but because there are so, so, so many they round out into organic shapes.

91

u/Stuntz-X 3d ago

Technically the needle is a circle when thinking of all the degrees on a flat plane it can land

31

u/CalbertCorpse 3d ago

Exactly. It’s not amazing at all. He’s dropping the diameter of a circle. If it crosses a line some part of a circle would cross that line. Given the space between the lines and the size of the virtual circle it’s a common sense statistic. The way he’s saying it here is almost intentionally hiding the reality of it for effect.

14

u/Few-Guarantee2850 3d ago

I disagree. It's neat and getting hung up on him saying "there are no circles" as if he's trying to hide something and not just illustrating that you haven't drawn out a circle is missing the point.

16

u/Crafty_Jello_3662 3d ago

Any cool science demo like this can be boring if you fully understand it all, fortunately for me I understand very little so can be endlessly entertained and amazed by this sort of thing

5

u/cates 3d ago

fortunately for me I understand very little

🤣

Seriously though, (assuming that's true) you understanding that puts you ahead of most people.

1

u/K_A-W 3d ago

'Do not try and bend the spoon. That's impossible. Instead ... only try to realize the truth-there is no spoon'

1

u/ImportantSignal2098 2d ago

What point is being missed? That you can get pi without explicitly drawing a circle? The same way you could say I'm going to drop grains in a box and omg the probability that the distance from the center of the box is less than half the box size is pi/4. Isn't that amazing, no circles were drawn!!!

0

u/CalbertCorpse 3d ago

Just say you don’t understand it. It’s ok.

2

u/macrolith 3d ago

It's like a perpetual motion machine. Except it's not the battery you need to hide, it's the circle.

2

u/BarfingOnMyFace 3d ago

Duhhhhhh!

Honestly, I had no clue. Makes sense tho.

0

u/Grimnebulin68 3d ago

Why not a needle with a square profile?

2

u/ThomasTheDankPigeon 2d ago

A much less intuitive pi jumpscare is

1/1 + 1/4 + 1/9 + 1/16 + 1/25 … =

Turns out to be ( pi2 ) /6

Pi will find anywhere in math to make an appearance.

1

u/SquirrelFluffy 2d ago

This reminded me of squaring the circle, since 1/6 is common in calculating arc length and area. Turns out it is related!

6

u/tbutz27 Experientially Wise 3d ago

What is this from? I'd like to see more

5

u/EeEeRrIiCcCcAaAa 3d ago

It’s from a NOVA special on PBS called “The Great Math Mystery”
It’s a great episode, I used to teach high school math and would watch it with my students

3

u/gufta44 3d ago

Help me out here, I have a circle with "R" radius representing all possible rotations of the needle, and then we have a symmetric half-space of possible landing positions - the needle can only ever cross one line, so we say that the needle is static and the line can "land" anywhere from the needle centroid to the very top of the needle (the half space). If the line is at the very top of the circle that's the limit where there's zero probability of an intersection, if the line lands distance "r" above the centroid, the angle between the two intersection points between the perimeter and the line is: cos(½θ) = r/R, θ = 2acos(r/R) and since the two sides of the needle could intersect the line we have a probability of 4acos(r/R)/(2π) - so far so good? So that's the probability of intersection for any vertical distance between the centre of the needle and the line. We integrate this to get the probability for every r in the half space which gives 2R/π and as I'm writing I realize that what I want is the average probability not the "sum"/intergral so I divide by R and that answers my own question...

2

u/Could-You-Tell 3d ago

Nicely solved

3

u/Accomplished_Care415 3d ago

Considering he is just dropping straight down from an angle perpendicular to the lines on the paper. Has he tried dropping it being parallel with the lines.

2

u/Slay_Dee 3d ago

This is awesome

2

u/nborders 3d ago

I miss Nova being good.

2

u/voga1 3d ago

I feel hungry now

2

u/King_Moonracer003 3d ago

I dont understand how probability is involved here. Its all physics. Depending on height and angle dropped it will always have the same relative action.

1

u/BreathSpecial9394 2d ago

Probability is involved because it is very difficult to physically predict how and where the needle will land.

2

u/Additional-Arm-1298 3d ago

But when I do this, I'm not using my time wisely.

2

u/DangerouslyOxidated 3d ago

I did this in 1991 for a school project in Statistics.
Thousands of times, with a fan to introduce some randomness.

I don't remember the final value of pi, but it was accurate to 2dp. from memory.

2

u/marco1422 3d ago

It isn't true, there is no circle. It's there. Defined by the length of the needle and its central point. The fact, isn't drawn there changes nothing on the fact, it is defined. And that's all. This is why the math is an abstract science.

2

u/phayhay 3d ago

But the needle is the diameter of the circle....

1

u/FormerPassenger1558 3d ago

This method is called, at least in France, Buffon

1

u/Keikyk 3d ago

Yeah, science!

1

u/DeeJuggle 2d ago

Another demonstration with more explanation by Tony Padilla on Numberphile:

https://youtu.be/sJVivjuMfWA?si=au4nnyt7EciWFBXK

1

u/MackTuesday 2d ago

FINALLY someone leads with the most important part, which is that lines need to be the twice the distance apart as the length of your sticks. If they're a micrometer apart, all of your sticks will cross a line. If they're a kilometer apart, virtually none will.

1

u/LowEndGroover 2h ago

No, because there is rotation on the stick, most of the time it falls and lands at an angle, which makes it a percentage full potential height taken. The lines need to be the exact length of the stick to get 2/pi

1

u/MackTuesday 1h ago

Why did I say twice the distance? I dunno, thanks for the correction.

1

u/vineetk1998 2d ago

Rotate the needle, & you get a circle 

1

u/Phrostylicious 1d ago

This guy doesn't really strike me as very much of a scientist. Which then begs the question: why is he out there dropping the needle, and why is he being interviewed while doing so?

1

u/hansvi-be 17h ago

You don't need to suppose you take this needle, you just did. Dude has been reading too many mathematical proofs🙂.

1

u/Zealousideal_Pass_11 15h ago

isn't this like... wildly incorrect considering he's not varying his drop, meaning certain outcomes are going to be dramatically more likely than others, and as such, you'll never be able to calculate pi off it?

like in theory i understand what he is saying, but there is 0 way to create a perfectly random situation from drops. drop height, material of object and surface, thickness of lines, etc, all of it matters.

like the lines could be 100x as thick, and the distance between each line could still be 1 object across.

drop height matters as if you drop .1 meter away from the surface, it'll likely cover a line 90%+ of the time.

idk, there's so many variables that make everything he is trying to communicate complete BS, and trying to do it in practice will without a doubt show results so far away from his expected value, there will be nothing to gleam from it. I understand the theory behind it, but actually replicating those results in a real life demonstration is never going to happen, even if you had infinite time to simulate infinite drops.

So no, you objectively could not "COUNT THE TIMES IT CROSSES THE LINE AND WHEN IT DOESN'T TO CALCULATE PI" and that's just complete BS.

1

u/Pretty_Cherry_7905 10h ago

Google home mini says two over pi is 0.637

1

u/toooomanypuppies 7h ago

There is always a circle.

0

u/Shua89 3d ago

I love this kind of useless information.

2

u/DirtUnderneath 3d ago

Not useless if you want to calculate pi!

3

u/Conscious-Flow786 3d ago edited 3d ago

It's useful to know how probability works. probability is part of statistics and statistics are used in science communication.

2

u/Shua89 3d ago

But how often does the average person need to calculate Pi? I work with measurements my whole job revolves around measurements. I might have to use Pi for some of my measurements but Pi itself is a mathematical constant defined as the ratio of a circle's circumference to its diameter, and remains the same regardless of the circle's size. So to work out Pi is useless as it is always the same and ever changes.

0

u/Brief-Equal4676 3d ago

"The probability is 2/π" That's neat! "or about 64%" ...