You have learnt to ask an RQ, design a study, classify and summarise the data, construct confidence intervals, and perform a hypothesis test for one proportion. In this chapter, you will learn to:
A diagram showing the six steps of research, arranged in a cycle: Ask, Design, Collect, Classify and summarise, Analyse, Report. Step 5 (Analyse) is highlighted, captioned βTests: one meanβ.
The average internal body temperature is commonly believed to be \(37.0\)^o^C (\(98.6\)^o^F). This value is based on data over \(150\) years old [237]. Since then, the methods for measuring internal body temperature have changed substantially:
Thermometers used by Wunderlich were cumbersome, had to be read in situ, and, when used for axillary measurements [i.e., under the armpit]... required \(15\) to \(20\mins\) to equilibrate. Todayβs thermometers are smaller and more reliable and equilibrate more rapidly. In addition, the mouth and rectum have replaced the axilla [armpit] as the preferred sites for monitoring body temperature.
For this reason, the reported internal body temperature (recorded by newer instruments, in different locations) may have changed since the 1860s. Therefore, we could ask:
A decision is sought about the value of the population mean body temperature. Presumably, the intended population is all people, though the population, in practice, may depend on what population is represented by the available data.
The population mean internal body temperature will never be known: the internal body temperature of every person alive would need to be measured, and even those not yet born. A sample must be studied.
Define the parameter as \(\mu\text{,}\) the population mean internal body temperature (in ^o^C). A sample of people can be used to determine if evidence exists that the population mean internal body temperature is not \(37.0\)^o^C, using the decision-making process (Sect. SectionΒ 25.3).
Step 1 of the decision-making process is to assume a value for the parameter. The established claim is that the population mean internal body temperature is \(37.0\)^o^C, so we assume this value. This assumption becomes the null hypothesis:
The RQ asks if the population mean internal body temperate \(\mu\) is equal to \(37.0\)^o^C, or if it has changed. The RQ does not specifically ask if \(\mu\) is smaller than \(37.0\)^o^C, or larger than \(37.0\)^o^C. This means the alternative hypothesis is two-tailed:
Section27.3Expectations: sampling distribution for \(\bar{x}\)
Step 2 of the decision-making process is to describe what values of the statistic (in this case, the sample mean \(\bar{x}\)) can be expected if the value of \(\mu\) is assumed to be \(37.0\) (the value specified in \(H_0\)). In other words, the sampling distribution of \(\bar{x}\) needs to be described.
The sample mean varies from sample to sample, and varies with a normal distribution (whose standard deviation is called the standard error) under certain conditions (given in Sect. SectionΒ 27.8). The sampling distribution of \(\bar{x}\) was described in Sect. SectionΒ 23.3, and repeated below.
Definition27.1.Sampling distribution of a sample mean.
When the population standard deviation is unknown, the sampling distribution of the sample mean is (when certain conditions are met; Sect. SectionΒ 23.5) described by:
The mean of this sampling distributionβthe sampling meanβhas the value \(\mu\text{.}\) The standard deviation of this sampling distribution is called the standard error of the sample means, denoted \(\text{s.e.}(\bar{x})\text{.}\) When the population standard deviation \(\sigma\) is unknown, the value of the standard error happens to be (see Equation (27.1))
Hence, the population for the study (and RQ) should be redefined accordingly. From software output (Fig. FigureΒ 27.15), the sample mean is \(\bar{x} = 36.8052\)^o^C and the sample standard deviation is \(s = 0.4073\)^o^C. Using this value of \(s\text{,}\) the sampling distribution of \(\bar{x}\) can be described, if \(\mu\) really was \(37.0\text{:}\)
A picture of this sampling distribution (Fig. FigureΒ 27.3) shows how the sample mean varies when \(n = 130\text{,}\) for all possible samples when \(\mu = 37.0\text{.}\) For example, the value of \(\bar{x}\) will be larger than \(37.0357\)^o^C about \(16\)% of the time (using the \(68\)β\(95\)β\(99.7\) rule) if \(\mu\) really is \(37.0\text{.}\)
Figure27.3.The distribution of sample mean body temperatures, if the population mean is \(37.0^\circ\)C and \(n = 130\text{.}\) The grey vertical lines are \(1\text{,}\)\(2\) and \(3\) standard deviations from the mean.
Step 3 of the decision-making process is to evaluate the observations. Locating \(\bar{x} = 36.8052\) on the sampling distribution (Fig. FigureΒ 27.5) shows that this observed sample mean is, relatively speaking, extremely low: a sample mean this low is very unlikely to occur in any sample of \(n = 130\) when \(\mu = 37.0\text{.}\) How many standard deviations is \(\bar{x}\) away from \(\mu = 37.0\text{?}\) Compute:
\begin{equation*}
\frac{\text{statistic} - \text{mean of the distribution}}{\text{std dev. of the distribution}} = \frac{36.8052 - 37.0}{0.035724} = -5.453.
\end{equation*}
This is like a \(z\)-score: it measures the number of standard deviations that the value is from the mean. However, it is not a \(z\)-score; it is a \(t\)-score. Both \(t\)- and \(z\)-scores measure the number of standard deviations that a value is from the mean. Here the value is a \(t\)-score, because the population standard deviation \(\sigma\) is unknown, and the sample standard deviation is used instead to compute \(\text{s.e.}(\bar{x})\text{.}\)
Figure27.5.The sample mean of \(\bar{x} = 36.8041^\circ\)C is very unlikely to be observed in any sample of size \(n = 130\text{,}\) if \(\mu = 37.0^\circ\)C. The standard deviation of the distribution is \(\text{s.e.}(\bar{x}) = 0.035724\text{.}\)
\begin{equation*}
t = \frac{36.8052 - 37.0}{0.035724} = -5.453.
\end{equation*}
The observed sample mean is more than five standard deviations below the population mean, which is highly unusual based on the \(68\)β\(95\)β\(99.7\) rule (Fig. FigureΒ 27.5). This is very persuasive evidence that \(\mu\) is not \(37.0\text{.}\)
In general, when the sampling distribution has an approximate normal distribution and the sample standard deviation is used to compute the standard error, the \(t\)-score is
\begin{equation}
t
=
\frac{\text{sample statistic} - \text{mean of the sampling distribution}}
{\text{standard error of the sampling distribution}}
=
\frac{\bar{x} - \mu}{\text{s.e.}(\bar{x})}.\tag{27.2}
\end{equation}
As seen in Sect. SectionΒ 26.7, a \(P\)-value quantifies how unusual the observed sample statistic is, after assuming \(H_0\) is true. Since \(t\)-scores and \(z\)-scores are very similar, the \(P\)-value can be approximated using the \(68\)β\(95\)β\(99.7\) rule and a diagram, or approximated using \(z\)-tables (Appendix SectionΒ B.3). Usually, however, software is used to compute the \(P\)-value. \(t\)-scores and \(z\)-scores with the same value produce almost the same \(P\)-values, except for small sample sizes.
Both methods produce approximate \(P\)-values only, since the approximations are based on using \(z\)-scores rather than \(t\)-scores. Usually, software is used to determine precise \(P\)-values for \(t\)-scores (Fig. FigureΒ 27.16). The output (under the heading p) shows that the \(P\)-value is indeed very small: less than \(0.001\) (written \(P < 0.001\)).
Some software reports a \(P\)-value of 0.000, which really means that the \(P\)-value is zero to three decimal places. Since \(P\)-values can never be exactly zero, we should write \(P < 0.001\text{:}\) that is, the \(P\)-value is smaller than \(0.001\text{.}\)
This \(P\)-value means that, if \(\mu = 37.0\text{,}\) a sample mean as low as \(36.8052\) would be very unusual to observe (from a sample size of \(n = 130\)). And yet, we did. Using the decision-making process, this implies that the initial assumption (i.e., \(H_0\)) is contradicted by the data: we observed something extremely unlikely if \(\mu = 37.0\text{.}\) That is, there is very persuasive evidence that the population mean body temperature is not\(37.0\)^o^C.
As seen in Sect. SectionΒ 26.7, \(P\)-values measure the probability of observing the sample statistic (or something more extreme), assuming the population parameter is the value given in \(H_0\text{.}\) For the body-temperature data then, where \(P < 0.001\text{,}\) the \(P\)-value is very small, so very strong evidence exists that the population mean body temperature is not \(37.0\)^o^C.
Communicating the results of any hypothesis test requires an answer to the RQ, a summary of the evidence used to reach that conclusion (such as the \(t\)-score and \(P\)-value, stating if the \(P\)-value is one- or two-tailed), and some sample summary information (including a CI). For the body-temperature example, write:
The sample provides very strong evidence (\(t = -5.45\text{;}\) two-tailed \(P < 0.001\)) that the population mean body temperature is not\(37.0\)^o^C (\(\bar{x} = 36.81\text{;}\)\(95\)% CI: \(36.73\) to \(36.88\)^o^C; \(n = 130\)).
The answer to the RQ: the sample provides very strong evidence that the population mean body temperature is not \(37.0\)^o^C. The alternative hypothesis is two-tailed, so the conclusion is that the population mean body temperature is not equal to\(37.0\)^o^C.
The difference between the value of \(37.0\)^o^C and the sample mean of \(36.81\)^o^C is small in absolute terms, and is probably of little practical importance for most applications. Notice that the CI does not include the value of \(\mu = 37.0\text{.}\)
Assumption. Write the null hypothesis about the parameter (based on the RQ): \(H_0\text{:}\)\(\mu = 37.0\text{.}\) In addition, write the alternative hypothesis: \(H_1\text{:}\)\(\mu \ne 37.0\text{.}\) (This alternative hypothesis is two-tailed.)
Expectation. The sampling distribution describes what to expect from the statistic if the null hypothesis is true. The sampling distribution is an approximate normal distribution.
Observation. Compute the \(t\)-score: \(t = -5.45\text{.}\) The \(t\)-score can be computed by software, or using the general equation in Equation (27.2).
Decision. Determine if the data are consistent with the assumption, by computing the \(P\)-value. Here, the \(P\)-value is much smaller than \(0.001\text{.}\) The \(P\)-value can be computed by software, or approximated using the \(68\)β\(95\)β\(99.7\) rule. The conclusion is that there is very strong evidence that \(\mu\) is not \(37.0\text{.}\)
All hypothesis tests have underlying conditions to be met so that the results are statistically valid. For a test of one mean, this means that the sampling distribution must have an approximate normal distribution so that \(P\)-values can be found.
This condition ensures that the distribution of the sample means has an approximate normal distribution (so that, for example, the \(68\)β\(95\)β\(99.7\) rule can be used). Provided the sample size is larger than about \(25\text{,}\) this will be approximately true even if the distribution of the individuals in the population does not have a normal distribution. That is, when \(n \ge 25\) the sample means generally have an approximate normal distribution, even if the data themselves do not have a normal distribution. The units of analysis are also assumed to be independent (e.g., from a simple random sample).
If the statistical validity conditions are not met, other similar options include a sign test or a Wilcoxon signed-rank test [86], or using resampling methods [94].
The hypothesis test regarding body temperature is statistically valid since the sample size is larger than \(25\) (\(n = 130\)). (The data, as displayed in Fig. FigureΒ 27.2, do not need to come from a population with a normal distribution.)
To answer this RQ, [298] studied \(n = 224\) students at Griffith University (GU), finding a sample mean IQ of \(111.19\) and a standard deviation of \(14.21\text{.}\) Is this evidence that GU students have a higher mean IQ than the general population? The hypotheses are:
This test is one-tailed, since the RQ asks if the mean IQ of GU students is greater than \(100\text{,}\) the one-tailed \(P\)-value will be in the tail corresponding to larger IQ scores (i.e., to the right of the mean). (Writing \(H_0\text{:}\)\(\mu \le 100\) is also correct (and equivalent), though the test still proceeds as though \(\mu = 100\text{,}\) the largest option permitted by \(\mu\le100\text{.}\))
We do not have the original data, but the summary information is sufficient: \(\bar{x} = 111.19\) with \(s = 14.21\) from a sample of size \(n = 224\text{.}\) The sample mean is higher than \(100\text{,}\) but since sample means vary, the difference may be just due to sampling variation. The sample means vary with a normal distribution, with mean \(100\) and a standard deviation of
This \(t\)-score is huge: a sample mean as large as \(111.19\) would be highly unlikely to occur in any sample of size \(n = 224\text{,}\) simply by sampling variation, if the population mean really was \(100\text{.}\) Since the alternative hypothesis is one-tailed, and \(\mu > 100\) specifically, the \(P\)-value is the area in the right-side tail of the distribution only (Fig. FigureΒ 27.10); it will be extremely small. This is very persuasive evidence to support the alternative hypothesis.
Very strong evidence exists in the sample (\(t = 11.78\text{;}\) one-tailed \(P < 0.001\)) that the population mean IQ in students at Griffith University is greater than \(100\) (mean \(111.19\text{;}\)\(95\)% CI: \(109.29\) to \(113.09\text{;}\)\(n = 224\)).
Since the sample size is much larger than \(25\text{,}\) this conclusion is statistically valid. The sample is not a random sample from the population of all GU students (the students are mostly first-year, undergraduate psychological science students). However, these students may be somewhat representative of all GU students. In any case, the results probably apply to first-year, undergraduate psychological science students at GU.
The difference between the general population IQ of \(100\) and the sample mean IQ of GU students is only small: about \(11\) IQ units (less than one standard deviation). Possibly, this difference has very little practical importance, even though the statistical evidence suggests that the difference cannot be explained by chance.
IQ scores are designed to have a standard deviation of \(\sigma = 15\) in the general population. If this applies for university students too (and we do not know if it does), the standard error is \(\text{s.e.}(\bar{x}) = \sigma/\sqrt{n} = 15/\sqrt{130} = 1.0022\text{,}\) and the test-statistic is then a \(z\)-score:
Describe the sampling distribution, which describes what to expect from the sample mean based on this assumption: under certain statistical validity conditions, the sample mean varies with:
The \(t\)-value is like a \(z\)-score, and so an approximate \(P\)-value can be estimated using the \(68\)β\(95\)β\(99.7\) rule or tables, or found using software. Use the \(P\)-value to make a decision, and write a conclusion.
The usual recommendation for a safe gap between travelling vehicles in traffic (a βheadwayβ) is at least\(1.9\secs\) (often rounded to \(2\secs\) for the public). [347] studied \(n = 28\) streams of traffic in Birmingham, Alabama found the mean headway was \(1.1915\secs\text{,}\) with a standard deviation of \(0.231\secs\text{.}\) The researchers wanted to test if the mean headway in Birmingham was less than the recommended \(1.9\secs\text{.}\)
[183] studied driving speeds in Malaysia, and recorded the speeds of vehicles on various roads. One RQ was whether the mean speed of cars on one particular road was the posted speed limit of \(90\kms.\xhs^{-1}\text{,}\) or whether it was higher.
The researchers recorded the speed of \(n = 400\) vehicles on this road, and found the mean and standard deviation of the speeds of individual vehicles were \(\bar{x} = 96.56\) and \(s = 13.874\kms.\xhs^{-1}\text{.}\)
A competitive slalom competitor completed \(n = 30\) attempts on a \(38.8\ms\) kayak slalom course to assess the accuracy of a GPS tracking system [282]. The trials produced a mean distance, recorded by the GPS, as \(36.54\ms\) with a standard deviation of \(2.07\ms\text{.}\)
[218] conducted a study of humanβautomation interaction with automated vehicles. They were interested in whether the average mental demand of βdriversβ of automated vehicles was higher than the average mental demand for ordinary tasks.
In the study, the \(n = 22\) participants βdroveβ (in a simulator) an automated vehicle for \(40\mins\text{.}\) While driving, the drivers monitored the road for hazards. The researchers assessed the βmental demandβ placed on these drivers, where scores over \(50\) βtypically indicate substantial levels of workloadβ (p. 471). For the sample, the mean score was \(84.00\) with a standard deviation of \(22.05\text{.}\)
Health departments recommend that hot water be stored at \(60\)^o^C or higher, to kill legionella bacteria (for example, Health and Safety Executive, UK).
The mean temperature was \(56.6\)^o^C, with a standard error of \(0.4\)^o^C. Is there evidence the mean water temperature in Quebec is too low to kill legionella bacteria?
[Dataset: CherryRipe] A Cherry Ripe is a popular Australian chocolate bar. In 2017, 2018 and 2019, I sampled some Cherry Ripe Fun Size bars. The packaging claimed that the Fun Size bars weigh \(14\gs\) (on average).
(This study was also seen in Exercise ExerciseΒ 23.9.6.) [236] asked \(n = 199\) paramedics to estimate the amount of blood on four different surfaces. When the actual amount of blood spilt on concrete was \(1 000\mLs\text{,}\) the mean guess was \(846.4\mLs\) (with \(s = 651.1\mLs\)).
[279] compared the average sleep times of Taiwanese pre-school children to the recommendation (of at least\(10\hs\) per night). Using the summary of the data for weekend sleep-times (Table TableΒ 27.12), do girls get less than\(10\hs\) of sleep per night, on average? Do boys?
[Dataset: LHconc] [254] assessed the accuracy of two instruments from a clinical laboratory, by comparing the reported luteotropichormone (LH) concentrations to known, pre-determined values using \(n = 36\) samples. Use hypothesis tests to determine how the instruments perform, for both high- and mid-level LH concentrations (using the information in Table TableΒ 27.13).
[Dataset: PizzaSize] (This study was also seen in Exercise ExerciseΒ 23.9.10.) In 2011, Eagle Boys Pizza ran a campaign that claimed that Eagle Boys pizzas were βReal size \(12\)-inch large pizzasβ [291]. Eagle Boys made the data from the campaign publicly available. Using the summary of the diameters of a sample of \(125\) of their large pizzas (Fig. FigureΒ 27.14), test the companyβs claim:
Draw the normal distribution that shows how the sample mean pizza diameter would vary by chance, even if the population mean diameter was \(12\) inches.
[302] studied the length of sleep each night for a βlarge and representative sample of Norwegian adolescentsβ (p. 1) aged \(16\) and \(17\) years of age. The recommendation is for adolescents to have at least \(8\hs\) of sleep each night.
In the sample of \(n = 3 972\) individuals, the mean amount of sleep on schools days was \(6\hs\)\(43\mins\) (i.e., \(403\mins\)), with a standard deviation of \(87\mins\text{.}\) On non-school days, the mean amount of sleep was \(8\hs\)\(38\mins\) (i.e., \(518\mins\)), with a standard deviation of \(98\mins\text{.}\)