I'm trying to find the value of PI using the "Dart Board Method" but I've been unable to find a relevant algorithm on the net. Do you know of a link which can help me to understand this method and also provides an algorithm for this?
Thanks.
Summary: consider a 1x1 square. Its area is 1.
Consider a circle which fits just inside the square. Its area is pi * r * r, which is pi / 4.
So, if you throw a squillion darts at that square (and they all hit, and their x and y co-ordinates each have independent uniform distribution), then for any subset of that square, you'd expect the proportion of the darts inside it to be equal to the area of the subset as a proportion of the area of the square.
So count how many darts fall inside the circle (by measuring whether the distance from the dart to the centre of the square is greater than or less than 1/2), divide by a squillion, multiply by 4, and you have a Monte Carlo estimate of pi.
For a start maybe the more known name helps you
Monte Carlo Integration (aka DartBoard Method)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With