Outliers and the 1.5 × IQR rule
In OpenStax's evening class, the 1.5 × IQR rule marks the scores 45 and 25.5 as outliers because both are below 61.5.
Is a score of 45 unusual in this class?
Start with the lab below. It holds the 22 evening class scores from OpenStax, with the outlier fences switched on. Before you touch anything, guess. Is the 45 an outlier? What about the 25.5? Look for the red rings, then drag the 45 upward slowly and stop the moment its ring disappears. Note where that happens. The rest of this page explains the number you just found.
Drag to turn. Scroll or pinch to zoom.
An outlier is a value unusually far from the rest of the data. It might be a typing mistake or a broken sensor, but it might also be a real and important case: the one house that is a mansion, the one patient who reacts differently to a drug. OpenStax advises looking at outliers closely rather than deleting them automatically. To look, you first need a fair way to decide what counts as "unusually far".
Two fences, each 1.5 IQRs beyond a quartile
The usual rule builds two fences from the quartiles. The lower fence is Q1 − 1.5 × IQR and the upper fence is Q3 + 1.5 × IQR. A value below the lower fence or above the upper one is a potential outlier. The rule uses quartiles on purpose. Outliers cannot drag the fences outward the way they drag a mean or a standard deviation.
Back to the lab. The evening class has Q1 = 78, Q3 = 89 and IQR = 11. The fences are 78 − 1.5 × 11 = 61.5 and 89 + 1.5 × 11 = 105.5, and 61.5 is where the 45 lost its ring. The scores 45 and 25.5 are below 61.5, so both are outliers; no score is above 105.5. The day class, with IQR 26.5, has fences at 16.25 and 122.25, so even its 32s are inside. For the 11 OpenStax salaries, Q1 = 40.5, Q3 = 69 and IQR = 28.5. That gives an upper fence of 69 + 42.75 = 111.75 thousand dollars, and the $120,000 salary is a potential outlier. For the 13 home prices the upper fence is $1,159,375. The $5,500,000 house is far outside. The $1,095,000 house is just inside.
Two low scores cost the mean more than 4 points
Compare the evening class with and without its two outliers. With all 22 scores the mean is about 79.05, the median 81 and the standard deviation about 16.8. Without 45 and 25.5, the 20 remaining scores have a mean of about 83.43, a median of 82 and a standard deviation of about 9.0. The mean rose by more than 4 points and the standard deviation almost halved, while the median moved by just 1. Salaries tell the same story: removing the $120,000 salary drops the mean from about $58,682 to $52,550, and the median stays at $54,000.
So what should you do with an outlier? First check whether it is a mistake, such as 25.5 typed instead of 85.5. If it is an error and you can fix it, fix it. If it is real, keep it and say so, and consider reporting the resistant measures, the median and IQR, alongside the mean and standard deviation. Deleting real values because they are inconvenient changes the story the data tell. The rule is a flag, not a verdict. "Potential outlier" means "look here".
| Outlier | A value unusually far from the rest of the data |
| Lower fence | Q1 − 1.5 × IQR |
| Upper fence | Q3 + 1.5 × IQR |
| First step with an outlier | Check whether it is an error; do not delete it automatically |
- Evening class: Q1 = 78, IQR = 11. Lower fence?
- Evening class: Q3 = 89, IQR = 11. Upper fence?
- How many evening class scores are outliers?
- Salaries: Q3 = 69, IQR = 28.5 (thousand). Upper fence?
- Home prices: Q3 = 649,000, IQR = 340,250. Upper fence in dollars?
- Is the $1,095,000 house an outlier by the 1.5 × IQR rule?
- Yes
- No, it is below the upper fence
- Data 12, 15, 11, 14, 13, 40. Upper fence (Q1 = 12, Q3 = 15)?
- Evening class without its two outliers: mean to 2 decimal places?
- Removing the two low outliers from the evening class changes which value least?
- Mean
- Standard deviation
- Median
- Range
- You find a score of 25.5 that might be a typing error for 85.5. What first?
- Delete it
- Check the original record
- Replace it with the mean
- Ignore it
- Building the fences from the median: 81 − 16.5 = 64.5 and 81 + 16.5 = 97.5, which flags the three 98s. The fences start from the quartiles, not the median. From Q1 = 78 and Q3 = 89 they are 61.5 and 105.5, and the 98s are well inside.
- Leaving out the 1.5: 78 − 11 = 67 and 89 + 11 = 100, which makes the 65 an outlier too. The rule multiplies the IQR by 1.5 before subtracting or adding. 65 is above the real lower fence, 61.5, so only 45 and 25.5 are outside.
- Reporting only the mean salary, about $58,682, as what a typical employee earns. One $120,000 salary lifts that mean; without it the mean is $52,550. When the data hold a potential outlier, give the median, $54,000, beside the mean.
- Fences: Q1 − 1.5 × IQR and Q3 + 1.5 × IQR; values outside are potential outliers.
- Outliers move the mean and standard deviation a lot, the median and IQR little.
- Check outliers for errors; do not delete real values to tidy the data.
Sources for this course (7)
- Curriculum: 교육부 고시 제2022-33호 [별책 8] 수학과 교육과정 (ncic.re.kr/inv/org/download.do?year=2022&seq=10003559&orgType=ogi4, PDF read 2026-10-19: 초등학교 5~6학년군 [6수04-01] 평균의 의미, 고려 사항 「평균을 구하는 방법뿐만 아니라 그 의미를 직관적으로 파악하게 한다」; 중학교 1~3학년군 [9수04-01] 중앙값·최빈값과 대푯값 고르기, [9수04-07] 분산과 표준편차, [9수04-08] 상자그림으로 분포 비교, 용어 변량·대푯값·중앙값·최빈값·도수분포표·산포도·편차·분산·표준편차·사분위수·상자그림; 고등학교 확률과 통계 용어 표본평균·모평균·표본분산·표본표준편차와 기호 X̄, S², S, N(m, σ²); 실용 통계 [12실통02-04] 대푯값과 산포도 고르기)
- Middle-school variance as the mean of the squared deviations: EBS Math 중3 「분산과 표준편차」 (www.ebsmath.co.kr/resource/rscView?cate=123500&cate2=123510&cate3=123511&rscTpDscd=RTP10&grdCd=MGRD03&sno=24525&type=S, read 2026-10-19)
- Textbook: OpenStax, Introductory Statistics 2e by Barbara Illowsky and Susan Dean, 2.3 measures of location, quartiles as medians of the lower and upper halves, IQR, 1.5 × IQR outlier rule, 13 real estate prices, 11 salaries, day and evening class test scores (openstax.org/books/introductory-statistics-2e/pages/2-3-measures-of-the-location-of-the-data)
- 2.5 measures of the center (.../pages/2-5-measures-of-the-center-of-the-data)
- 2.6 skewness and the mean, median and mode, the three ten- and sixteen-value data sets (.../pages/2-6-skewness-and-the-mean-median-and-mode)
- 2.7 measures of the spread, sample standard deviation with n − 1 (.../pages/2-7-measures-of-the-spread-of-the-data)
- Trimmed mean only: Federal Reserve Bank of Dallas, Trimmed Mean PCE inflation rate (dallasfed.org/research/pce and /research/pce/descr)
Checked: 2026-10-17