Understanding basic statistics
A list of numbers on its own tells you almost nothing. Twenty quiz scores, forty daily temperatures, a year's worth of monthly sales — until they are summarized, they are just a wall of digits. Descriptive statistics is the craft of shrinking a whole dataset down to a handful of honest numbers: one for the middle, one for the spread, and one for the shape.
Formula and method
Mean (x̄) = sum ÷ n
Range = maximum − minimum
For a dataset x₁, x₂, …, xₙ with n values: Count (n): how many values there are. Add all the values and divide by how many there are. Median: sort the values from smallest to largest. If n is odd, the median is the middle value. If n is even, it is the average of the two middle values. Mode: the value that appears most often. A dataset can have one mode, several modes, or no mode at all. Variance: the average of the squared distances from the mean. Population variance divides by n; sample variance divides by n − 1. Standard deviation: the square root of the variance. Population standard deviation (σ) divides by n; sample standard deviation (s) divides by n − 1. The population version is for when your numbers are the whole group you care about — every student in a class, every day in a month. The sample version is for when your numbers are a sample drawn from a larger group, and the n − 1 adjustment (called Bessel's correction) compensates for the fact that a sample tends to underestimate the spread of the full group. The two values are close when n is large and differ most when n is small.
Worked example
Example 1 — Seven daily step counts A walker records daily steps, in thousands, over a week: 12, 18, 22, 27, 31, 35, 40. Count: 7; sum: 12 + 18 + 22 + 27 + 31 + 35 + 40 = 185 Mean: 185 ÷ 7 = 26.43 (thousand steps, about 26,430 a day) Median: the values are already sorted; the middle (4th) value is 27 Mode: none — every value appears once Range: 40 − 12 = 28 Population standard deviation: 9.08; sample standard deviation: 9.81 The mean (26.43) and the median (27) are close, which tells you the week was fairly balanced — no single day dominated the average. The standard deviation of about 9 thousand steps says the days varied a lot around that average, from a quiet 12,000-step day to a 40,000-step day.