How to do statistics
Statistics asks two questions of a set of numbers: where is the middle, and how spread out is it. Probability asks a third: how likely is this outcome. Each has a short list of tools, and the method is to pick the one the question wants.
The order to think in
- Sort the data first. The median, the quartiles and the range all come from the sorted list.
- Name the summary the question wants: mean for a typical value when there are no outliers, median when there are, mode for the most common.
- For spread, compute the mean first, then the squared deviations; decide whether the data is the whole population or a sample before dividing.
- For probability, decide whether outcomes are equally likely, whether events are independent, and whether order matters.
Centre
Method
- Mean: add the values and divide by how many there are.
- Median: sort, take the middle value, or the mean of the two middle values.
- Mode: the value that appears most often; there may be none or several.
Worked example: The median of 7, 3, 9, 1, 5
- Sorted: 1, 3, 5, 7, 9.
- Five values, so the third is the middle: 5.
Slips to watch for
- Taking the median before sorting.
- Using the mean when one value is far from the rest.
- Reporting a mode when every value appears once.
Spread
Method
- Range: largest minus smallest.
- Variance: the mean of the squared deviations from the mean (divide by n for a population, n − 1 for a sample).
- Standard deviation: the square root of the variance.
- Interquartile range: the third quartile minus the first.
Worked example: Population variance of 2, 4, 6, 8
- Mean: 20 / 4 = 5.
- Squared deviations: 9, 1, 1, 9; sum 20.
- 20 / 4 = 5.
Slips to watch for
- Forgetting to square the deviations.
- Dividing by n for a sample.
- Reporting the variance when the question asks for the standard deviation.
Probability
Method
- Equally likely outcomes: favourable over total.
- Independent events: multiply their probabilities.
- Binomial: C(n, k) p^k (1 − p)^(n − k) for exactly k successes in n trials.
Worked example: P(X = 2) for X ~ Binomial(3, 0.5)
- C(3, 2) = 3.
- 0.5² × 0.5¹ = 1/8.
- 3 × 1/8 = 3/8.
Slips to watch for
- Adding probabilities of independent events instead of multiplying.
- Forgetting the number of orders, C(n, k).
- Probabilities above 1.
Standard scores
Method
- z = (x − mean) / standard deviation: how many standard deviations a value is from the mean.
- About 68% of a normal distribution lies within one standard deviation, 95% within two.
- Use z to compare values from different scales.
Worked example: A score of 85, mean 70, standard deviation 10
- 85 − 70 = 15.
- 15 / 10 = 1.5.
- One and a half standard deviations above the mean.
Slips to watch for
- Dividing by the variance instead of the standard deviation.
- Dropping the sign of a negative z.
- Using the empirical rule on data that is far from normal.
The statistics calculators show every step of a mean, a variance or a z-score on your own numbers.
Other guides: How to do algebra · How to do calculus