What Is Descriptive Statistics?
Press Next → or use ← → arrow keys
The Intuition — The Board Meeting
That compression is descriptive statistics — the branch of statistics that organises, summarises, and describes a dataset with a few well-chosen numbers and charts.
Every analysis — every machine-learning model — starts here. You can't clean, model, or draw conclusions from data you haven't first described. Descriptive statistics is the mandatory first look at any dataset.
Descriptive vs Inferential
Survey 1,000 voters: describing them ("62% of those polled prefer Party A") is a fact about the sample. Inferring ("Party A leads nationally, ±3%") is a claim about 46 million voters you never asked. Same data — different jobs, different confidence.
The Three Pillars
Centre tells you where the data sits. Spread tells you how tightly it clusters. Shape tells you whether it's symmetric, skewed, or riddled with outliers. Answer all three and you've genuinely described the data.
Centre — Where Does The Data Sit?
For clinic waits of 12, 18, 25, 8, 34, 21, 15, 19 minutes, the mean is 19 minutes. A gap between mean and median would flag skew — but here they're close, so the average is a fair summary of a typical wait.
Spread — How Consistent Is It?
Two teams can average the same score while one is wildly inconsistent and the other rock-steady. The mean can't tell them apart — spread can. Always report a measure of spread alongside the centre.
Same Average, Very Different Data
Both rows share the same mean, marked by the blue line — yet the top is tightly clustered and the bottom is all over the place. Standard deviation is what separates "reliably around 19 minutes" from "anywhere from 2 to 40." Centre + spread together, always.
Shape — Symmetry, Tails & Outliers
Skewness tells you whether to trust the mean; kurtosis warns of outlier-heavy tails; a second peak hints that two populations are hiding in one column. These are exactly the red flags that decide how you'll clean and model the data.
The Five-Number Summary & Box Plot
Minimum, Q1, median, Q3, maximum — the five-number summary — pack centre, spread, and skew into one picture. The box is the middle 50% (the IQR), the line inside is the median, the whiskers reach the typical range, and any point beyond them is flagged as an outlier. It's the fastest way to compare groups side by side.
The Four Data Types — A Ladder
To tell interval from ratio, ask: does zero mean "none of it exists"? 0 kg = no weight → ratio. 0 °C is just a cold day, not "no temperature" → interval. Each rung up the ladder unlocks more valid statistics — but never borrow a statistic from a rung above your data.
Matching Statistics To Data Types
| Type | Properties | Examples | Valid statistics |
|---|---|---|---|
| Nominal | Categories, no order | Blood type, colour, gender | Mode, frequency, % |
| Ordinal | Ordered, unequal gaps | Ratings, pain scale, grade | + Median, percentiles |
| Interval | Equal gaps, no true zero | °C, IQ, calendar year | + Mean, std dev |
| Ratio | Equal gaps, true zero | Height, weight, age, salary | All statistics |
Reporting a "mean satisfaction of 7.3" on a 1–10 scale looks precise but is misleading — the gap between 3 and 4 isn't guaranteed to equal the gap between 8 and 9. For ordinal data, report the median and the mode, not the mean.
Who Are You Actually Describing?
A sample's spread systematically under-estimates the population's. Dividing by n−1 instead of n nudges the estimate up to compensate. On the eight waiting times, the population variance is 444/8 = 55.5, but the sample variance is 444/7 = 63.4.
Even a 10-million-row database is usually a sample of all the data you could have collected. Unless you've truly captured every possible case, use the sample formulas — divide by (n−1).
Describing Eight Waiting Times
Clinic waits (minutes): 12, 18, 25, 8, 34, 21, 15, 19. Run the full descriptive pass.
Centre: a typical wait is ~19 minutes. Spread: a standard deviation of ~8 means most waits fall roughly 11–27 minutes. Shape: the mean sitting just above the median hints at a mild right skew from the odd long wait. Three pillars, one honest summary.
One Line To Describe Everything
import pandas as pd df = pd.DataFrame({ 'wait_min': [12, 18, 25, 8, 34, 21, 15, 19], 'blood_type': ['A', 'O', 'B', 'AB', 'O', 'A', 'O', 'B'] # nominal }) df['wait_min'].describe() # count, mean, std, min, 25%, 50%, 75%, max df['wait_min'].std() # sample std (ddof=1 by default) df['blood_type'].value_counts() # frequencies for the nominal column df['blood_type'].mode()[0] # 'O' — the only valid "centre" here
describe() Is Your First Look
df.describe() returns count, mean, standard deviation, min, the three quartiles, and max in
one call — the whole five-number summary plus centre and spread. For categorical columns reach for
value_counts() and mode() instead; describe()'s numeric stats
don't apply.
Descriptive Statistics Everywhere
Six Rules For Honest Description
You Can Now Describe Any Dataset
Descriptive statistics compresses raw data into centre, spread, and shape — but only after you've identified the data type and decided whether you hold a population or a sample. Nail the description, and every model and inference that follows rests on solid ground.
Drill into each pillar: mean, median & mode for centre; variance and standard deviation for spread; skewness and kurtosis for shape. Then step up to inferential statistics — confidence intervals and hypothesis tests.
📋 End of tutorial · Press ← to review, or click Restart