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.
More data, steadier estimates
The sample mean and SD are themselves estimates, and they settle down as the sample grows. One number in particular shrinks: the standard error of the mean (SEM = SD⁄√n), which measures how much the mean itself would wobble from sample to sample. Raise n and watch the SD hold roughly steady (it’s estimating the population’s spread) while the SEM shrinks (the mean becomes more precise):
This is the crucial distinction the SD/SEM confusion trips over: the SD describes how spread out the data are and doesn’t shrink with more data; the SEM describes how precisely you’ve pinned down the mean, and it does. More data doesn’t make people more alike — it makes your estimate of their average more trustworthy.
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.
Quick quiz: which summary fits?
Pick a scenario, choose the centre you’d report, and check the reasoning — some are deliberately ambiguous:
NoteQuiz
Answer each question — the feedback appears beneath it.
See it in code
rng(1);
rt = 200 + 300*exprnd(1, 200, 1); % reaction-time-like, right-skewed
[mean(rt), median(rt)] % mean > median → right-skew
[std(rt), iqr(rt)] % spread: SD vs the robust IQR
histogram(rt); figure; boxplot(rt) % ALWAYS look at the shapeThe R and Python tabs run live; MATLAB is a static reference.
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.
TipCheck your understanding (2)
Two groups have the same mean and the same SD, but their boxplots look very different — one symmetric, the other with a long upper whisker and high outliers. What’s going on, and what should you report?
Equal mean and SD don’t guarantee equal shape. The skewed group has a long upper tail that a single symmetric spread number (the SD) can’t reveal, while the boxplot’s whisker and outlier dots expose it at a glance. For that group, report the median and IQR (and show the boxplots) rather than letting a matching mean/SD imply the groups are alike. Same lesson as always: plot before you summarise.
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.