Monte Carlo Simulation — Visual Explainer

Use randomness to approximate answers when a direct calculation is hard. Watch points drop into a square containing a circle; the share of points that land inside the circle estimates π.

Inside circle
Outside circle
Estimate:
Total points: 0
Convergence: estimate vs. number of points (dashed line = π)