Skip to main content
Albero Academy

Central Tendency

Mean, median and mode — the middle of the data.

Descriptive Statistics8 min

A measure of central tendency captures the "typical" value of a dataset in a single number. The three you need are the mean, median and mode — and knowing when to use each matters as much as computing them.

The three measures

MeasureIsBest when
MeanThe average (sum ÷ count)Data is symmetric, no big outliers
MedianThe middle value when sortedData is skewed or has outliers
ModeThe most frequent valueCategorical data, or finding peaks
in Python
import numpy as np
data = [2, 3, 3, 5, 100]
np.mean(data) # 22.6 — pulled up by the outlier
np.median(data) # 3.0 — robust to the outlier

Mean vs median

Key takeaways

  1. 01Central tendency captures the "typical" value: mean, median, mode.
  2. 02The mean is the average; sensitive to outliers and skew.
  3. 03The median (middle value) is robust to outliers — prefer it for skewed data.
  4. 04The mode is the most frequent value; useful for categorical data.

Finished this chapter?

Mark it complete to track your progress through Statistics.