How many to pin an average?

Sizing a poll for a yes/no split is one thing; pinning down an average — wait time, basket size, blood pressure — is another. Here the lever isn't the proportion, it's the spreadThe standard deviation of the individual values: how spread out they are. Wider spread needs a bigger sample to average out to the same precision. of the values. Feed in how varied they are and how tight a band you want, and read off the sample it takes — or run it backwards.

A sample ofvalues averages.
They vary with a spread ofunits; report at% confidenceHow often the interval contains the true mean across repeated samples. 95% is the default..
±2.08units

Your average of 100 is really somewhere between 97.92 and 102, with 95% confidence — from 200 measurements.

±2.08margin
97.92interval low
102interval high
MeasurementsMargin
50
±4.16
100
±2.94
250
±1.86
500
±1.31
1,000
±0.93
2,500
±0.59

The margin shrinks with the square root of the sample, so each halving of the band needs four times the measurements. Past a few thousand, more data barely moves the band.

margin of error for a mean · E = z·σ/√n