Descriptive Statistics
Summarising data with measures of centre, spread and shape, and knowing which summary fits which data.
Beginner · about 5 hours · difficulty 2/5
Descriptive statistics compress thousands of rows into a few numbers. Choosing the right ones is a judgement call, and the wrong choice can mislead.
Centre
- Mean: sensitive to outliers. One billionaire moves average income a lot.
- Median: the middle value; robust to outliers. Prefer it for skewed data like income, order values, session length.
- Mode: the most common value; useful for categories.
Spread
- Range and interquartile range (IQR): IQR is the middle 50% and ignores extremes.
- Variance and standard deviation: average squared distance from the mean, and its square root in the original units.
- Percentiles: p50, p90, p99 are how teams describe latency, delivery times and spending.
Shape
Skewness tells you whether the tail stretches right or left; many business metrics are right-skewed. Always look at a histogram or box plot before trusting a single number.
Categorical data
Counts, proportions and cross-tabs. Report the denominator: "40% of 5 users" is not the same claim as "40% of 5,000".
Pitfalls: reporting the mean of skewed data without the median, and summarising before removing duplicates or test records. You are ready to move on when, given a column, you can pick and justify the right centre and spread measures after looking at its distribution.
Key concepts
- Mean, median, mode
- Variance and standard deviation
- Percentiles and IQR
- Skewness and outliers
- Histograms and box plots
- Proportions and cross-tabs
- Weighted averages
Mini project
Using the Airbnb listings data from Inside Airbnb for one city, compare mean vs median nightly price by neighbourhood and explain which you would report and why.
Check yourself
Your average order value jumped 30% but the median barely moved. What probably happened?
Free resources
- Statistics and probability (Khan Academy)
- OpenIntro Statistics (free textbook) (OpenIntro)
- Seeing Theory: visual intro to probability and statistics (Brown University)