P(getting Pi correct to n digits after x trials)?

  • Context: Undergrad 
  • Thread starter Thread starter moonman239
  • Start date Start date
  • Tags Tags
    Pi
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
moonman239
Messages
276
Reaction score
0
I would like to know how confident I can be in my Monte Carlo estimate of Pi, plus/minus a specified margin of error. I know the locations of the "pins" are uniformly distributed, thus P(pin being within circle's radius) = P(x <= radius) * P(y <= radius)
 
Physics news on Phys.org
Here are four links:

1) http://answers.yahoo.com/question/index?qid=20080107132917AAxtMth", Yahoo Answers
If you take N=100 dots you get an approximate value for pi, e.g. 3.241. Repeat this e.g. 20 times and have 20 approximate values for pi. For these 20 values you can calculate the standard deviation.

2) "www.evsis.org/docs/tdpp2_chap1.pdf"[/URL]
On page 4 to 6 of the document you will find a pseudo-code to calculate the variance and standard deviation.

3) [PLAIN]http://www.physics.sc.edu/~yar/phys309_2010/calculating_Pi/Pi_report.htm" )
This website talks about how many dots you need to ensure a certain number of correct digits.

4) http://mathforum.org/library/drmath/view/51909.html", Math Forum
This article discusses the standard deviation and confidence interval.
 
Last edited by a moderator:
I just gave myself a dopeslap for not thinking about using the standard deviation formula.