Interactive 2D science lab

Monte Carlo π: Random Sampling and Convergence

Estimate π by throwing random points into a square and counting those that land inside a quarter circle.

Mathematics · Probability
LIVE · 2D MODEL

Explore the science

For points sampled uniformly in a unit square, the fraction that fall inside the quarter circle approaches π/4. The estimate 4·(inside/total) converges statistically as the sample size grows, with random fluctuations at finite N.

Made with 🤖 ChatGPT