In practice, we either don't know what the optimum model we need is, or the needs of the model change as we obtain more data.
We start with the data in Table 9.4 for the mass of pennies of various years (shown graphically in Figure 9.3):
Table 9.4. Mass of Pennies from 1960 to 1974.
Year
Mass [g]
1960
3.133
1961
3.083
1962
3.175
1963
3.120
1964
3.100
1965
3.060
1966
3.100
1967
3.100
1968
3.073
1969
3.076
1970
3.100
1971
3.110
1972
3.080
1973
3.100
1974
3.093
Figure 9.3. Mass of Pennies from 1960 to 1974.
We are going to ignore the measurement uncertainties in these individual measurements, because they are quite small.
Overlapping Intervals
The first is the easiest to do mathematically, and yields a nice picture: obtain the best estimates for and , and see if their 99% credible intervals overlap. From this analysis (identical to the previous examples, however we leave the details of the calculation to the student), we get (see Figure 9.6):
Best estimate for
with 99% CI: [3.077,3.124].
Best estimate for
with 99% CI: [2.498,2.516]
where the 99% credible intervals (CI) clearly do not overlap, thus there is a statistically significant difference between them.
Figure 9.6. Mass of Pennies from 1960 to 2003, with best estimates for the two true values and their 99% CI (i.e. ) uncertainty plotted. There is clearly no overlap in their credible intervals, thus there is a statistically significant difference between them.
Is the Difference Zero?
The proper way is to estimate the quantity and test to see if it is greater than zero, as shown in Section 7.2 on page 144. The estimate of this quantity, which we'll call is related to the means and uncertainties of two data sets
where the sample standard deviations, and , and the scale factors, and were calculated earlier. This leads to, for this data set,
with the 99% credible interval , the distribution shown in Figure 9.7. Again, the estimated quantities are clearly different statistically: the value of zero is well outside of the 99% credible interval for .
Figure 9.7. Difference in the estimated values of the pre- and post 1975 pennies, . The value zero is clearly outside of the 99% interval of the difference, thus there is a statistically significant difference between the two values and .
Adapted from Statistical Inference for Everyone, by Brian Blais (Bryant University), licensed under CC BY-SA 4.0 (dual-licensed under the GNU FDL 1.2 or later; this adaptation uses the CC BY-SA grant). Changes were made; this adaptation is distributed under the same license. License: CC-BY-SA-4.0.