Comparing Distributions
Two groups can have the same typical wait time and feel very different to riders. We will compare center and spread, then see what changes when one observation is unusually large.
- Center and spread: Summaries of a typical location and the amount of variation in a distribution.
Core ideas
Shape and center
Describe symmetry or skew and choose a center that helps summarize it. The mean balances values numerically, while the median marks the middle of the ordered data.
Measures of spread
The interquartile range is . Standard deviation summarizes how far values typically lie from the mean.
Outliers
Changing to moves the mean from to . The median remains .
Essential example
Use the eight illustrative wait times minutes. The sum is minutes, so the mean is minutes. The median is also minutes, halfway between the two middle observations and . The first and third quartiles from the previous lesson are and , so the interquartile range is minutes.
Replace the final with . The median and quartiles stay the same under the same quartile convention. The mean rises by minutes to minutes. The longer right tail pulls the mean upward, while the central ranks stay fixed.
| Summary | Original | With the longer wait |
|---|---|---|
| Mean | min | min |
| Median | min | min |
| Interquartile range | min | min |
| Range | min | min |
Compare spread around the mean
Standard deviation uses squared distances from the mean, then takes a square root to return to the original units. For the complete set minutes, the mean is and the squared deviations are . Dividing their sum by and taking the square root gives a population standard deviation of minutes. If estimating population spread from a sample, the usual sample formula divides by one less than the sample size.
Choose a summary with the display
For strongly skewed data, the median and interquartile range often describe the middle more clearly. For roughly symmetric data without prominent outliers, the mean and standard deviation can be informative. A single summary can hide a gap or multiple clusters. Read it alongside the shape of the distribution.
Compare a shift with a change in spread
Take the complete set minutes. If each wait increases by three minutes, the values become . The mean moves from to , but deviations from the mean remain . The standard deviation is unchanged. If each original wait doubles instead, the values become . Both the mean and the standard deviation double because each distance from the mean doubles.
Keep and continue
Keep the distinction between a typical value and the variation around it. Next, examine variation around predictions that depend on another variable.
Previous: Displaying Data