One-Sample T-Test in Chemical Analysis – Statistical Treatment of Analytical Data

Statistical Treatment of Analytical Data - One-Sample t-test

Statistical Treatment of Analytical Data - One-Sample t-test in Chemical Analysis

A one-sample t-test is used to compare two means provided that data are normally distributed (plot of the frequencies of data is a histogram of normal distribution). A t-test is a parametric test and relies on distributional assumptions. It is a useful tool in analytical work when two means have to be compared. A situation like this is presented in the following example.

A new analytical instrument is tested in a chemical laboratory by determining the mass m (in mg) of Cu contained in a certain mass (i.e. 1 g) of a certified reference material (CRM). The analysis certificate of the CRM states that the average mass of Cu (in mg) is 4.54 per 1 g of sample. Fifty samples of 1 g of the CRM were analyzed by the new analytical instrument and the results are shown in Fig. I.1. At the 5% level of significance, does the instrument work properly?

Fig. I.1: Analytical results obtained by analyzing the CRM for its content in Cu (mg / g of CRM) by a new analytical instrument

A t-test for one sample can be used in this case, a sample mean would be computed and that sample mean would be compared to the specified value given 4.54 mg /g of CRM. A statistical software such as SPSS will be used to do all of the hard work in 5 steps:

Step #1

State the hypotheses:

Ho: The mean mass of Cu in the fifty 1 g samples of CRM analyzed equals 4.54 mg

Ha: The mean mass of Cu in the fifty 1 g samples of CRM analyzed does not equal 4.54 mg

Step #2

Choose a significance level:

In this case is given at the 5% level of significance (or .05)

Step #3

State all the assumptions:

The t-test is a so called parametric test based on the normal distribution. A parametric test is one that requires data from one of the large catalog of distributions that statisticians have studied – such as the normal distribution.

Therefore, the most important assumption in this case is that the results in Fig. I.1 are normally distributed. This can be tested as follows: i) visually by plotting a histogram (Fig. I.2) ii) by using the Kolmogorov-Smirnov test (a nonparametric test).

i) In order to conduct visually for normality using SPSS go to Graphs → Legacy Dialogs → Histogram (Fig. I.2) and then choose as variable the one tested in this case Weight_Cu.

Fig. I.2: Drawing a histogram using the SPSS (version 20) data editor and the analytical results in Fig. I.1

Check the box next to Display Normal Curve (Fig. I.3).

Fig. I.3: Selecting the variable Weight_Cu – in order to draw a histogram using SPSS (version 20)

The histogram obtained (Fig. I.4) does not appear to have a perfect bell-shaped curve - as a normal distribution curve has - but it is close enough taking into consideration that a sample is tested and not the entire population. There are more data in the middle and less towards the far right or far left. Almost half of the data are below and above the mean 4.50 and there are no any extreme values (outliers). All the above observations show that the assumption of normality seems reasonable and therefore the t-test can be used.

Fig. I.4: A histogram constructed from the analytical results obtained by analyzing the CRM for its content in Cu (mg / g of CRM) by a new analytical instrument. The histogram was plotted using SPSS (version 20)

The Kolmogorov-Smirnov test can also be used to evaluate the normality assumption. In order to conduct this test, go to Analyze → Nonparametric Tests → Legacy Dialogs → 1-S K-S (Fig. I.5).

Fig. I.5: Checking for normality using the  Kolmogorov-Smirnov test (SPSS 20 Data Editor) that is a non-parametric test

The output shows that the mean mass of Cu in the 50 samples (N=50) is equal to 4.4998 (Mean = 4.4998) with a minimum mass value at 4.32 and a maximum at 4.69 (please notice that the mean mass is close to the mass reported by the CRM certificate). The output also shows that the Asymp. Sig. (2-tailed) is 0.843 (that is also known as the p value) (Fig. I.6). Since the p value is above 0.05 the normality assumption cannot be rejected and therefore the distribution is considered normal.

Fig. I.6: Output of the Kolmogorov-Smirnov test for the values in Fig. I.1(SPSS 20 Data Editor) that is a non-parametric test

The p-value expresses the probability that you would be in error if you rejected that the distribution is normal. Therefore, the distribution can be considered normal and the t-test can be used.

To run the t-test using SPSS (version 20) go to Analyze → Compare Means → One-Sample t Test.

Choose Weight_Cu as the Test Variable and 4.54 (CRM’s mean value) as Test Value (Fig. I.7) and press O.K.

Fig. I.7: Selecting a Test Variable and Test_Value in SPSS 20. In this case the test variable is Weight_Cu and the test value 4.54 (CRM’s mean value in Cu)

The output shows (Fig. I.8) sample statistics for the test variable Weight_Cu ( N = 50, Mean = 4.4998). The t-test output has a Sig. (2-tailed) p value of 0.002 that is lower than 0.05 and therefore the Null Hypothesis (Ho: The mean mass of Cu in the fifty 1 g samples of CRM analyzed equals 4.54 mg and therefore the instrument works properly) is rejected.

Fig. I.8: The t-test output using SPSS 20. The test variable is Weight_Cu and the test value 4.54 (CRM’s mean value in Cu). The output shows that the null hypothesis must be rejected since the p-value =0.002 is lower than 0.05

When the null is rejected the alternate hypothesis is considered true (Ha: The mean mass of Cu in the fifty 1 g samples of CRM analyzed does not equal 4.54 mg and therefore the instrument does not work properly).



References

  1. D.B. Hibbert, J.J. Gooding, "Data Analysis for Chemistry", Oxford Univ. Press, 2005
  2. J.C. Miller and J.N Miller, “Statistics for Analytical Chemistry”, Ellis Horwood Prentice Hall, 2008
  3. Steven S. Zumdahl, “Chemical Principles” 6th Edition, Houghton Mifflin Company, 2009
  4. D. Harvey, “Modern Analytical Chemistry”, McGraw-Hill Companies Inc., 2000
  5. R.D. Brown, “Introduction to Chemical Analysis”, McGraw-Hill Companies Inc, 1982
  6. S.L.R. Ellison, V.J. Barwick, T.J.D. Farrant, “Practical Statistics for the Analytical Scientist”, 2nd Edition, Royal Society of Chemistry, 2009
  7. A. Field, “Discovering Statistics using SPSS” , Sage Publications Ltd., 2005

Key Terms

statistical tests, normal population, chi-squared test, data points, one-sample t-test, QQ plot, statistical treatment of analytical data

Comments

Popular posts from this blog

Carbocations: Factors affecting their Stability

Standard Enthalpies of Formation of Organic Compounds

CHEMISTRY NET - INTRODUCTION - LIST OF TOPICS