Outliers and Spread Measures

Introduction

Welcome to the final lesson of Measuring Spread with Range and IQR! Over the previous four lessons, we assembled a full toolkit: the range to capture overall spread, Q1, Q3, and the IQR to describe the middle 50%, the five-number summary to profile a dataset at a glance, and the box plot to turn those numbers into a picture. Now we put those tools to their most practical use yet. In this lesson, we learn a formal rule for flagging outliers and develop the judgment to choose whether the range or the IQR is the better spread measure to report.

When Is a Value "Too Far"?

Earlier in this path, we spotted unusually extreme values by eye — scanning a graph or sorted list and deciding that something looked "off." That visual approach works in clear-cut cases, but it leaves a gray area. Two people examining the same data might disagree about whether a value is "just large" or "truly unusual."

The IQR gives us exactly the right yardstick. Because it measures how spread out the middle 50% of the data is, it captures what a "normal" amount of variation looks like. We can then express "too far" as a specific multiple of that yardstick, turning a subjective judgment call into a simple, repeatable calculation that anyone can apply.

The 1.5 × IQR Rule

Applying the Rule Step by Step

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