How Far Off Is It
Last timeThe Average Is the Answer
An estimate without an error bar is not an answer. The error bar comes from the samples themselves, and it carries an uncomfortable consequence about the cost of precision.
A simulation returns 0.3367. Is that answer good to two digits or to four?
Nothing in the number says. The samples that produced it do say, and getting
the answer out of them costs one extra line.
- the standard error: the typical distance between the estimate and the truth
- the spread of a single computed value, measured from the samples themselves
- the number of draws
- the estimate, which is the average of the computed values
- the interval usually quoted, which covers the truth about nineteen times in twenty
| draws needed | typical error | seconds at a million dra | |
|---|---|---|---|
| one reliable digit | 100.000 | 0.100 | 0.000 |
| two reliable digits | 10000.000 | 0.010 | 0.010 |
| three reliable digits | 1000000.000 | 0.001 | 1.000 |
| four reliable digits | 100000000.000 | 0.000 | 100.000 |
| five reliable digits | 10000000000.000 | 0.000 | 10000.000 |
Sizing a run for a probability
When the thing averaged is one on success and zero otherwise, its spread is
fixed by the probability itself, so the sample size needed can be worked out
before any sampling happens. The hardest case is a probability near one half,
and planning for that is safe for every other case.
Rare events are the opposite problem. What controls the precision is the
number of successes seen, not the number of draws taken, so a probability of
one in a million needs on the order of a hundred million draws before the
estimate means anything. That is the motivating case for the next lesson.
The lesson stops here
1 more paragraph to go
You have read the opening. The rest of the argument, the problems that check whether it landed, and the lines worth keeping at the end all come with a plan.
The first lesson of every course in the library reads the whole way through, free, so you can see exactly what the rest of them are.
See the planThe contentsThis is the reading half
Starting the course gives you your own copy of it. Every idea on every page has problems standing under it, marked with a reason rather than a tick, and any sentence you do not believe can be opened and argued with. None of that can happen on a page nobody owns.
The contents