A fair coin "knows" π.
Stop flipping when heads first outnumber tails. The expected fraction of heads is π/4. Average many trials → estimate π.
Result by J. Propp, animated for #PiDay.
Made with #Python #NumPy #Matplotlib and @marimo.io
#Mathematics #MathArt #CreativeCoding