Home page for accesible maths 3.3 One-sample means with the t distribution

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

3.3.4 One sample t confidence intervals

Dolphins are at the top of the oceanic food chain, which causes dangerous substances such as mercury to concentrate in their organs and muscles. This is an important problem for both dolphins and other animals, like humans, who occasionally eat them. For instance, this is particularly relevant in Japan where school meals have included dolphin at times.

Here we identify a confidence interval for the average mercury content in dolphin muscle using a sample of 19 Risso’s dolphins from the Taiji area in Japan.3333Taiji is a significant source of dolphin and whale meat in Japan. Thousands of dolphins pass through the Taiji area annually, and we will assume these 19 dolphins represent a simple random sample from those dolphins. Data reference: Endo T and Haraguchi K. 2009. High mercury levels in hair samples from residents of Taiji, a Japanese whaling town. Marine Pollution Bulletin 60(5):743-747. The data are summarized in Table 3.6. The minimum and maximum observed values can be used to evaluate whether or not there are obvious outliers or skew.

n x¯ s minimum maximum
19 4.4 2.3 1.7 9.2
Table 3.6: Summary of mercury content in the muscle of 19 Risso’s dolphins from the Taiji area. Measurements are in μg/wet g (micrograms of mercury per wet gram of muscle).
Example 3.3.5

Are the independence and normality conditions satisfied for this data set?

Answer. The observations are a simple random sample and consist of less than 10% of the population, therefore independence is reasonable. The summary statistics in Table 3.6 do not suggest any skew or outliers; all observations are within 2.5 standard deviations of the mean. Based on this evidence, the normality assumption seems reasonable. In the normal model, we used z and the standard error to determine the width of a confidence interval. We revise the confidence interval formula slightly when using the t distribution:

x¯±tdfSE

The sample mean and estimated standard error are computed just as before (x¯=4.4 and SE=s/n=0.528). The value tdf is a cutoff we obtain based on the confidence level and the t distribution with df degrees of freedom. Before determining this cutoff, we will first need the degrees of freedom.



Degrees of freedom for a single sample If the sample has n observations and we are examining a single mean, then we use the t distribution with df=n-1 degrees of freedom.

In our current example, we should use the t distribution with df=19-1=18 degrees of freedom. Then identifying t18 is similar to how we found z.

  • For a 95% confidence interval, we want to find the cutoff t18 such that 95% of the t distribution is between -t18 and t18.

  • We want (T18<t18)=0.975 hence we look this up in R: qt(0.975,df=18)=2.100922. Note we use 97.5% as we want a two-tailed answer so 2.5% in the upper and lower tails.

Generally the value of tdf is slightly larger than what we would get under the normal model with z.

Finally, we can substitute all our values into the confidence interval equation to create the 95% confidence interval for the average mercury content in muscles from Risso’s dolphins that pass through the Taiji area:

x¯±t18SE4.4± 2.10×0.528(3.29,5.51)

We are 95% confident the average mercury content of muscles in Risso’s dolphins is between 3.29 and 5.51 μg/wet gram. This is above the Japanese regulation level of 0.4 μg/wet gram.



Finding a t confidence interval for the mean Based on a sample of n independent and nearly normal observations, a confidence interval for the population mean is x¯±tdfSE where x¯ is the sample mean, tdf corresponds to the confidence level and degrees of freedom, and SE is the standard error as estimated by the sample.

Example 3.3.6

The FDA’s webpage provides some data on mercury content of fish.3434http://www.fda.gov/food/foodborneillnesscontaminants/metals/ucm115644.htm Based on a sample of 15 croaker white fish (Pacific), a sample mean and standard deviation were computed as 0.287 and 0.069 ppm (parts per million), respectively. The 15 observations ranged from 0.18 to 0.41 ppm. We will assume these observations are independent. Based on the summary statistics of the data, do you have any objections to the normality condition of the individual observations?

Answer. There are no obvious outliers; all observations are within 2 standard deviations of the mean. If there is skew, it is not evident. There are no red flags for the normal model based on this (limited) information, and we do not have reason to believe the mercury content is not nearly normal in this type of fish.

Example 3.3.7

Estimate the standard error of x¯=0.287 ppm using the data summaries in Exercise 3.3.6. If we are to use the t distribution to create a 90% confidence interval for the actual mean of the mercury content, identify the degrees of freedom we should use and also find tdf.

Answer. The standard error: SE=0.06915=0.0178. Degrees of freedom: df=n-1=14.

Looking in the table in the Appendix for t-distributions in the df=14 row for the value 0.05 (for a 90% confidence interval - two tails) we identify (T14<-1.761)=0.05 thus t14=1.76 (recall the t-distribution is symmetric).

R> qt(0.95,df=14)

Example 3.3.8

Using the results of Exercise 3.3.6 and Example 3.3.7, compute a 90% confidence interval for the average mercury content of croaker white fish (Pacific).

Answer. x¯±t14SE 0.287± 1.76×0.0178(0.256,0.318). We are 90% confident that the average mercury content of croaker white fish (Pacific) is between 0.256 and 0.318 ppm.