Introduction

Welcome back to Analyzing Data with Box Plots! You have reached the fourth and final lesson of the course, and this is where everything comes together. Over the previous three lessons, you built the skills to read five-number summaries, interpret what the box and whiskers reveal about center, spread, and shape, and identify outliers using the 1.5 × IQR rule. Now we put all of those skills to work for what is arguably the most practical use of box plots: comparing groups side by side.

In this lesson, you will learn how to place two or more box plots on the same scale and draw clear, evidence-based conclusions about how groups differ. We will walk through each comparison dimension — medians, IQRs, overall spread, skew, and outlier patterns — so that by the end, you have a reliable framework for analyzing any pair of distributions.

Why Compare with Box Plots?

In real life, we rarely look at a single group in isolation. A manager might want to know whether Shipping Service A delivers faster than Shipping Service B. A researcher might compare sleep durations on weekdays versus weekends. A city planner might examine commute times across two neighborhoods.

Side-by-side box plots are ideal for these comparisons because they line up key summary features on a shared number line. Instead of comparing long lists of numbers or separate tables of statistics, you can visually scan the plots and spot differences in seconds. Every skill you have built so far in this course feeds directly into this final step.

Anatomy of a Side-by-Side Display

A side-by-side display places two or more box plots on the same axis so their positions are directly comparable. Each plot still shows the familiar five-number summary — minimum, Q1, median, Q3, and maximum — along with any outlier dots. The only addition is a category axis that labels each group.

Consider the example below. Two box plots share a horizontal axis running from 10 to 60 minutes. The top plot represents Service A delivery times and the bottom represents Service B. Because both plots use the same scale, differences in center, spread, and extremes are easy to see at a glance.

Side-by-side box plots for Service A and Service B on the same 10 to 60 minute scale
Comparing Medians
Comparing the IQR
Comparing Overall Spread

While the IQR focuses on the middle 50%, the overall spread looks at how far the data stretches from end to end. You can get a quick sense of this by examining how far each plot's whiskers extend. A group whose whiskers reach much further has a wider range of non-outlier values.

Keep in mind that outlier dots sit beyond the whiskers, so the total range of all data points may be even larger than the whisker-to-whisker span. Comparing overall spread alongside the IQR gives a fuller picture: two groups might have similar boxes but very different whisker lengths, or vice versa.

Comparing Skew and Shape
Comparing Outlier Patterns

Finally, look for the isolated dots beyond the whiskers. As we covered in Lesson 3, these flag values that fall outside the 1.5 × IQR fences. When comparing groups, pay attention to three things:

  • Which groups have outliers? One group might have none while another has several.
  • On which side do the outliers appear? High-end outliers suggest occasional extreme highs; low-end outliers suggest occasional extreme lows.
  • How far from the whisker are they? A dot barely beyond the whisker is less dramatic than one that sits far away.

These differences can shift the overall story. If two shipping services have similar medians and IQRs but one has multiple high-end outliers, that service occasionally produces very late deliveries — something that could matter a great deal to customers.

Structured Comparison: Weekday vs. Weekend Sleep
Conclusion and Next Steps

In this lesson, you combined every skill from the course — reading values, interpreting shape, and spotting outliers — into a unified framework for comparing distributions with side-by-side box plots. The key is to work through each dimension systematically: medians for center, IQR and whisker length for spread, box and whisker balance for skew, and isolated dots for outliers.

You have now completed all four lessons in Analyzing Data with Box Plots. The upcoming exercises will present side-by-side box plots from real-world scenarios and ask you to extract values, match comparison statements to the correct groups, and write your own structured comparisons. Let's finish the course strong!

Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal