A delivery service wants to estimate the mean delivery time of its orders. A random sample of deliveries has mean minutes and standard deviation minutes, and the population standard deviation is unknown. Putting into the known- interval in place of would treat an estimate as if it were exact, and the interval would come out too narrow. This lesson builds the one-sample t interval, which accounts for estimating the spread, and explains when its stated confidence level can be trusted.
Key terms
Normal sampling model
Definition The normal sampling model for one mean says that the observations are independent and identically distributed , with and both unknown. Under this model the sample mean has the distribution . For , write for the sample SD with the denominator, viewed as a random quantity. Then the standardized mean with an estimated standard error has the t distribution with degrees of freedom,
for every value of and .
In plain words The model has two parts, independent observations and a single normal population that all of them come from. Independence usually comes from the design, for example a random sample from a large population. Neither part can be proved from the mean and the SD of the data. The denominator changes from sample to sample, which adds uncertainty beyond the case of a known , and the t distribution accounts for exactly that extra uncertainty when the model holds.
Example Model the delivery times as independent draws from a normal population. The estimated standard error is
The SD of minutes describes how individual deliveries vary. The standard error of minute describes how the sample mean would vary from one random sample of to another. The degrees of freedom are .
t critical value
Definition For a confidence level and degrees of freedom, the t critical value is the quantile of the t distribution with degrees of freedom. If , then . At a fixed level the t critical value is larger than the normal critical value and decreases toward it as grows.
| Degrees of freedom | |||
|---|---|---|---|
For comparison, .
In plain words The t distribution has heavier tails than the standard normal, because the estimated SD in the denominator is sometimes too small by chance and then lands far out. To keep the same central probability, the cutoff moves farther out. Using with an estimated SD ignores this. Under the normal sampling model the actual coverage of that shortcut is about with and about with , not .
Example A 95 percent interval with needs , about 5 percent larger than . A 90 percent interval with the same sample size needs , which leaves 5 percent in each tail.
One-sample t interval
Definition Under the normal sampling model with , the one-sample t interval for at confidence level is
The interval contains exactly when , so its coverage is exactly for every and every . The margin of error is . When the observations are independent but the population is not normal, the coverage is generally not exactly , and how close it comes depends on the population and the sample size.
In plain words The sample mean sets the center, the estimated standard error sets the scale, and the critical value brings in the confidence level and the reference distribution. A complete report names the population mean being estimated, the units, the level, the interval and how the data were collected. The interval is about the population mean, not about individual deliveries, and its confidence level describes the procedure over repeated samples rather than a probability for this one interval.
Example For the deliveries, the 95 percent interval is
With the same data, the 90 percent interval is , about minutes. It is narrower only because it accepts a lower coverage. The data and their spread have not changed.
Departures from normality
Definition A departure from normality is any way the population distribution differs from a normal one, such as skewness, heavy tails, outliers, gaps or several peaks. If the observations are independent and identically distributed with finite positive variance but not normal, the coverage of the t interval is generally not exactly . By the central limit theorem, and because is close to with high probability in large samples, its coverage approaches as grows, but how large must be depends on the population, and no single sample size is enough for every population. Strong skewness, heavy tails, extreme outliers and very small samples call for the most care. Dependence between observations is a separate failure of the model, and it can make the wrong standard error at any sample size.
In plain words The question is how far the actual coverage is from the stated level when the data are not normal. To judge it, look at the study design and at a plot of the observations, not only at the p-value of a normality test. Check units, recording errors, time order and clusters of related observations. An unusual but genuine value should not be deleted just because it widens the interval. If the conditions fail, change the design, the model or the method, and keep the target parameter clear.
Example Simulations with a million samples each give the following picture. For a strongly right-skewed exponential population, the 95 percent t interval covers about 90 percent of the time with and about 93 percent of the time with , while for a normal population it covers 95 percent of the time at both sizes. The misses are lopsided. With , about 9.5 percent of the intervals lie entirely below and only about 0.4 percent lie entirely above it. In a separate simulation of samples of normal observations, each correlated with the one before it in a stationary autoregressive model, the 95 percent t interval covered only about 74 percent of the time.
Check yourself
- A random sample of independent observations from a normal population has mean units and SD units. Build the 95 percent t interval for , using . Why would the critical value be wrong here?
Show the answer
The estimated standard error is unit and the degrees of freedom are . The interval is , about units. The value would give the narrower interval , as if the SD were known. Because is only an estimate, that shortcut covers only about 91 percent of the time under this model instead of 95 percent.
- A second random sample of deliveries has mean minutes and SD minutes. Build the 95 percent t interval, using . A manager reads the result as saying that 95 percent of deliveries take between and minutes. Correct the reading.
Show the answer
The estimated standard error is minutes, so the margin is minutes and the interval is about minutes. It estimates the mean delivery time of all orders, not the range of individual deliveries. Individual times vary with an SD of about minutes. If delivery times were normal with mean minutes and SD minutes, only about 16 percent of deliveries would take between and minutes. The 95 percent describes how often the procedure captures the population mean over repeated random samples.
- A manager records consecutive deliveries by one driver on one rainy evening. Eleven times lie between and minutes and one is minutes, and the driver confirms the long delivery really happened. The manager wants a 95 percent t interval for the mean delivery time of all the company’s orders. Do the data and the design support such an interval?
Show the answer
No. The sample is not a random sample of the company’s orders. One driver on one rainy evening may differ systematically from other drivers and days, and no margin of error corrects that. Consecutive deliveries on the same evening share traffic and weather, so they are probably dependent, and then can understate the real uncertainty. With only observations and one extreme value, the normal model is doubtful and the interval is sensitive to that single point. The -minute delivery is genuine, so deleting it to tidy the interval would be wrong. A defensible estimate needs a random sample of deliveries across drivers and days, a plot of the data, and a method suited to the shape and dependence the data show.