A titration, eight readings, one that did not belong
A chemistry student I know ran the same titration eight times. Seven readings clustered tight: 12.1, 12.3, 12.4, 12.4, 12.5, 12.6, 12.7. The eighth read 14.9. She stared at it for a while. Was it a real result, a slip of the burette, or a number she had misread? Deleting it by feel would be dishonest. Keeping it without a check would be lazy. She needed a rule, and with eight readings the rule has a name: Dixon's Q test.
The test is built for exactly this spot: a small sample, three to ten values, and one suspicious reading. It asks a simple question. How far does the suspect sit from its nearest neighbour, compared with the full spread of the data? If the gap is a large share of the range, the value is hard to explain as ordinary variation. If the gap is small, the value stays, however odd it looks.
Working it out by hand
Sort the readings first. Hers were already in order: 12.1, 12.3, 12.4, 12.4, 12.5, 12.6, 12.7, 14.9. The range is 14.9 − 12.1 = 2.8. The suspect is 14.9, and its nearest neighbour is 12.7, so the gap is 14.9 − 12.7 = 2.2. Divide: Q = 2.2 ÷ 2.8 = 0.7857.
Then compare with the table. At n = 8 and 95% confidence, the critical value is 0.526. Her Q of 0.7857 clears it by a wide margin, so the verdict is reject: 14.9 does not belong with the other seven. She checked her notebook, found she had overshot the endpoint on that run, and dropped the reading with the reason written down next to it. That last part matters. The test gives the verdict; the notebook gives the reason it stays honest.
The low end gets the same treatment. In her data the smallest value is 12.1, its neighbour is 12.3, and the gap is 0.2, so Q = 0.2 ÷ 2.8 = 0.0714. Far below 0.526. Nothing wrong at the bottom. The calculator on this page tests both ends and reports the larger Q, so the most suspicious value is always the one judged.
Ten exam marks: 62, 65, 67, 68, 70, 71, 72, 74, 76, 88. The 88 looks like the odd one out. Range: 88 − 62 = 26. Gap: 88 − 76 = 12. Q = 12 ÷ 26 = 0.4615. At n = 10 and 95% confidence the critical value is 0.466, so 0.4615 falls just short. Verdict: keep. One more mark on the 88, or one less on the 76, and the verdict flips. A borderline Q is a result in itself: report the number, say it was close, and let the reader see how thin the margin was.
Reading the critical value table
The table below is the Dean and Dixon table from 1951, the one every textbook reprints. Find your sample size down the side, your confidence level across the top, and read the critical value. If your Q is larger, reject the suspect. If it is smaller, keep it.
| n | 90% | 95% | 99% |
|---|---|---|---|
| 3 | 0.941 | 0.970 | 0.994 |
| 4 | 0.765 | 0.829 | 0.926 |
| 5 | 0.642 | 0.710 | 0.821 |
| 6 | 0.560 | 0.625 | 0.740 |
| 7 | 0.507 | 0.568 | 0.680 |
| 8 | 0.468 | 0.526 | 0.634 |
| 9 | 0.437 | 0.493 | 0.598 |
| 10 | 0.412 | 0.466 | 0.568 |
Notice how the bar falls as n grows. At n = 3 the 95% value is 0.970, almost the whole range: with three readings, the suspect must be nearly the entire spread to be convicted. At n = 10 it is 0.466. More data means a sharper test, which is exactly how it should be.
When the confidence level changes the answer
Five pH readings: 3.1, 3.2, 3.3, 3.4, 4.6. Range 1.5, gap 1.2, Q = 0.8000. At 95% the critical value for n = 5 is 0.710, so the verdict is reject. At 99% the bar rises to 0.821, and 0.8000 falls short, so the verdict is keep. Same data, different answer. The stricter you are about false alarms, the harder it is to convict a value. Pick the level before you look at the data, not after, or the test becomes a way to dress up a decision you already made. The usual choice is 95%.
What the test assumes, and where it stops
Three conditions sit behind the table. First, the data should be roughly normal: the test was built for measurements that cluster around a centre, like lab readings and exam marks. Second, the sample is small, three to ten values. Past ten, the classic table runs out, and the right tools are Grubbs' test or the 1.5 x IQR fence method, which the outlier calculator applies. Third, one suspect at a time. Test the worst value, and only if it is rejected, test the next worst on the values that remain. Testing every value in one pass inflates the false-alarm rate, and a second outlier can hide behind the first, a problem called masking.
Two habits keep the test honest. Never run it twice on the same data at different confidence levels until one of them rejects. And never delete a rejected value silently. Write down what it was, why the test rejected it, and what you found when you checked. A reader who can see the rejected value and the reason trusts the rest of the numbers more, not less.
Testing the same sample again and again after each rejection. Every re-test is another chance for a false alarm, and a small sample can be whittled down to nothing this way. One pass, one verdict, then stop and look at what is left.
Q test or IQR fences?
For three to ten values, the Q test is the sharper instrument: it is a formal test with a stated error rate, built for exactly this sample size. The IQR fences need quartiles, and quartiles are shaky with so few values. Past ten values the balance flips: the Q table stops, Grubbs' test takes over for single outliers, and the IQR fences handle the general case. If the question is "is this one value an outlier in a tiny sample", run the Q test first and let the Shapiro-Wilk test confirm the sample is normal enough for the question to make sense.
Frequently asked questions
When should I use Dixon's Q test instead of the IQR rule?
For samples of 3 to 10 values. The Q test is a formal test with a stated error rate, built for tiny samples, while quartiles (and the fences built from them) are shaky with so few values. Past 10 values, use Grubbs' test or the IQR fences instead.
Can I test for two outliers at once?
No, one at a time. Test the most suspicious value first. Only if it is rejected, run the test again on the values that remain. Testing every value in one pass inflates the false-alarm rate, and a second outlier can hide behind the first.
What if my sample has more than 10 values?
The classic Dixon table stops at 10. For larger samples use Grubbs' test for a single outlier, or the 1.5 x IQR fence method, which the outlier calculator on this site applies. The Q test's small-sample design is its strength, not a gap to work around.
My Q is just under the critical value. Is the value safe?
It stays in, but say so openly. Ten exam marks gave Q = 0.4615 against a critical value of 0.466: a keep by 0.005. Report the Q, the critical value and the margin. A borderline keep is a finding, not a clean bill of health.
Does rejecting an outlier mean deleting the data?
No. Rejection is a prompt to investigate, not a deletion order. Check for a measurement slip, a misread value or a real event first. If you do remove it, write down the value, the Q and the reason, and keep the original data. Report the analysis both ways when the decision matters.