Imagine a class's 100 m times: most students finish between 14 and 20 seconds, and one time is written down as 41 seconds. You can see it sits apart. But is 21 seconds unusual too? Or 23? Judging by eye gives different answers for different people, so statisticians use a fixed rule built from the quartiles.
The quartiles mark the middle half of the data: Q1 is a quarter of the way up the sorted list and Q3 is three quarters of the way up. Their gap, the IQR, measures how wide the typical middle is. The fences go 1.5 IQRs beyond each quartile. If the middle half runs from 15 to 19 seconds, the IQR is 4, the step is 1.5×4=6, and the fences sit at 15−6=9 and 19+6=25 seconds. The 41 is flagged; 21 and 23 are not.
Being the largest value is not the same as being an outlier. Every data set has a maximum, and usually it is perfectly ordinary. An outlier is also different from noise: noise is the small jitter in every value, while an outlier is one value far from the rest. Once a value is flagged, find out why. A 41-second time might be a stopwatch error or a student who twisted an ankle, and those lead to different decisions about keeping it.
Think of it like this. Picture a teacher watching a class on a field trip. The group drifts along as a cluster, and the teacher keeps an imaginary boundary some distance beyond its edges, wider when the group is already spread out. A student a few steps from the others is fine; one beyond the boundary gets checked on, not sent home without a question.
Core idea. An outlier sits beyond 1.5×IQR past the quartiles — unusually far from the rest of the data.