| ISSUE 237/456 · COMPUTER SCIENCE |
~4 MIN |
FOUNDATION / MONTE CARLO ERROR · READING DATE 2027-05-26 · MAY 2027 — ALGORITHMS AND LIGHT
Why four times the simulation gives only half the noise
START HERE
You can estimate a shaded fraction of a picture by checking randomly chosen points. Monte Carlo estimation is a calculation method that uses random samples to estimate an average, probability or total. Different samples produce different estimates, so a useful result must describe its sampling uncertainty as well as its central number.
|
/ WHY NOW
Running a simulation longer usually improves precision, but the improvement can be surprisingly slow. In a basic independent-sample calculation, quadrupling the work halves the typical sampling fluctuation. It does not normally make the estimate four times as accurate.
|
/ THE IDEA
For the shaded-area example, record 1 if a uniformly chosen point lands inside the shaded region and 0 otherwise. The average of those records estimates the shaded fraction. Uniform positions give every equal-sized patch the same chance of being tested. Independent draws mean knowing one outcome does not change the others’ chances. Variance measures spread by averaging squared departures from the expected value; standard deviation is its square root. Independent draws have variances that add, while averaging divides by the square of the sample count. The average’s variance is therefore the individual variance divided by sample count. Taking a square root gives the standard error, the estimate’s typical spread across repeated runs.
THE FORMAL IDEA
SE = σ/√N
| SE = standard error of the sample average; σ = standard deviation of one draw; N = number of independent draws. | | √N is the square root of N. For a 0-or-1 draw with true success fraction p, σ = √(p(1−p)). Fractions here have no units. |
|
RUN THE TINY EXAMPLE
Change one thing. Predict what happens.
Test the method on a square known to be exactly half shaded: p = 0.5. σ = √(0.5 × 0.5) = 0.5. For N = 100: SE = 0.5/10 = 0.05, or five percentage points. Change only N to 400: SE = 0.5/20 = 0.025, or 2.5 percentage points.
|
A particular hundred-point run could miss by less than five points, and a particular four-hundred-point run could miss by more. The prediction concerns the spread over repeated independent runs, not a guaranteed error or the exact next estimate.
/ SO WHAT?
The known half-shaded case is a calibration exercise before applying the procedure to a complicated region. Improving the sampling design can sometimes help more than merely taking more points. If the points favour one part of the picture, a huge sample can confidently estimate the wrong quantity.
ONE CAVEAT |
| The rule assumes independent samples with finite variance. Correlated simulations can contain less information than their raw count suggests. Standard error describes random sampling noise, not errors in the physical model, biased inputs, coding mistakes or a guaranteed confidence interval. |
KEEP THIS
Independent sample averages become steadier as the square root of sample count, so halving typical noise generally requires four times the sampling work.
|
NEXT: Why two copies of a beam can stop making clear stripes
|