Statistical Tests (t, Q & F)
Is the difference real?
Is the difference real?
Confidence intervals and significance tests for analytical chemistry
Every measured value carries uncertainty. Statistical tests let you decide whether an observed difference — between your result and a certified value, or between two methods — is genuine or merely the result of random scatter. The backbone of all these decisions is the confidence interval:
where is the sample mean, s the standard deviation, n the number of measurements, and t the critical value from Student's t-distribution for the chosen confidence level and degrees of freedom. At 95 % confidence with n = 4 (df = 3), t = 3.18; as n grows, t shrinks toward 1.96 (the z-value for a large sample). The interval narrows both because grows and because t decreases.
Three tests dominate analytical practice. The Student t-test compares a measured mean against a known reference (one-sample form) or two methods against each other (two-sample form). The Q-test (Dixon's Q) provides a quick outlier test: compute the ratio of the suspect point's gap to the overall range and compare to a critical value. The F-test decides whether two sets of measurements have the same precision (variance), which must be checked before pooling them.
use t-table for df = n − 1
compare to t-crit at df = n − 1
pool variances if F-test passes
reject if Q > Q-crit
reject equal variance if F > F-crit
n = 6: 0.625 | n = 7: 0.568 | n = 10: 0.466
Choosing the right test requires reading the experimental design, not just the data. The critical decision tree is:
- Using an unpaired t-test when the design is paired. Paired tests remove between-sample variation and are far more powerful. Ignoring the pairing can hide a real method difference.
- Skipping the F-test before pooling. Pooling variances that are significantly different inflates the t-statistic and leads to false conclusions.
- One-tailed vs two-tailed. Choosing the more convenient tail after seeing the data is a form of p-hacking. Decide in advance.
- Comparing t_calc to the wrong df row in the table. For a two-sample pooled t-test the df is , not or .
- Over-applying the Q-test. Only one Q-test per dataset; the critical Q value is read for the original n, not the reduced set.
Confidence-interval lab
Adjust the standard deviation and sample size and watch the 95 % CI widen or narrow in real time.
A student runs four replicate titrations for chloride and obtains: . Calculate the 95 % confidence interval.
The certified value for a lead standard is . A new method gives five replicates with and . Does the method show significant bias at 95 % confidence?
Worked examples
Q-test, F-test and a two-sample comparison — try each before revealing the solution.
Six replicate absorbances are: 0.521, 0.519, 0.524, 0.516, 0.551, 0.520. Is 0.551 an outlier at 95 % confidence? (Critical Q for n = 6 is 0.625.)
Method A (n = 6) gives and Method B (n = 5) gives for iron in the same standard. Do the precisions differ significantly at 95 % confidence? (F-crit for df = 5, 4 is 6.26.)
Method A: . Method B: . (F-test passed — variances equal.) Do the means differ at 95 % confidence?
Six soil samples are analysed for arsenic (mg kg⁻¹) by ICP-MS (method A) and hydride-generation AAS (method B):
| Sample | ICP-MS | HG-AAS | Difference d |
|---|---|---|---|
| 1 | 12.3 | 12.0 | +0.3 |
| 2 | 18.7 | 18.2 | +0.5 |
| 3 | 9.1 | 9.4 | −0.3 |
| 4 | 24.5 | 24.0 | +0.5 |
| 5 | 15.2 | 15.5 | −0.3 |
| 6 | 20.1 | 19.7 | +0.4 |
Use a paired t-test at 95 % confidence () to decide whether the methods give different results.
Two independent labs determine calcium in a reference cement (certified: 24.90 % Ca):
- Lab 1 (EDTA titration):
- Lab 2 (ICP-OES):
(i) Apply an F-test to compare precisions (F-crit(5,4) = 6.26 at 95 %). (ii) If the F-test passes, apply a pooled t-test to compare means (t-crit df = 9 is 2.262). If it fails, note that Welch's test would be needed. (iii) Test each mean against the certified value using a one-sample t-test (t-crit df = 5 is 2.571; df = 4 is 2.776). State all conclusions at 95 % confidence.
Check yourself
Four quick questions on confidence intervals, the t-test, and the Q-test.
A 95% confidence interval for the mean is calculated as: