Abstract There are inherent random fluctuations in the measurement of any quantity. Statistical tests allow decisions to be made from and about measurements. A calculated statistical value less than the critical test value indicates that the null hypothesis is true, and that the difference between two or more quantities is due to random fluctuations within a specified level of confidence. The standard deviation, sigma, is a measure of the magnitude of the random fluctuations. Students t test is used to express whether two numbers are significantly different at a given level of confidence after consideration of the random fluctuation in measurement. Grubb’s test, Z-values, Dixon’s Q-test (but not the t test) can all be used to test the possibility that an extreme measurement is an outlier. The F test, meanwhile, is used to test the equality of two standard deviations.
Keywords: Quality. Statistical Testing, Null hypothesis, Critical value, Uncertainty, Mean, Standard deviation, Confidence interval, Measurement uncertainty, Two-sided, Single-sided, Students t, Z test, Grubb’s test, Dixon’s Q test, Outlier testing, Precision, Expectation value
Level: Advanced
The rationale behind statistical tests.
Sometimes we are confronted with a totally unexpected analytical result. Or, perhaps we wonder whether two data sets represent essentially the same phenomenon or whether two analytical methods yield the same result. Statistical tests provide an objective basis for decision.
In statistical testing we compare the suspicious observation with a critical test value. If the observation falls below the test value, we must accept the null hypothesisthat the suspect observation is simply the result of random fluctuations inherent in any measurement process. If, on the other hand, the critical test value is exceeded, then the null hypothesisis rejected and the observation can not be attributed to random fluctuations and we must look for another explanation.
The nature of the test quantity depends on the observation we wish to examine. The critical value depends on the level of confidence to which we aspire. The judgment rendered with statistical testing is always given with a certain probability and follows the convention that:
- A probability higher than 99% is called statistically certain
witha remaining 1% (or ±α=0.01) chance of a purely random phenomenon - A probability higher than 95% (±α=0.05) is called statistically significant
- A probability higher than 90% (±α=0.10) is called statistically probable
In most cases we test against a 5% uncertainty level, i.e. when an observed deviation has no more than a 5% chance of being a random phenomenon, we consider it to be significant (i.e. suspicious) and worthy of further inspection.
The normal distribution
A brief summary of the properties of the normal distribution
Characteristics of the normal distribution
It is customarily assumed that experimental data, yi, collected in a (chemical) laboratory obey a normal frequency distribution characterized by two quantities:
The meanμ, is the most probable result of the measurement; it is approximated by ў, the average over K fully independent measurements
The standard deviation σ, is a measure of the width of he bell-shaped distribution; it is similarly estimated as s from N measurements:
Whereas the average is obviously different for different samples, the standard deviation is a characteristic of the analytical procedure and hence the same for all samples. Consequently, the value for s can be determined once and for all from N measurements of a typical sample. Consecutive measurements of other samples can thus have values for K different from N. In daily practice samples are usually measured only once, hence K=1. In practice it takes some twenty measurements for an accurate estimate of σ.
- When N > 20, then s is a reliable estimate of σ such that the probability, Za of any given measurement’s exceeding a certain y-value can be calculated from
- When N<20 measurements are available, we must account for the fact that the standard deviation and the average are less reliable; we do this by replacing Z , which depends only on the value of y, by t which depends not only on the value of y, but also on the number of observations N

- In either expression the subscript α denotes the aspired probability level, usually 5% or α = 0.05
The standard deviation
Expressions for the standard deviation
Usually, the standard deviation of an analytical determination is measured directly, but if the final result, y, is calculated from a composite of measured quantities, each with its own s, the standard deviation of y can be calculated from the individual standard deviations. If y=f(a,b,c…) then the general expression for the standard deviation as a function of the contributions from independent parameters a, b, c… is

| Specific case | Expression | Standard deviation |
| Sum or difference | y=a ± b | |
| Average | ||
| Product or quotient | y=a*b y=a/b |
Comments:
- Irrespective whether two quantities are added or subtracted, the resulting standard deviation increases, albeit quadratically: the two respective variances ar added
- In a similar way the relative variances are added for either a quotient or a multiplicaton
- The standard deviation in an average of N results is smaller than the standard deviation of each individual result by the square root of N.
The confidence interval
The general expression for the confidence interval of the average y of K measurements is given by

where the standard deviation s is determined (separately) from N measurements and α is the accepted probability level. The test quantity, t, is known as Students t and the test as Students t-test after its original proposer.
If the standard deviation is derived from N >
20 data, then the 95% confidence interval for the mean is

Where 1.96 (often rounded to 2) is the value for Z rather than t at the
5 % level (α/2 = 0.025 on either side of the symmetrical interval). When, moreover, K =1, there is a 95% probability that the true value of a single measurement lies between
y ± 2 σ
The range ± 2 s is commonly accepted as the measurement uncertainty, even when the standard deviation is derived from less than 20, in fact as few as eight measurements.
Comparing the results of two measurements
The general expression for the comparison of two averages each with their own estimate of the standard deviation says that they are unequal at the 5% level, if

This awkward expression can be simplified when both standard deviations are known beforehand with high accuracy (N1 and N2>20), even when the averages are determined from fewer measurements (K1 and K2):

If, moreover, σ1 = σ2 and K1=K2=1, i.e. we compare two measurements of the same substance, then

Note that we have tested two-sided, because we asked whether or not the difference between two measurements was significant. Had we asked whether y1 is significantly larger than y2 we would have tested one-sided with Z0.05=1.64
Critical values for tα
| N | 10% α =0.1 | 5% α=0.05 | 2.5% α=0.025 | 1% α=0.01 | 0.5%α=0.005 |
| 3 | 1.89 | 2.92 | 4.30 | 6.97 | 9.92 |
| 4 | 1.64 | 2.35 | 3.18 | 4.54 | 5.84 |
| 5 | 1.53 | 2.13 | 2.78 | 3.75 | 4.60 |
| 6 | 1.48 | 2.02 | 2.57 | 3.36 | 4.03 |
| 7 | 1.44 | 1.94 | 2.45 | 3.14 | 3.71 |
| 8 | 1.42 | 1.89 | 2.36 | 3.00 | 3.50 |
| 10 | 1.38 | 1.83 | 2.26 | 2.82 | 3.25 |
| 15 | 1.35 | 1.6 | 2.15 | 2.62 | 2.98 |
| 20 | 1.33 | 1.73 | 2.09 | 2.54 | 2.86 |
| ∞ (t=Z) | 1.28 | 1.64 | 1.96 (≈ 2) | 2.33 | 2.59 |
Critical test value for Students t are used when the standard deviation is derived from less than N=20 measurements; thereafter it is replaced by Z.
Introducing a new method
Do two methods of analysis yield the same result?
If we wish to replace a standard method of analysis with an alternative, for example because it is cheaper or quicker, the first question to answer is: Does the new method yield the same result?The preferred approach is to analyze a number of daily samples with either method:
| Sample | Method A | Method B | Difference | ||
| 1 | 14.4 | 13.1 | 1.3 | ||
| 2 | 8.7 | 8.2 | 0.5 | ||
| 3 | 25.4 | 26.9 | -1.5 | ||
| 4 | 30.6 | 29.8 | 0.8 | ||
| 5 | 18.5 | 17.3 | 1.2 | ||
| 6 | 10.6 | 8.4 | 2.2 | ||
| 7 | 17.1 | 16.3 | 0.8 | ||
| 8 | 25.6 | 24.1 | 1.5 | ||
| 9 | 34.8 | 34.3 | 0.5 | ||
| Average difference | 0.81 | ||||
| Standard deviation in single difference, s | 1.02 | ||||
| Standard deviation of the average, s/√9 | 0.34 | ||||
Analysis of the data
- Since we have analyzed 9 different samples it makes no sense to calculate and compare the two averages over the 9 results. The standard deviation over the nine samples expresses the variability of the sample composition, but does not reveal the reliablity of the measurement, which we need for our comparison.
- The null hypothesis is that the two methods yield the same results, hence we expect beforehand that each difference in the final column of the table is zero.
We can also express this by saying that the expectation value for each difference is zero. This is even more true for the average of all differences, and it is this null hypothesis that we are going to test. - To test the hypothesis we first calculate the average over all 9 differences as 0.81 and the standard deviation in a single difference as s=1.02 The standard deviation of the average difference is √N smaller, hence equal to 0.34.
- We compute the test value t=0.81/0.34=2.38 and compare that with the critical t-value for N=9.
- tα=0.025(N=9) = 2.31, so that the observed difference is slightly larger than the critical t-value (2.38>2.31) and hence statistically significant at the 5% level, so that we conclude that the two methods do not yield the same result.
- Had we asked whether the new method gives larger results, we would have tested single-sided and compared our t-value of 2.38 with tα=0.05(N=9) = 1.86 which is even more significant.
- Note that we might have expected the outcome because, of all 9 differences, only one is negative (in comparison to the 8 positive values)
Outlier tests
Testing for a supiciously high (or low) result
To judge whether an extremely, and hence suspiciously high (or low) value in a set of measurements is an outlier, we have a choice of three different tests:
- If the standard deviation is well known beforehand from N>20 previous measurements (hence s ≈ σ), we can compare the difference between the suspected value and the mean of all data in the set with the critical Z-value.
- If the standard deviation is not known beforehand, but rather is computed from the same limited set, the suspicious value included, we use the Grubbs’ test.
- For a small numer of observations (N<10), we can also apply Dixon’s Q-test
NB: The t-test can not be used for outlier testing. This is because, with increasing separation of the suspected outlier, the standard deviation increases even more rapidly, such that the t-value becomes even smaller and never exceeds a critical test value. It is for this reason that the Grubbs and Dixon tests have been designed. Because they are based on fewer measurements, Grubbs and Dixon are more severe than the Z-test.
Although the 5% level is usually applied in statistical tests, 1% is recommended for outlier testing, to avoid rejecting data too readily. Rejection becomes more acceptable if we can propose a possible reason why a particular measurement does not belong to the same population as the others: have we switched samples, used the wrong reagent…..?
Three common outlier tests:
Expressions for calculating the test value in the three common outlier tests
In the following expressons, yu is the suspiciously high value
| Test | Expression | Comment |
| Z-test | Standard deviation known from N>20 previous measurements: s ≈ σ | |
| Grubbs | Standard deviation less precisely known from N<20 previous measurements | |
| Dixon Q-test | yu-1 is the next highest value adjacent to yu while ylow is lowest value of set |
Grubbs(Gr) and Dixon (Q) values
Critical values for Grubbs (Gr) and Dixon (Q) outlier test.
| N | Gr α=0.05 | Gr α=0.01 | Q α=0.05 | Q α=0.01 |
| 3 | 1.153 | 1.155 | 0.970 | 0.994 |
| 4 | 1.463 | 1.492 | 0.829 | 0.926 |
| 5 | 1.672 | 1.749 | 0.710 | 0.821 |
| 6 | 1.822 | 1.944 | 0.625 | 0.740 |
| 7 | 1.938 | 2.097 | 0.569 | 0.680 |
| 8 | 2.032 | 2.221 | 0.526 | 0.634 |
| 9 | 2.110 | 2.323 | 0.493 | 0.598 |
| 10 12 15 20 | 2.176 2.285 2.409 2.557 | 2.410 2.550 2.705 2.884 | 0.466 | 0.568 |
Would you accept or reject?
Example of outlier testing: would you accept the suspiciously high value?
Analyze the given set of data:
would you accept or reject the outlier
?
Comparing two standard deviations
The F-test for the comparison of two standard deviations
To judge the (in)equality of two standard deviations, we calculate the square of the ratio of the larger standard deviation over the smaller oneand compare the resultwith the critical F-value:

Critical values of F at the 5 % level
| Measurements for smaller std. dev. | Number of measurements for the larger standard devation | |||||||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 | 15 | 20 | ∞ | |
| 4 | 9.28 | 9.12 | 9.01 | 8.94 | 8.89 | 8.85 | 8.81 | 8.70 | 8.66 | 8.53 |
| 5 | 6.59 | 6.39 | 6.26 | 6.16 | 6.09 | 6.04 | 6.00 | 5.86 | 5.80 | 5.63 |
| 6 | 5.41 | 5.19 | 5.05 | 4.95 | 4.88 | 4.82 | 4.77 | 4.62 | 4.56 | 4.36 |
| 7 | 4.76 | 4.53 | 4.39 | 4.28 | 4.21 | 4.15 | 4.10 | 3.94 | 3.87 | 3.67 |
| 8 | 4.35 | 4.12 | 3.97 | 3.87 | 3.79 | 3.73 | 3.68 | 3.51 | 3.44 | 3.23 |
| 9 | 4.07 | 3.84 | 3.69 | 3.58 | 3.50 | 3.44 | 3.39 | 3.22 | 3.15 | 2.93 |
| 10 | 3.86 | 3.63 | 3.48 | 3.37 | 3.29 | 3.23 | 3.18 | 3.01 | 2.94 | 2.71 |
| 15 | 3.29 | 3.06 | 2.90 | 2.79 | 2.71 | 2.64 | 2.59 | 2.40 | 2.33 | 2.07 |
| 20 | 3.10 | 2.87 | 2.71 | 2.60 | 2.49 | 2.45 | 2.39 | 2.20 | 2.12 | 1.84 |
| ” | 2.60 | 2.37 | 2.21 | 2.10 | 2.01 | 1.94 | 1.88 | 1.67 | 1.57 | 1.00 |
Note the asymmetry: The value of F for a combination of 5 data for the larger and 10 for the smaller standard deviation (3.63) differs from F for the combination of 10 for the larger and 5 for the smaller standard deviation (6.00).
Adopting a standard procedure
Are we as precise as the peer group of international experts?
The standard deviation is an important characteristic of an analytical method. In this example we have adopted an international standard method of analysis and we wish to verify that we achieve the same precision as the experts. The international method is well tested and states the precision with the ubiquitous expression: r = 5.0 %. To see whether we can reach the same performance, we analyse a representative sample a number of times and find the following data:
| Number | Result | Number | Result |
| 1 | 7.5 | 9 | 7.5 |
| 2 | 7.6 | 10 | 8.0 |
| 3 | 7.85 | 11 | 7.9 |
| 4 | 7.9 | 12 | 7.7 |
| 5 | 7.6 | 13 | 7.9 |
| 6 | 7.7 | 14 | 8.0 |
| 7 | 8.1 | 15 | 7.9 |
| 8 | 7.8 | ||
| Average N=8 | 7.75 | Average N=15 | 7.79 |
| Stand. deviation | 0.193 | Stand. deviation | 0.187 |
Analysis of the data
- First we must reconcile the relative percentage stated in the international standard as r with our own experimental standard deviation, s, in absolute (concentration) units. We do this by multiplying their r with our average and dividing by 2”2; this yields the standard deviation that the experts would have achieved with our samples:
- sinternational standard = 0.050*7.8/2.8 = 0.14 . We further assume that this value is the result of many measurements (N>20).
- If we stop collecting data after 8 points -the absoute minimum recommended for an estimate of thestandard deviation- we would have found that F = (0.193/0.14)2 = 1.90 which is smaller than the critical value of F(8, ∞) = 2.01
- Hence we can not reject the null hypothesis and must accept that, although larger, our result of 0.193 is not significantly larger than 0.14
- If, however we include the seven additional data we find that now F = (0.187/0.14)2 = 1.78 which is larger than the critical value of F (15, ∞) = 1.67
- Consequently, the standard deviation observed after 15 measurements, despite being slightly better than after 8 measurements, is significantly larger than the value stated in the international standard.
- The explanation for this apparent discrepancy is that with more and more measurements we can detect ever smaller differences. We have seen already that the standard deviation of the average decreases with the inverse of the square root of the number of measurements. In a similar vein, the standard deviation itself becomes more reliable and, hence, easier to distinguish from the reference value. This is also indicated by the continuous decrease of the critical value for F with increasing number of measurements. In the example F decreases from 2.01 to 1.67 in going from 8 to 15 data.
- Even when we cannot reject the null hypothesis (as in the case of only 8 measurements) we may not adopt the standard value of s = 0.14, but must accept s = 0.193 as being representative of our own performance.
