Approximating π the Monte Carlo Way

  1. Draw a square on the ground, and within it, inscribe a circle.
  2. Throw rice into the square, as randomly as you can, counting how many grains of rice you’ve thrown.
  3. Count how many land in the circle.
  4. Divide by the number you threw, and multiply by 4.

Congratulations, you have estimated π. The more rice you throw, and the more randomly and uniformly you do it, the better the approximation. There’s something almost unsettling about this method…

Leave a Reply

Your email address will not be published. Required fields are marked *