01 / 20

Histograms &
Boxplots

Learn to interpret distributions using two of the most powerful tools in descriptive statistics: histograms for shape and boxplots for summary.

Finite Mathematics

What Is a Histogram?

A histogram is a bar chart that displays the frequency (or relative frequency) of numerical data grouped into bins (equal-width intervals). Unlike a bar chart for categories, histogram bars touch because the data is continuous.

0 5 10 15 18 60 70 80 90 100 110 Test Scores Frequency 5 12 18 14 7 3

What Is a Boxplot?

A boxplot (box-and-whisker plot) summarizes data using five key numbers. It shows the spread, center, and skewness of a dataset at a glance.

50 60 70 80 90 100 Min 55
\( Q_1 \)
65 Median 75
\( Q_3 \)
85 Max 95
\( \text{IQR} = Q_3 - Q_1 = 20 \)

The Five-Number Summary

Every boxplot is built from exactly five values. Together they capture the spread and center of a dataset.

Minimum
The smallest value in the dataset (or the lower whisker endpoint)
\(Q_1\)
First quartile: 25% of data falls below this value
Median
The middle value: 50% of data falls on each side
\(Q_3\)
Third quartile: 75% of data falls below this value
Maximum
The largest value in the dataset (or the upper whisker endpoint)

Reading Histogram Shape

Symmetric
Left and right sides are roughly mirror images. \( \text{Mean} \approx \text{Median} \).
Right-Skewed
Tail extends to the right. \( \text{Mean} > \text{Median} \). Common for income data.
Left-Skewed
Tail extends to the left. \( \text{Mean} < \text{Median} \). Common for exam scores.
Symmetric Right-Skewed Left-Skewed

How Boxplots Show Skewness

A boxplot reveals skewness through the position of the median line inside the box and the relative whisker lengths.

Symmetric Median centered Right-Skewed Median left Long right whisker Left-Skewed Median right Long left whisker

Histogram vs Boxplot

Histogram Boxplot
Shows shape ✓ Detailed Approximate
Shows center Visual estimate ✓ Exact median
Shows spread Range visible ✓ IQR + range
Shows outliers Not clearly ✓ As isolated points
Compares groups Hard (overlap) ✓ Side-by-side
Shows bimodality ✓ Two peaks ✕ Hidden

Detecting Outliers with Boxplots

A data point is an outlier if it falls more than \(1.5 \times \text{IQR}\) beyond the quartiles:

1
Compute the IQR: \(\text{IQR} = Q_3 - Q_1\)
2
Lower fence: \(Q_1 - 1.5 \times \text{IQR}\)
3
Upper fence: \(Q_3 + 1.5 \times \text{IQR}\)
4
Any data point below the lower fence or above the upper fence is an outlier, plotted as an isolated dot.
Outlier Outlier Lower fence Upper fence

How to Interpret a Histogram

1
Identify the shape: Is it symmetric, right-skewed, left-skewed, or bimodal?
2
Locate the center: Which bin has the highest frequency? This approximates the mode.
3
Assess the spread: How wide is the range from the leftmost bar to the rightmost?
4
Look for gaps or clusters: Are there empty bins or groups of high bars?
5
Describe in context: Always relate shape, center, and spread back to the data's meaning.

How to Interpret a Boxplot

1
Read the five-number summary: Min, \(Q_1\), Median, \(Q_3\), Max from left to right.
2
Check the median position: Is it centered in the box, or shifted left or right?
3
Compare whisker lengths: A longer right whisker suggests right skew; a longer left whisker suggests left skew.
4
Spot outliers: Look for isolated dots beyond the whisker endpoints.
5
Compute the IQR: The width of the box = \(Q_3 - Q_1\), measuring the middle 50%.

Example 1: Reading a Histogram

A class of 30 students recorded how many hours they studied last week. Describe the distribution.

2 5 9 7 4 2 1 0 2 4 6 8 10 12 14 Hours Studied Frequency 0 2 5 9

Example 2: Reading a Boxplot

The boxplot below shows daily commute times (in minutes) for 50 employees. Interpret the display.

0 10 20 30 40 50 60 70 Commute Time (min)
\( \text{Min}=5 \)
\( Q_1=20 \)
\( \text{Med}=30 \)
\( Q_3=45 \)
\( \text{Max}=72 \)

Example 3: Comparing Two Groups

Side-by-side boxplots compare exam scores between two classes. Which class performed better?

50 60 70 80 90 100 A B
\( \text{Med}=72 \)
\( \text{Med}=80 \)

Common Mistakes

✕ Confusing Height with Value
A histogram bar's height is the frequency, not the data value itself. The x-axis shows values; the y-axis shows counts.
✕ Assuming the Median = Mean
In a skewed distribution, the mean and median are different. The boxplot shows the median, not the mean.
✕ Ignoring Bin Width
Changing the bin width changes the histogram's shape. Always note the bin width before interpreting.
✕ Thinking Longer Box = More Data
A longer box means more spread, not more data. The box always contains the middle 50% regardless of width.

Summary Reference

Feature Histogram Boxplot
Data type Quantitative (continuous) Quantitative (continuous)
Key display Frequency per bin Five-number summary
Best for Shape, modes, gaps Center, spread, outliers
Shows skew Tail direction Median position + whiskers
Shows outliers Hard to identify \(1.5 \times \text{IQR}\) rule
Comparing groups Separate plots needed Side-by-side

Question 1 of 5

A histogram of household incomes is right-skewed. Which of the following is most likely true?

Question 2 of 5

A boxplot has \(Q_1 = 30\), \(Q_3 = 50\). What is the upper fence for outlier detection?

Question 3 of 5

In a boxplot, the box (from \(Q_1\) to \(Q_3\)) always contains what percentage of the data?

Question 4 of 5

A histogram has two distinct peaks of similar height. This distribution is best described as:

Question 5 of 5

Two side-by-side boxplots show Group A with a wider box than Group B. Both have the same median. What can you conclude?