In a constructed model, each delay at a service desk is or minutes with equal probability, so the model mean is minutes. Suppose that one morning six delays are recorded, , , , , and , and their average is of a minute. Does that average show the model is wrong, and how far from should an average of delays usually be? This lesson separates the random sample mean from the number one sample produces, shows that the sample mean is centered at the model mean, and finds how its spread shrinks with the sample size when the observations are independent.
Key terms
Realized average
Definition Let , with , be random variables that record observations not yet made. The sample mean is the random variable
Once the observations are made and take the values , the realized average is the number
which is the value of for that one outcome. Capital letters stand for random variables and lowercase letters for their observed values.
In plain words The sample mean is a rule applied to data that are still random, so it has a probability distribution. A realized average is the single number the rule returns for one data set. Collecting the data again can give a different realized average.
Example In the delay model each is or minutes with probability each, so minutes and square minutes. The recorded delays above have sum minutes and realized average
minutes. This number differs from without contradicting the model. The value is the center of the distribution of , not a value that each sample has to reproduce.
Unbiasedness
Definition A statistic used to estimate a quantity of the model is unbiased for if for every distribution the model allows. If each has the same finite mean , linearity of expectation gives
so the sample mean is unbiased for , whatever the value of . Linearity holds for dependent as well as independent variables, so this conclusion does not need independence.
In plain words Unbiased means centered. Averaged over all the samples the model can produce, weighted by their probabilities, the sample mean lands on . Unbiasedness says nothing about how far one realized average falls from , and an unbiased average can still be imprecise when the sample is small or the observations vary a lot.
Example With three independent delays, the sample mean equals , , or minutes with probabilities , , and . Its expectation is
although no realized average of three delays equals . Now copy one delay into all three positions. Each position still has mean , so the average is still unbiased, but it equals or with probability each.
Variance of the sample mean
Definition Let have finite variances and let . Because for a constant ,
and the variance of a sum collects every variance and every covariance,
If the are independent, or merely uncorrelated, every covariance is . If in addition they share the variance , as IID observations with finite variance do, then and
In plain words Dividing by divides the variance by , while adding uncorrelated observations with a common variance multiplies that variance only by , so the variance of the average is the single-observation variance divided by . Independence does its work by removing the covariance terms. Positive covariances add variance back, and identical distributions alone do not remove them.
Example For two independent delays, the ordered samples , , and are equally likely and have averages , , and . So , which is . For four independent delays the average equals the number of -minute delays, a count, so it takes the values to with probabilities , , , and , and its variance is . If instead one delay is copied into all positions, every covariance equals , and
for every , as it must be, since then .
Standard error of the mean
Definition The standard error of the sample mean is its standard deviation,
For IID observations with finite standard deviation it equals
When the observations share the mean , so that , the square of the standard error is , the mean squared error of the sample mean as an estimate of . Here comes from a fully specified model. When is estimated from data, the result is an estimate of the standard error.
In plain words The standard error is the typical size of the miss across repeated samples, measured as a root mean square. It describes averages, not single observations, whose standard deviation stays however many are collected. It is not a maximum error. Unless the miss has the same size on every outcome, some samples miss by more than one standard error.
Example For IID delays the standard error is minutes, which is minutes at and minutes at , while each delay still has standard deviation minutes. At the standard error is minute, and the miss equals , or minutes with probabilities , and . So the miss exceeds one standard error with probability . The inequality in an accuracy question matters too, because
and the difference is the probability that sits on the boundary values and .
Square-root scaling
Definition For IID observations with standard deviation , the standard error is proportional to . Multiplying the sample size by a factor , with a whole number, divides the standard error by , so dividing the standard error by takes times as many observations. A target is met, meaning , exactly when
If , every observation equals with probability and the standard error is for every .
In plain words Precision gets more expensive as it improves. Each halving of the standard error costs four times as many independent observations, so doubling the sample size reduces the standard error by a factor of only about .
Example For the delays the standard error is , and minutes at , and . Each step multiplies by and halves the standard error. A standard error of at most minutes needs . Doubling from to gives minutes, not . The scaling counts independent observations, and copies of one delay keep the standard error at minutes for every .
Check yourself
- IID measurements have mean units and standard deviation units. Find the mean, the variance and the standard error of for and for . How many observations make the standard error at most unit?
Show the answer
The mean of is for both sample sizes. The variance of one measurement is square units, so and units, while and unit. The condition means , so observations are the fewest that suffice. Using as the variance would give the wrong standard error for .
- In the same model, a technician makes one measurement and enters it times. Is the average of the entries unbiased for ? What is its standard error, and why does the answer to question 1 not apply?
Show the answer
Each entry equals , so the average equals and its mean is . It is unbiased, because linearity of expectation does not need independence. Its standard error is units, not . In the covariance formula every pair has , so
using pairs, and . The formula assumes zero covariances, and copies of one measurement carry no new information.
- Three observations are independent, and each equals with probability and otherwise. Find the distribution, the mean, the variance and the standard error of . How likely is the miss to exceed the standard error? Compare with .
Show the answer
One observation has mean and variance . Let count the observations equal to . The sum is , so , which takes the values , , and with probabilities , , and . Its mean is , and its variance is , which agrees with the direct calculation . The standard error is . The miss is when and at least otherwise, so it exceeds with probability , more than half the time. Finally , while , because the values and sit exactly on the boundary.