Skip to content
OneKitly

The Same Value Is an Outlier by One Rule and Not by Another

Published 10/21/2026 · 4 min read · Everyday calculators

Daniel Okonkwo

Daniel Okonkwo — Front-end developer and tech writer at OneKitly

Web performance · File formats

Checked against 2 sources

View profile →
In short

Take the numbers 1 through 9 and add a 100. The interquartile rule puts the quartiles at 3.25 and 7.75, giving fences at −3.5 and 14.5, so the 100 is flagged without hesitation. The three-sigma rule disagrees: the mean is 14.5 and the standard deviation 30.15, so the 100 sits 2.84 deviations out — inside the usual threshold of three, and therefore not an outlier at all. Neither rule is wrong; they measure against different yardsticks, and the second one is being measured against a yardstick the suspect value itself stretched. Change the rule again to the MAD-based score and the same 100 comes out at 25.5, far beyond any threshold. An outlier is a decision, not a property of the number.

Advertisement

In 1 to 9 plus a 100, the IQR rule flags the 100 — the fences are −3.5 and 14.5. The three-sigma rule does not: its z-score is 2.84, because the 100 inflated the very deviation it is being measured against.

Masking: the suspect hides behind its own effect

The three-sigma rule fails here for a specific and predictable reason: the standard deviation it divides by was computed from data that includes the point under test. One extreme value inflates that denominator enough to make itself look ordinary, and two or three of them can hide each other completely — the phenomenon has a name, masking, and it is why a rule built on the mean and the standard deviation is a poor detector of the very thing it is meant to detect. Rules built on ranks do not have this weakness, because a single extreme value cannot inflate a quartile or a median.

Even the quartiles are not one thing

Statistical software offers half a dozen definitions of a quartile, and they disagree on small samples. This calculator interpolates linearly between order statistics, which puts the quartiles of a seven-value set at 11.5 and 12.5 where the older method of splitting at the median would put them at 11 and 13 — an interquartile range of 1 against 2, and fences twice as far apart. On the seven readings 10, 11, 12, 12, 12, 13 and 40 both conventions flag the 40, but on a borderline case they will not agree. Any pipeline that removes flagged points is therefore sensitive to a choice nobody wrote down, and the honest fix is to record which convention was used alongside the results.

1, 2, 3, 4, 5, 6, 7, 8, 9, 100 — three verdicts on the 100
RuleScore or fenceVerdict
1.5 × IQR fences−3.5 to 14.5Outlier
Three sigmaz = 2.84Not an outlier
Modified z (MAD)25.5Outlier

Worked with our own calculator

Outlier detector (IQR method)

Given

Numbers (comma-separated)
10, 12, 12, 13, 12, 11, 40

Result

Lower bound
10
Upper bound
14

These figures are produced by the calculator below, not typed in by hand — they are recomputed whenever the tool changes.

Run it on your own figures →
Advertisement

Frequently asked questions

Should flagged points be deleted?
Almost never automatically. A flag is a request to look, not a verdict: the value may be a transcription error, a genuine rare event, a different population accidentally included, or the most interesting thing in the dataset. Deleting on the strength of a rule removes real discoveries along with the mistakes, and it does so invisibly, because the deleted points leave no trace in the summary that follows. The defensible workflow is to keep the raw data, record which points were excluded and why, and be able to produce the analysis both ways when somebody asks.
Why 1.5 and not some other multiple?
Because it was chosen to be a useful compromise and then stuck. With normally distributed data the 1.5 × IQR fences leave roughly seven values in a thousand outside, which is rare enough to be worth investigating and common enough that the rule finds something in a real dataset. Three times the interquartile range is the conventional threshold for a far more extreme point. Neither number comes from a theorem, and both are adjustable inputs in serious work — a rule that flags a tenth of a large dataset is telling you about the distribution's shape rather than about individual points.

Articles you may find interesting

All guides →
ExplainerOne Bad Reading Multiplies the Standard Deviation by TwentyReplace 2.7 with 9.8 in a set of seven readings and the standard deviation goes from 0.12 to 2.57. The median absolute deviation does not move at all: 0.10 either way.ExplainerTurn 30 Into 300 and the Interquartile Range Does Not MoveFor 2, 5, 7, 8, 10, 13, 18, 21, 25, 30 the range is 28, the standard deviation 9.24 and the IQR 13. Replace the last value with 300 and only the IQR survives unchanged.ExplainerThe Same Three Temperatures Give Three Different Coefficients of VariationFor 2, 4, 4, 4, 5, 5, 7, 9 the coefficient of variation is 42.76 %. It is the right tool for comparing spread across different scales — and completely wrong for any scale whose zero was chosen by convention.ExplainerForty Out and Sixty Back Averages Forty-EightThe harmonic mean of 40 and 60 is 48, not 50, because the slower leg takes longer and therefore counts for more. For 1, 2 and 4 it is 1.714 against an arithmetic mean of 2.33.ExplainerIf the Variance Is Not the Mean, It Is Not PoissonWith an average of five events per interval, exactly three occur 14.0 % of the time, none at all 0.7 %, and ten or more 3.2 % — about once every 31 intervals. The distribution has one parameter, and it sets both the mean and the variance.ExplainerAn Error Bar That Shrinks Is Not the Standard DeviationFor 10, 12, 15, 11, 13, 14 the standard deviation is 1.87 and the standard error is 0.76. They answer different questions, and only one of them gets smaller as you collect more data.

Related tools

Sources

Spotted a mistake in this article?