Course contentsShow
← Data Science
Lesson 59 of 2,1452. Descriptive Statistics FoundationsFree lesson

The Five-Number Summary and Box Plots

Understand the five-number summary (min, Q1, median, Q3, max) and how it forms the foundation of box plots.

The Five-Number Summary and Box Plots

What you'll learn: How five simple statistics create a powerful snapshot of your data's distribution and form the basis of box plots.


What is the Five-Number Summary?

The five-number summary is a concise way to describe the spread and center of a dataset using exactly five values:

  1. Minimum (Min) — the smallest value
  2. First Quartile (Q1) — the 25th percentile
  3. Median (Q2) — the 50th percentile (middle value)
  4. Third Quartile (Q3) — the 75th percentile
  5. Maximum (Max) — the largest value

Think of these five numbers as landmarks on a journey through your sorted data. They divide your dataset into four equal-sized groups, revealing where values cluster and how far they spread.

Why This Matters

Together, these five statistics tell you:

  • Where the center is (median)
  • How spread out the data is (range from min to max)
  • Where the middle 50% lives (between Q1 and Q3, called the IQR)
  • Whether values are symmetric or skewed

Box Plots: Visualizing the Five Numbers

A box plot (or box-and-whisker plot) turns the five-number summary into a visual. The "box" stretches from Q1 to Q3 with a line at the median. "Whiskers" extend to the minimum and maximum, showing the full range.

This compact visualization lets you compare distributions at a glance—perfect when you have multiple groups or variables to examine side-by-side.

Example Without Code

Imagine test scores: Min=55, Q1=68, Median=75, Q3=84, Max=98. The box plot would show most students scoring between 68-84 (the box), with the typical score at 75 (the median line), and outliers toward the extremes.

Key Takeaway: The five-number summary condenses any dataset into five critical values that describe its distribution, and box plots transform these numbers into an intuitive visual comparison tool.