MYSIMULATOR/ 2D LABS← All simulations
Interactive learning environment · Probability and Statistics

Monte Carlo Pi Estimation Lab

Estimate π by dropping random points into a square and counting those inside an inscribed circle.

Live model · Adjustable parameters · Real-time feedback
SIMULATION CANVASRUNNING
Adjust the controls to explore the model.

What you are exploring

For uniformly random points in a unit square, the fraction landing inside the quarter-circle approaches π/4. Multiplying the observed fraction by four gives a Monte Carlo estimate of π. More samples generally reduce random error.

How to experiment

Change one parameter at a time, observe the response, then reset and compare. The model runs locally in your browser and does not require an account or external libraries.

Made with 🤖 ChatGPT