Box Plots and Comparing Distributions: Complete Guide with Solved Exercises

Master box plots and distribution comparison: five-number summaries, quartiles, and comparative analysis through these 3 detailed exercises.

Box Plots and Comparing Distributions
1 Creating a Single Box Plot
Exercise 1
The following data represents the number of books read by students in a reading club over one year: 12, 8, 15, 20, 10, 18, 25, 14, 16, 11, 19, 22, 17, 13, 9. Create a box plot for this data and identify the five-number summary.
Key Definitions:

Box Plot: A graphical representation of data showing the five-number summary

Five-Number Summary: Minimum, Q1 (first quartile), Median (Q2), Q3 (third quartile), Maximum

Quartiles: Values that divide the data into four equal parts

Median: Middle value when data is arranged in order

Interquartile Range (IQR): Q3 - Q1, representing the middle 50% of data

Solution Method:
  1. Arrange data in ascending order
  2. Find the median (Q2)
  3. Find Q1 (median of lower half)
  4. Find Q3 (median of upper half)
  5. Identify minimum and maximum values
  6. Draw the box plot with whiskers
Step 1: Arrange Data in Order

Sorted data: 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 25

Step 2: Find the Median (Q2)

With 15 values, median is the 8th value: Median = 15

Step 3: Find Q1 (Lower Quartile)

Lower half: 8, 9, 10, 11, 12, 13, 14 (7 values)

Q1 = 4th value = 11

Step 4: Find Q3 (Upper Quartile)

Upper half: 16, 17, 18, 19, 20, 22, 25 (7 values)

Q3 = 4th value = 19

Step 5: Identify Min and Max

Minimum = 8, Maximum = 25

Five-number summary:
Min: 8, Q1: 11, Median: 15, Q3: 19, Max: 25
IQR: 19 - 11 = 8
Final Answer:

The five-number summary is: Minimum = 8, Q1 = 11, Median = 15, Q3 = 19, Maximum = 25. The box plot shows the distribution of books read, with the middle 50% of students reading between 11 and 19 books.

Applied Rules and Calculations:

• Quartile Position: Q1 at 25% position, Q3 at 75% position

• Even Number of Values: Average of two middle values

• Odd Number of Values: Exact middle value

• IQR Calculation: Q3 - Q1 measures spread of middle 50%

Tip 1: Always sort data first when working with quartiles.
Tip 2: The box represents the middle 50% of the data.
2 Comparing Two Distributions
Exercise 2
Compare the test scores of two math classes. Class A: 78, 82, 85, 79, 91, 88, 83, 76, 89, 92, 87, 84. Class B: 72, 75, 80, 78, 85, 90, 92, 88, 86, 83, 89, 91. Create box plots for both classes and compare their distributions.
Key Definitions:

Comparative Analysis: Examining similarities and differences between distributions

Central Tendency: Measures that represent the center of a distribution (median)

Variability: How spread out the data values are (IQR, range)

Skewness: Asymmetry in the distribution of data

Outliers: Data points that are significantly different from others

Solution Method:
  1. Find five-number summary for each dataset
  2. Create parallel box plots on the same scale
  3. Compare medians to assess central tendency
  4. Compare IQRs to assess variability
  5. Compare ranges to assess overall spread
  6. Identify any potential outliers
Step 1: Class A Data Analysis

Sorted: 76, 78, 79, 82, 83, 84, 85, 87, 88, 89, 91, 92

Min = 76, Q1 = 80.5, Median = 84.5, Q3 = 88.5, Max = 92

IQR = 88.5 - 80.5 = 8

Step 2: Class B Data Analysis

Sorted: 72, 75, 78, 80, 83, 85, 86, 88, 89, 90, 91, 92

Min = 72, Q1 = 79, Median = 85.5, Q3 = 90, Max = 92

IQR = 90 - 79 = 11

Step 3: Comparison Analysis

Class A median (84.5) < Class B median (85.5) - Class B has slightly higher center

Class A IQR (8) < Class B IQR (11) - Class A has less variability

Class A: Min: 76, Q1: 80.5, Med: 84.5, Q3: 88.5, Max: 92, IQR: 8
Class B: Min: 72, Q1: 79, Med: 85.5, Q3: 90, Max: 92, IQR: 11
Final Answer:

Class B has a slightly higher median (85.5 vs 84.5), indicating better overall performance. However, Class A shows less variability (IQR = 8 vs 11), suggesting more consistent scores. Both classes have the same maximum score of 92.

Applied Rules and Comparisons:

• Median Comparison: Higher median indicates better central performance

• IQR Comparison: Smaller IQR indicates less variability

• Range Comparison: Larger range indicates greater overall spread

• Parallel Analysis: Same scale allows direct comparison

Tip 1: Use the same scale when creating parallel box plots for comparison.
Tip 2: Compare both center (median) and spread (IQR) when analyzing distributions.
3 Identifying Outliers and Distribution Shape
Exercise 3
The daily temperatures (in °F) for a city over 10 days are: 68, 72, 75, 69, 71, 74, 70, 73, 67, 85. Create a box plot and determine if there are any outliers. Describe the distribution shape.
Key Definitions:

Outlier: Data point that is significantly different from other values

Outlier Formula: Values outside Q1 - 1.5(IQR) or Q3 + 1.5(IQR)

Lower Fence: Q1 - 1.5(IQR)

Upper Fence: Q3 + 1.5(IQR)

Distribution Shape: Symmetric, skewed left, or skewed right

Solution Method:
  1. Sort the data in ascending order
  2. Find the five-number summary
  3. Calculate IQR and outlier boundaries
  4. Determine if any values are outliers
  5. Create the box plot
  6. Describe the distribution shape
Step 1: Sort the Data

Sorted: 67, 68, 69, 70, 71, 72, 73, 74, 75, 85

Step 2: Find Five-Number Summary

With 10 values (even number):

Min = 67, Q1 = (69+70)/2 = 69.5, Median = (71+72)/2 = 71.5

Q3 = (74+75)/2 = 74.5, Max = 85

Step 3: Calculate IQR and Boundaries

IQR = Q3 - Q1 = 74.5 - 69.5 = 5

Lower fence = Q1 - 1.5(IQR) = 69.5 - 1.5(5) = 69.5 - 7.5 = 62

Upper fence = Q3 + 1.5(IQR) = 74.5 + 1.5(5) = 74.5 + 7.5 = 82

Step 4: Identify Outliers

Any value < 62 or > 82 is an outlier

Max value = 85 > 82, so 85 is an outlier

Five-number summary (excluding outlier):
Min: 67, Q1: 69.5, Median: 71.5, Q3: 74.5, Max: 75
Outlier: 85°F
IQR: 5°F
Final Answer:

The temperature 85°F is an outlier since it exceeds the upper fence of 82°F. The distribution is skewed right because of this high outlier. The box plot would show a regular box from 67 to 75 with the outlier marked separately at 85.

Applied Rules and Outlier Detection:

• Outlier Formula: Values beyond Q1 - 1.5(IQR) or Q3 + 1.5(IQR)

• Right Skew: Long tail extends to the right (high outliers)

• Left Skew: Long tail extends to the left (low outliers)

• Symmetric: Box centered in whiskers, equal tails

Tip 1: Always check for outliers using the 1.5 × IQR rule.
Tip 2: Outliers are plotted separately in box plots, not connected to whiskers.
Detailed Summary: Box Plots and Comparing Distributions
Core Definitions:

Box Plot: A standardized way of displaying the distribution of data based on a five-number summary. It shows the minimum, first quartile, median, third quartile, and maximum of a dataset.

Five-Number Summary: A set of descriptive statistics that provides information about a dataset's center, spread, and shape. It includes: minimum, Q1 (first quartile), median (Q2), Q3 (third quartile), and maximum.

Quartiles: Values that divide a rank-ordered dataset into four equal parts. Q1 is the 25th percentile, Q2 (median) is the 50th percentile, and Q3 is the 75th percentile.

Interquartile Range (IQR): The difference between the third and first quartiles (Q3 - Q1). It represents the range of the middle 50% of the data.

Outliers: Data points that fall significantly outside the overall pattern of the data. They are typically defined as values that are more than 1.5 times the IQR below Q1 or above Q3.

Core Rules and Principles:

• Quartile Calculation: If n is odd, median is the middle value; if n is even, median is average of two middle values

• Outlier Boundaries: Lower fence = Q1 - 1.5(IQR), Upper fence = Q3 + 1.5(IQR)

• Box Representation: The box spans from Q1 to Q3, representing the middle 50% of data

• Whisker Length: Whiskers extend to the minimum and maximum values within the outlier boundaries

• Distribution Shape: Relative positions of median and quartiles indicate skewness

Step-by-Step Box Plot Creation Process:
  1. Order Data: Arrange all data points in ascending order
  2. Find Five-Number Summary: Calculate min, Q1, median, Q3, max
  3. Calculate IQR: Find Q3 - Q1
  4. Determine Outlier Boundaries: Calculate fences using 1.5 × IQR rule
  5. Identify Outliers: Mark any values outside the fences
  6. Draw Number Line: Create appropriate scale for the data
  7. Draw Box: Draw rectangle from Q1 to Q3
  8. Mark Median: Draw line inside box at median position
  9. Draw Whiskers: Extend lines from box to min/max within fences
  10. Mark Outliers: Plot outliers separately as individual points
Components of Box Plot
Box: Q1 to Q3
Whiskers: Min to Max (within fences)
Line: Median
Outliers: Separate points
Distribution Shapes
Symmetric: Box centered
Right-skewed: Right whisker longer
Left-skewed: Left whisker longer
Uniform: Equal box and whisker lengths
Tip 1: Always sort data before finding quartiles.
Tip 2: The box contains exactly 50% of the data.
Tip 3: Compare medians to assess central tendency differences.
Tip 4: Compare IQRs to assess variability differences.
Common Mistakes: Forgetting to sort data, miscalculating quartiles for even numbers of data points, not checking for outliers, confusing median with mean, misinterpreting box plot components.
Memorization Tips: "Box contains the middle half (50%) of data." "Whiskers reach to furthest points within normal limits." "Outliers stand alone." Remember: Min, Q1, Med, Q3, Max.
Rules, Tips, and Q&A
Essential Rules:

• Always arrange data in ascending order before finding quartiles

• For even number of data points, median is the average of the two middle values

• Outliers are values beyond Q1 - 1.5(IQR) or Q3 + 1.5(IQR)

• The box in a box plot represents the interquartile range (middle 50% of data)

• Whiskers extend to the minimum and maximum values within the outlier boundaries

Questions & Answers

Question: How do I find quartiles when there's an even number of data points?

Answer: When there's an even number of data points:

  1. For the median, take the average of the two middle values
  2. For Q1, take the median of the lower half of data
  3. For Q3, take the median of the upper half of data

Example: For 6 data points, the median is between positions 3 and 4. Q1 is the median of positions 1-3, and Q3 is the median of positions 4-6.

Question: How do I know if a value is an outlier?

Answer: To identify outliers:

  1. Calculate IQR = Q3 - Q1
  2. Calculate Lower Fence = Q1 - 1.5(IQR)
  3. Calculate Upper Fence = Q3 + 1.5(IQR)
  4. Any value below Lower Fence or above Upper Fence is an outlier

Example: If Q1 = 10 and Q3 = 20, then IQR = 10. Lower fence = 10 - 1.5(10) = -5. Upper fence = 20 + 1.5(10) = 35. Any value < -5 or > 35 would be an outlier.

Question: How can I tell if a distribution is symmetric or skewed from a box plot?

Answer: Examine the box plot components:

  • Symmetric: Median is centered in the box, whiskers are approximately equal length
  • Right-skewed: Median is closer to Q1, right whisker is longer
  • Left-skewed: Median is closer to Q3, left whisker is longer

Example: If the box is shifted toward the left and the right whisker extends further, the distribution is right-skewed, indicating more high values than low values.