PLAIN/TEXT — ISSUE 237/456 COMPUTER SCIENCE · FOUNDATION / MONTE CARLO ERROR · ~4 MIN READING DATE: 2027-05-26 ARCHIVE: https://plaintext.click/newsletter/ SUBJECT: Why four times the simulation gives only half the noise 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. / SOURCE TRAIL [1] University of California, Riverside — Monte Carlo standard error https://faculty.ucr.edu/~jflegal/StatisticsForDataScientists.pdf NEXT: Why two copies of a beam can stop making clear stripes --- HARD IDEAS. PLAIN TEXT. You are receiving this because you asked for one clear computer-science or physics idea each day. Unsubscribe: https://plaintext.click/unsubscribe View in browser: https://plaintext.click/newsletter/2027/05/2027-05-26-monte-carlo-sampling-error.html From: Plain/Text / Brickston Consulting · 30 N Gould St Ste N, Sheridan, WY 82801 US · knowledge@plaintext.click