Describing Data
Info sheet · Statistics for Psychology & Neuroscience
Warning✎ Editing notes — to do / to check
Working notes for the author — not shown to students once collapsed; remove before publishing.
- [ ]
What you’ll get from this sheet
Summarising a dataset in two numbers — a centre and a spread — and knowing when each is honest. By the end you should be able to:
- Choose between mean, median, mode.
- Choose between range, IQR, and SD — and always plot first.
Describe data with a centre and a spread. Centre: mean (efficient, but outlier‑sensitive), median (robust), mode (for categories). Spread: range (fragile), IQR (robust), variance/SD (the workhorse). A gap between mean and median signals skew — so plot before you model.
Central tendency: where is the middle?
Three measures. The mean is the arithmetic average; it uses every value, which makes it efficient but sensitive to outliers. The median is the middle value when the data are ordered; it ignores the size of extremes, which makes it robust — the median income of a room doesn’t change when a billionaire walks in, but the mean lurches up. The mode is the most frequent value, and the only sensible “centre” for categorical data.
Which to use depends on the data: for roughly symmetric interval/ratio data, the mean; for skewed data — reaction times, incomes, firing rates — the median is often more honest. The relationship between them is itself a clue: when the mean sits well above the median, you’re looking at a right‑skewed distribution with a long upper tail.
Watch the mean and median part ways
Drag the skew and see how each summary responds — and why the mean is the first to flinch:
At zero skew the mean and median sit on top of each other. Add skew and the long right tail drags the mean up while the median barely moves — which is exactly why, for skewed data, the median (and the IQR) tell a more honest story than the mean (and the SD).
Variability: how spread out?
A centre alone is a dangerously incomplete summary — variability is the real subject of statistics. Two classes can share a mean of 60 and have nothing else in common: one clustered near 60, the other split between 30s and 90s. Three measures capture spread. The range (max − min) is simple but hostage to the two most extreme points. The interquartile range (IQR) — the middle 50% — is far more robust and pairs with the median. Most important is the variance (the average squared deviation from the mean) and its square root, the standard deviation (SD), which returns you to the original units. We square the deviations so values above and below the mean don’t cancel — and because squared deviations are exactly the currency ANOVA and regression trade in.
Look before you leap
Numbers summarise; pictures reveal. Three plots earn their keep: a histogram shows the shape of one distribution (symmetric? skewed? bimodal?); a boxplot compresses it to a five‑number summary and is unbeatable for comparing groups; a violin plot draws the full shape on each side of a boxplot (a neuroscience favourite). In R each is a line — hist(x), boxplot(y ~ group), ggplot2::geom_violin(). Build the habit: plot your data before you model it, because a histogram catches the skew, the outlier, or the hidden second peak that a mean and SD quietly conceal.
See it in code
TipCheck your understanding
A dataset has mean 520 and median 430. What does that tell you, and which centre would you report?
The mean sitting well above the median signals a right‑skewed distribution — a long upper tail (a few large values) pulling the mean up while the median stays put. That’s the classic reaction‑time / income shape. For skewed data the median (with the IQR for spread) is the more honest summary; report the mean/SD only if you also show it’s roughly symmetric — which means plotting a histogram first.
Never summarise with a centre alone — two datasets with identical means can be wildly different in spread, so always pair a centre with a measure of variability (and prefer median + IQR when the data are skewed). And match the summary to the level of measurement: a mean/SD is meaningless for nominal data (use counts/mode) and a stretch for ordinal data (use the median). Above all, plot first — a mean and SD can hide skew, outliers, and bimodality completely.
Where this shows up next
These summaries feed everything — the SD underlies the normal distribution, standard errors, and every test that follows. See Chapter (Foundations), and When Data Aren’t Normal for skewed data.