Monte Carlo π Estimator

Why this works is straightforward! The unit circle has area π(1)^2 = π, so for a 2x2 square with an inscribed circle, out of 4 randomly placed dots, we expect pi of them are in the circle! The ratio is preserved regardless of group scale!