title: Monte Carlo error
body: <p>I've written a monte carlo program to calculate ln(2). I generate random x in the range 1-2 and random y in the range 0-1. If y&lt;1/x I add 1 to my count. My estimate of ln(2) is count/n (i.e. frac from above). I'm trying to find the error in my estimate so that I can end the program once my estimate is accurate to 2dp. I am not sure how to compute the standard deviation in a meaningful way. Help?</p>