Skip to content
Lesson 2 of 10 · Introductory Statistics

Centre and spread

Compute and choose between the mean and median, measure spread with the range, IQR and standard deviation, and flag outliers and z-scores.

22 min

Centre

  • Mean: x̄ = (sum of values)/n. Uses every value; sensitive to outliers and skew.
  • Median: the middle value of the sorted list (average the two middle values if n is even). Resistant to outliers.
  • Mode: the most frequent value.

Use the mean for symmetric data without outliers; use the median for skewed data (house prices, incomes).

  • Range: max − min. Quick, but driven by two values.
  • Quartiles: Q1 and Q3 split the data into quarters. IQR = Q3 − Q1 is the spread of the middle half and resists outliers.
  • Standard deviation: roughly the typical distance of a value from the mean. For a sample,

s = √[ Σ(xᵢ − x̄)² / (n − 1) ]

We divide by n − 1 for a sample because x̄ was estimated from the same data, which makes the deviations a little too small. (If your data is a whole population, divide by N instead.)

  • 1.5 × IQR rule: a value is flagged as an outlier if it lies below Q1 − 1.5·IQR or above Q3 + 1.5·IQR.
  • z-score: z = (x − mean)/SD. It says how many standard deviations a value is from the mean, so you can compare across different scales.

Summarise the data 3, 5, 5, 6, 7, 8, 9, 10, 12.

  1. 1

    Sum = 65, n = 9, mean = 65/9 ≈ 7.22

    Add and divide.

1/6
Try it

The nine values have mean 7.22 and median 7. Add a tenth value x. Move x from 10 up to 60 and watch the mean climb past 12 while the median barely moves (it stays between 7 and 8). That is why medians are used for skewed data.

10

Mean of the ten values (the nine above plus x)

—

Exam scores have mean 70 and SD 8. Anna scored 86 in this exam. In another exam (mean 55, SD 5) she scored 66. Which was relatively better?

  1. 1

    z₁ = (86 − 70)/8 = 2

    Two SDs above the mean.

1/3
Common misconception

“The mean is always the best 'average'.”

It is the one taught first and it uses all the data.

What is actually true

When data is skewed or has outliers, the mean is dragged toward the tail. A few billionaires pull a country's mean income far above what a typical person earns. The median describes the typical case there.

How to catch yourself

Compare mean and median: a big gap signals skew.

  • Mean for symmetric data; median for skewed data or outliers.
  • IQR = Q3 − Q1 measures the spread of the middle half.
  • Sample standard deviation divides by n − 1.
  • Flag outliers outside Q1 − 1.5·IQR and Q3 + 1.5·IQR.
  • A z-score counts standard deviations from the mean.
Check yourself

Practice.

1Numeric answer

Median of 4, 9, 2, 7, 5, 11.

2Numeric answer

Mean of 2, 4, 6, 8, 10.

3Numeric answer

A score of 74 in a test with mean 62 and SD 6 has z = ?

4Multiple choice

Data: 1, 2, 2, 3, 3, 3, 40. Which summary best describes a typical value?

  • Amean
  • Bmedian
  • Crange
  • Dmaximum
5Multiple choice

Q1 = 20 and Q3 = 30. A value of 48 is:

  • Anot an outlier
  • Ban outlier
  • Cexactly on the fence
  • Dimpossible

Practise this lesson, not just read it

In BiliMind the questions above are marked when you answer, the flashcards come back on a schedule, and the rest of Introductory Statistics is planned around your week. Free.