Twelve independent trials each succeed with probability . What is the probability of at least four successes? A binomial sum answers the question exactly, a normal curve answers it approximately and a simulation estimates it, and the three numbers differ. This lesson compares the three methods on one fixed model and event, explains what each kind of error means, and shows which answer to report and how to describe it.
Key terms
Exact model probability
Definition The exact model probability of an event is the value that the stated model assigns to it, written as an expression that follows from the model’s assumptions without approximation. A decimal shown for it is often rounded, with an error of at most half a unit in the last digit shown. Exactness refers to the model only. It does not show that the model describes the real process.
In plain words Within a model there is one correct number for each event, and an exact expression is that number. Whether the model’s assumptions, such as independent trials with a common success probability, hold for real trials is a separate question that no calculation inside the model can settle.
Example Let and , where is the target probability and is the success probability of each trial. The complement needs only the four masses
for , and
Approximation error
Definition An approximation replaces the model’s distribution, or a step of the calculation, by something simpler, for example a normal law with the same mean and variance. If it gives the value for an event whose exact model probability is , its approximation error is . For a given model, event and method this error is one fixed number, not a random quantity. Its size depends on the parameters and on the event, and the limit theorem behind a method does not give its size at a fixed .
In plain words An approximation answers a nearby question about a simpler distribution. Repeating it gives the same number with the same error. Its size becomes known through a comparison with an exact value, and a theorem with an explicit error bound can limit it without giving it exactly.
Example For the mean is , the variance is and the standard deviation is . With the continuity correction, becomes for , and , so
The approximation error is , about percentage points or percent of . The binomial law here is skewed to the right, with its mean only two standard deviations above the smallest count , and a symmetric normal curve does not follow it closely.
Simulation error
Definition Let be the fraction of independent simulated replications in which the event occurs. Its simulation error is . This error is random. Across repeated runs it has mean and standard deviation equal to the Monte Carlo standard error
The standard error describes the spread over possible runs. It does not give the error of the run actually performed.
In plain words A new seed generally gives a different estimate, and the standard error says how far a typical estimate falls from the model probability. More replications shrink this spread in proportion to , but when no finite run removes it, and more replications do nothing about errors in the model itself.
Example One batch is twelve pseudorandom uniform numbers, each number below counts as a success, and the batch is scored when it has at least four successes. A recorded run of batches with Python’s random.Random generator and seed scored batches, so . The standard error is
and the error of this run, , is about standard errors.
Uncertain model inputs
Definition A model input such as a success probability, a rate or a number of trials is often known only approximately. Changing an input can change the exact model probability itself, so input uncertainty is a different kind of error from approximation error and simulation error. One way to show its effect is to compute the target over the range of plausible input values.
In plain words A calculation is exact only for the inputs it was given. If the success probability is uncertain, no amount of simulation at one value of it can tell which value is right, since every run answers a question about the input that was used.
Example Suppose the success probability of each trial is known only to lie between and . The probability of at least four successes in twelve independent trials increases with the success probability, from about at to about at , with at . That spread of about is far larger than the approximation error and the simulation standard error .
Error interpretation
Definition Error interpretation means stating, for each reported number, which kind of error it carries and what the error statement means. Rounding error is at most half a unit in the last digit shown. Approximation error is a fixed amount for the given model and event, known when it has been checked against an exact value and limited when an error bound applies. Simulation error is random, and its standard error describes its spread over repeated runs. Model error, including uncertain inputs, lies outside all three and is addressed by examining the assumptions and inputs, not by a more precise calculation with the same inputs.
In plain words A useful report names the model, its parameters, the event, the method and the meaning of its error. For a simulation it also gives the number of independent replications, the number of occurrences, and the generator and seed. Answers from different methods are not averaged together. Each carries its own kind of error, and an average of them would carry a mixture that none of the error statements describes.
Example For with , a clear report reads as follows. The exact model probability is , rounded to six decimals. The corrected normal approximation is too high, a fixed error for this event. A recorded simulation of independent batches with Python’s random.Random generator and seed had occurrences, an estimate of with standard error about . All three numbers assume independent trials with success probability . Since the exact value is cheap here, it is the answer to report, and the other two serve as checks.
Check yourself
- Let . Choose a method for and find the probability.
Show the answer
The complement gives an exact answer at once. No successes has probability , so
A corrected normal approximation with would give , adding an avoidable error of about , and a simulation would give only a random estimate of the same number.
- Someone simulates independent batches of five trials, each trial a success with probability , sees at least one success in every batch and concludes that . How likely is such a run, and what can a simulation add here?
Show the answer
Each batch has at least one success with probability , and the batches are independent, so all batches do with probability
about one run in . The observed fraction is a relative frequency in a finite simulation, and the model probability is still . With batches the standard error is about , and the observed fraction exceeds by , about standard errors. Such a run is uncommon, but it is no reason to change the exact model answer. A simulation can check a program against the exact value or show how frequencies vary between runs, but it cannot improve an exact answer.
- For with , would a second simulation of batches with a different seed have the same error as the recorded run? Would the error of the normal approximation change? What standard error would batches have?
Show the answer
A run with a different seed generally gives a different estimate, and so an error other than . Its error is random, with mean and standard deviation about . The normal approximation involves no randomness, so its error stays every time it is computed. Four times as many batches halve the standard error, so batches give about . Neither more batches nor a better approximation would change the target itself, which depends on the inputs and .