A quarter ellipse with semi-axes and occupies the region , ,
PHYSICS · Subjective · Fermi University Physics · Computational Physics · Monte Carlo and lattice simulation of physical systems · Monte Carlo and lattice simulation of physical systems
Computational Physics, Ch Drawing numbers: random walks and Monte Carlo
Problem
A quarter ellipse with semi-axes a=2.000m and b=1.000m occupies the region 0≤x≤a, 0≤y≤b, (x/a)2+(y/b)2≤1. It sits inside the bounding rectangle of area ab=2.000m2. A program draws points uniformly at random in the rectangle (seed 11) and counts a hit whenever a point lands inside the quarter ellipse. The exact area is πab/4=1.5708m2.
(a) At N=10000 trials, 7852 land inside. Using the binomial (hit-or-miss) formula σp^=p^(1−p^)/N for the hit fraction p^, compute the area estimate and its standard error.
(b) Using the 1/N scaling of the standard error, predict the standard error of the area estimate that a run of N=1000000 trials by the same method should give.
(c) A run at N=1000000 (seed 12) gives 785600 hits. Compute the actual area estimate and its standard error, and state whether it agrees with the prediction of part (b) and with the exact area.