If you throw uniform random darts within a square
board, the ratio of the number of throws within a circle
of diameter the side of the square to the total
number of throws will be
,
use this method to compute an approximation to
.
Take an average over 500 simulations of
1000 throws.
Compute the variance of your estimate.
You can compare with a very good representation
of
you can consult through the command vpa(pi).