2 Tests for population means
2.1 Tests concerning a single mean
Introduction
In cases where tests involving measurements are performed, it is often possible to statistically hypothesize about the results. Suppose that the boiling point of a particular coolant used in car engines is claimed by a manufacturer to be C. Further suppose that a series of accurate measurements made in a laboratory using 8 random samples of the coolant are recorded as:
The mean of these results is C.
It is reasonable to ask whether, on the basis of the results obtained, we may claim that the boiling point of the coolant is greater than the assumed true boiling point of C. We will return to this problem later in this Workbook after looking at some general results.
General results
In general terms, we need to make predictions, based on calculation, about the parameters of the population from which the random sample is drawn. As illustrated above we calculate the sample mean . The statistical tests used to answer the above question depend on whether the variance of the population is known or not. Case (i) - Population variance known
Firstly we form the null hypothesis that there is no difference between the true population mean and the theoretical value That is:
It follows that
We may now set up an alternative hypothesis which can take one of the three forms:
for a two-tailed test | |
for a (right) one-tailed test | |
for a (left) one-tailed test |
In each case we reject in favour of the alternative hypothesis when lies in the remote tail of the standard normal distribution.
Example 1
Dishwasher powder is poured into the cartons in which it is sold by an automatic dispensing machine which is set to dispense 3 kg of powder into each carton. In order to check that the dispensing machine is working to an acceptable standard (i.e. does not need adjustment), a production engineer takes a random samples of 40 cartons and weighs them. It is found that the mean weight of the sample is 3.005 kg. It is known that the dispensing machine operates with a variance of and that the manufacturer of the powder is willing to rely on a 5% level of significance. Does the sample provide the engineer with sufficient evidence that the true mean is not 3.00 kg and so the machine requires adjustment?
Solution
Given that the dispensing machine can over-fill or under-fill the containers, the null and alternative hypotheses are:
Since the sample size is large ( ) and we can regard the population as infinite but with a known variance, we can calculate the relevant value of the test statistic by using the formula:
Hence, in this case:
and since we are performing a two-tailed test at the 5% level of significance and have found that , that is, is outside the range , we must reject the null hypothesis and conclude that the machine is not operating acceptably and needs adjustment.
Case (ii) - Population variance unknown
We have exactly the same situation as that described in Case (i) but do not know the value of the population variance Therefore we estimate it using
Looking at the table and comparing it with the values for a standard normal distribution we can see that, as the number of degrees of freedom becomes large, the -distribution gets closer to the standard normal distribution so that, for large samples, it makes little difference which we use. It is also true that, under most circumstances, even if we do not know that the distribution from which data are drawn is normal, a -test provides a good approximation when the sample size is reasonably large. In other circumstances, for example when normality cannot be assumed and the sample is small, we need to use other procedures, often non-parametric tests.
In summary we have the following.
Population | Variance | Sample size | Test |
Normal | Known | Small | Normal ( ) |
Normal | Known | Large | Normal ( ) |
Normal | Unknown | Small | |
Normal | Unknown | Large | but approximates |
Not Normal | Either | Small | Non-parametric |
Not Normal | Known | Large | approximates |
Not Normal | Unknown | Large | and approximate |
Non-parametric testing is covered in HELM booklet 45.
Example 2
The average useful life of a random sample of 33 similar calculator batteries made on a production line is found to be 99.5 hours continuous use. The sample variance is . Test the null hypothesis that the population mean lifetime is 100 hours against the alternative that it is less. Use the 5% level of significance.
Solution
The null and alternative hypotheses are:
Our test statistic is
In this case
and the number of degrees of freedom is
The table does not give values for 32 degrees of freedom but it does give values for 30 degrees of freedom
and for 40 and the values for 32 must be in between. The lower 5% points for 30 and 40 degrees of freedom
are
and
respectively. Clearly
our observed value of
is not significant and we do not have sufficient evidence to reject the null hypothesis that
Task!
Solve the problem given at the start of subsection 2 (page 11). Note the sample is small and you will have to estimate the population variance from the sample variance. Use the tabulated values of the -distribution given at the end of this Workbook in conjunction with the appropriate number of degrees of freedom.
The null and alternative hypotheses are:
The value of the sample variance is given by the formula
The test statistic is given by
At the 5% level of significance and using degrees of freedom, the value of from tables is 1.895. Since , we cannot reject the null hypothesis in favour of the alternative hypothesis. On the basis of the evidence available, we are not able to conclude that the boiling point of the coolant is greater than C.
2.2 General comments about tests concerning a population mean
- The sample mean is often used as a test statistic when testing a hypothesis concerning a population mean .
- Even if the population distribution cannot be assumed to be normal, the distribution of sample means can often be assumed to be normal. This depends on the sample size.
- The tests described above sometimes require us to assume that the population variance is known. This is often unrealistic and we turn to the -test to deal with cases where the population standard deviation is unknown and must be estimated from the data available.
2.3 General comments on the -test
- The test only applies when the underlying distribution can be assumed to be normal.
- The test is used when the standard deviation of the parent population has to be estimated.
- As the sample size get larger, the distribution approximates to the standard normal distribution.
- The distribution depends on the number of degrees of freedom, for a single sample or equal paired samples (see below), the number of degrees of freedom is always one less than the sample size.
2.4 Tests concerning paired data
Sometimes experimental data may be directly compared using an appropriate test. The following Example looks at experimental data concerning the throttle reaction times of two turbochargers fitted to an internal combustion engine.
Example 3
In order to test the hypothesis that two standard turbochargers and have the same throttle reaction times, a random sample of 7 cars were fitted with the turbochargers and the throttle reaction times measured. The results were as follows:
Car | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
Throttle Reaction time for | 0.223 | 0.212 | 0.201 | 0.205 | 0.216 | 0.211 | 0.209 |
Throttle Reaction time for | 0.208 | 0.207 | 0.203 | 0.204 | 0.205 | 0.202 | 0.206 |
0.015 | 0.005 | 0.002 | 0.001 | 0.011 | 0.009 | 0.003 | |
Solution
Let
be the
difference between the throttle reaction times of the two turbochargers. We assume that the distribution of
is normal. Our null
hypothesis is that
the mean of the population of differences, is zero. We must decide between the two hypotheses
The alternative hypothesis here indicates that we perform a two-tailed test.
Let be the sample mean of the seven observed differences. Then
The sample variance of the differences is
The value of the test statistic is
The number of degrees of freedom is and the critical value from the table is 2.447. Since we reject at the 5% level and conclude that the evidence suggests that there is a difference in the throttle reaction times between the two turbochargers.
Task!
Two different methods of analysis were used to determine the levels of impurity present in a particular aircraft quality aluminium alloy. Eight specimens were analysed using both methods. Does the available evidence suggest that both methods lead to the same results?
Alloy Specimen | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
Test 1 | 1.24 | 1.23 | 1.24 | 1.20 | 1.21 | 1.22 | 1.23 | 1.22 |
Test 2 | 1.23 | 1.20 | 1.20 | 1.21 | 1.20 | 1.20 | 1.21 | 1.25 |
Test1 Test2 | 0.01 | 0.03 | 0.04 | 0.01 | 0.01 | 0.02 | 0.02 | 0.03 |
Let be the difference between the two methods of analysis. We assume that the distribution of is normal. Our null hypothesis is that the mean of the population of differences, is zero. We must decide between the two hypotheses
The alternative hypothesis here indicates that we perform a two-tailed test.
Let be the sample mean of the eight observed differences. Then
The sample variance of the differences is
The value of the test statistic is
The number of degrees of freedom is and the critical value from the table is 2.306. Since we do not reject at the 5% level and conclude that there is insufficient evidence to show that there is a difference between the two methods.