Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    The one thing everyone gets wrong about feminism | Feminism

    Gas prices are soaring – but one Los Angeles gas station is taking it to the extreme | Los Angeles

    Why is smoking so addictive – and what are the best ways to give up? | Life and style

    Facebook X (Twitter) Instagram
    Facebook X (Twitter) YouTube LinkedIn
    Naija Global News |
    Sunday, March 15
    • Business
    • Health
    • Politics
    • Science
    • Sports
    • Education
    • Social Issues
    • Technology
    • More
      • Crime & Justice
      • Environment
      • Entertainment
    Naija Global News |
    You are at:Home»Environment»How to find pi in randomness all around you
    Environment

    How to find pi in randomness all around you

    onlyplanz_80y6mtBy onlyplanz_80y6mtMarch 13, 2026006 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Email
    How to find pi in randomness all around you

    These three techniques will let you estimate pi out of randomness.

    Jonathan Mauer/Getty Images

    Share
    Facebook Twitter LinkedIn Pinterest Email

    Celebrate Pi Day and read all about how this number pops up across math and science on our special Pi Day page.

    Grab something circular, like a cup, measure the distance around the circle, and divide that by the distance across the widest part. What you’ll get is a pretty good estimate of the irrational number pi (3.14159…). But you can also find pi in a series of random coin flips or a collection of needles tossed on a wooden floor. Sometimes the reason pi shows up in randomly generated values is obvious—if there are circles or angles involved, pi is your guy. But sometimes the circle is cleverly hidden, and sometimes the reason pi pops up is a mathematical mystery!

    To celebrate Pi Day this year, here are three ways to estimate pi using random chance that you can try out at home. The last one, using coin flips, is brand new—published just in time for Pi Day.

    On supporting science journalism

    If you’re enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.

    1. Circle in a square

    Perhaps the simplest way to randomly estimate pi works like this: take a square with side length 2 and place a circle with radius 1 inside so that it just touches the edges of the square. Then randomly generate points in the square. As you add more and more random points, the proportion of points which end up in the circle will approach π⁄4—the ratio between the area of the circle (pi) and the area of the square (4).

    The incidence of pi here is not surprising—it comes directly from the formula for the area of a circle—but the method is a classic example of a Monte Carlo simulation, in which random data are used to approximate an exact calculation.

    2. Buffon’s Noodle

    Suppose I drop a bunch of needles on a hardwood floor with lines spaced one needle length apart. What proportion of the needles can I expect to cross the lines? This question was first posed by Georges-Louis Leclerc, Comte de Buffon (or Count of Buffon) in 1733, and the answer is 2⁄π (about 2⁄3).

    To find out why, we need to think about a more general question: What if our needle is not a straight line but a squiggle, a square or any other line-drawn shape?

    This extended version of the problem is sometimes called “Buffon’s noodle” because noodles come in many more shapes than needles. It turns out that no matter what shape the needle is bent into, we can still expect it, on average, to cross the same number of lines. The expected value of the number of lines crossed is proportional to the length of the needle. In other words, we can expect a collection of needles of length n (of any shape) to cross n times as many lines as the same number of needles of length 1.

    So to find the answer to Buffon’s query, all you need to do is pick a clever shape for your needles. This is where the circles come in. If you have lines spaced one unit apart and a needle bent into a circle that has diameter 1, it will always cross the lines exactly twice. The length of the needle making up the circle is pi, and so the probability that a needle of length 1 will cross a line will be the expected value of the number of times the circle crosses—2—divided by the length of the circular needle, giving us 2⁄π.

    3. Flipping coins

    Pick up a coin and flip it. Record heads or tails. Repeat until you’ve gotten one more head than tails, and record the proportion of heads to total flips. For example, if your first flip was heads, stop right away and record 1. If you flip tails, heads, tails, heads, heads, stop and record ⅗. The expected value of your result, or the average of all your trials if you did infinitely many, is π⁄4. The more trials you average together, the closer you get to π⁄4.

    This new method for estimating pi using coin flips was introduced by James Propp, a mathematician at University of Massachusetts Lowell, in a preprint posted online at ArXiv.org last month—just in time for Pi Day! Though the math behind the method is nothing new, the idea to use it to estimate pi with coin flips is.

    So why do we get π⁄4? The unsatisfying answer is that somewhere in the probability calculation there is an infinite sum that happens to correspond to the values of the arcsin function—a trigonometric function closely related to pi. But mathematicians haven’t found a meaningful connection between flipping coins and pi. “Sometimes something that’s really basic has relevance to two totally disconnected branches of mathematics,” Propp says. “That’s one of the joys of mathematics, but in many respects it’s a mystery.”

    Vienna University of Technology mathematician Stefan Gerhold observed a very similar result, which he posted as a preprint to arXiv.org in 2025. Instead of flipping a coin until you have more heads than tails, Gerhold and his co-author were thinking about families having children and stopping when they had one more boy than girl. “It’s very mysterious,” Gerhold says. “I don’t think there is a good way to understand that [in this scenario] the expectation will involve pi.”

    None of these methods are particularly practical for estimating pi’s value. To get pi to the accuracy of 3.14, Propp estimates it might take up to one trillion coin flips. This is partially because sequences of coin flips can get really long before heads overtake tails, so much so that the expected value of a sequence’s length is infinity! On top of that, you can’t flip all the coins at once the same way you can drop needles—the order of heads and tails matters. That’s why Propp suggests trying it in a classroom, where many students can flip sequences of coins simultaneously.

    Jennifer Wilson, a mathematician at the New School, who uses similar probability models to analyze voting methods, finds the result pleasing. “It’s nice because it’s certainly something you could try with any group of students, and all you’d need is a background in calculus to understand it.”

    On your own, you might be flipping coins for quite a while to get an accurate read on pi. And even the other two methods might require around one million random points or needle drops to get 3.14—but you could get luckier. This Pi Day, consider joining in on the tradition of finding the value of pi in wildly inefficient ways.

    We’re looking to host the most interesting science conversations on the web for this topic.

    Start the Discussion

    Find randomness
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleFederal Grant Makers May Lose Job Protections: 5 Things to Know
    Next Article How to build a moon base
    onlyplanz_80y6mt
    • Website

    Related Posts

    Some top US lobbying firms are working both sides of the Pfas issue at the same time | Pfas

    March 14, 2026

    Germany misses climate targets as emissions barely fall in 2025 | Germany

    March 14, 2026

    How the War in Iran Is Raising Concern About Water in the Middle East

    March 14, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    Watch Lady Gaga’s Perform ‘Vanish Into You’ on ‘Colbert’

    September 9, 20251 Views

    Advertisers flock to Fox seeking an ‘audience of one’ — Donald Trump

    July 13, 20251 Views

    A Setback for Maine’s Free Community College Program

    June 19, 20251 Views
    Stay In Touch
    • Facebook
    • YouTube
    • TikTok
    • WhatsApp
    • Twitter
    • Instagram
    Latest Reviews

    At Chile’s Vera Rubin Observatory, Earth’s Largest Camera Surveys the Sky

    By onlyplanz_80y6mtJune 19, 2025

    SpaceX Starship Explodes Before Test Fire

    By onlyplanz_80y6mtJune 19, 2025

    How the L.A. Port got hit by Trump’s Tariffs

    By onlyplanz_80y6mtJune 19, 2025

    Subscribe to Updates

    Get the latest tech news from FooBar about tech, design and biz.

    Most Popular

    Watch Lady Gaga’s Perform ‘Vanish Into You’ on ‘Colbert’

    September 9, 20251 Views

    Advertisers flock to Fox seeking an ‘audience of one’ — Donald Trump

    July 13, 20251 Views

    A Setback for Maine’s Free Community College Program

    June 19, 20251 Views
    Our Picks

    The one thing everyone gets wrong about feminism | Feminism

    Gas prices are soaring – but one Los Angeles gas station is taking it to the extreme | Los Angeles

    Why is smoking so addictive – and what are the best ways to give up? | Life and style

    Recent Posts
    • The one thing everyone gets wrong about feminism | Feminism
    • Gas prices are soaring – but one Los Angeles gas station is taking it to the extreme | Los Angeles
    • Why is smoking so addictive – and what are the best ways to give up? | Life and style
    • How the war in Iran and its economic fallout will lead to Trump’s defeat | US-Israel war on Iran
    • How Libraries Shape AI Literacy on Campus
    © 2026 naijaglobalnews. Designed by Pro.
    • About Us
    • Disclaimer
    • Get In Touch
    • Privacy Policy
    • Terms and Conditions

    Type above and press Enter to search. Press Esc to cancel.