H2 Mathematics (9758) Topic 23: Hypothesis Testing Tutorial Questions
H2 Mathematics (9758) Topic 23: Hypothesis Testing Tutorial Questions
H2 Mathematics (9758) Topic 23: Hypothesis Testing Tutorial Questions
1 The length of string in the balls of string made by a particular manufacturer has mean
m and variance 27.4 m2. The manufacturer claims that 300 . A random sample of
100 balls of string is taken and the sample mean is found to be 299.2 m. Test whether
this provides significant evidence, at the 3% level, that the manufacturer's claim
overstates the value of . 0.0632
27.4
Under H0 , X ~ N 300, approximately, by Central Limit Theorem
100
Since p-value = 0.0632 > 0.03, H0 is not rejected at the 3% level of significance. So
there is insufficient evidence to conclude that the manufacturer's claim overstates the
value of
2 A machine packs flour into bags. A random sample of eleven filled bags was taken and
the masses of the bags to the nearest 0.1 g were:
Tutorial
Obtain the mean and the variance of this sample. 1506.8, 0.109
Filled bags are supposed to have a mass of 1506.5 g. Assuming that the mass of a bag
has normal distribution with variance 0.16 g2, test whether the sample provides
Hypothesis
significant evidence at the 5% level that the machine produces overweight bags.
0.006 43
Explain what you understand by “5% level of significance” in the context of this
23:
question.
Topic
Using GC,
Sample mean, x = 1506.8
and sample variance = 0.330 292 = 0.109
Let X g be the mass of a filled bag.
To test H0 : = 1506.5 vs H1 : > 1506.5 GC skills:
Perform a 1–tail test at 5% level of significance
[VARS] [5:Statistics] [4: x]
0.16
Under H0 , X ~ N 1506.5,
11
3 Under usual conditions a certain type of melon seed produces melons with mean mass
1.85 kg and standard deviation 0.12 kg. A crop of these melons is grown under new
conditions and each melon in a random sample of 60 of the melons produced is weighed.
The mean mass of the sample is 1.877 kg.
(i) Assuming a normal distribution of masses, test at the 5% significance level whether
the data indicate that the mean mass of this crop differs from 1.85 kg. 0.081 4
(ii) If the test had been for an increase in the mean at the 5% significance level, what
would the result of the test have been? 0.040 7
Tutorial
(iii) State, giving a reason, whether it is necessary for the masses to have a normal
distribution for the test to be valid.
Concepts/ Skills required
Testing
Formulate hypothesis.
Find p-value of 2-tail and 1-tail z-tests.
Know when Central Limit Theore is necessary.
Hypothesis
(i) Let X kg be the mass of a melon which grows under new conditions and
23:
Topic
0.122
Under H0 , X ~ N 1.85,
60
4 Bottles of a particular brand of washing-up liquid are said to contain 500 ml. A random
sample of 50 bottles is taken and the volumes of liquid in the bottles are measured. The
volumes, x ml, are summarised by
( x 500) 35.8 and ( x 500) 150.5 .
2
(i) Find unbiased estimates of the population mean and variance. 499, 2.55
(ii) Assuming a normal distribution, test at the 5% significance level whether the
population mean volume is less than 500 ml. 0.000 758
(iii) State, giving a reason, whether it is necessary to assume a normal distribution for
the test to be valid.
Tutorial
1 y 1
2
35.8
2
n 1
y n 49 150.5 50 2.548310204 2.55 (3sf)
2
(ii) Let ml be the actual population mean volume of liquid per bottle.
2.5483
Under H0 , X ~ N 500,
50
Since p-value = 0.000 758 < 0.05, H0 is rejected at the 5% level of significance. So
there is sufficient evidence to show that the population mean volume is less than
500 ml.
(iii) No, it is not necessary to assume a normal distribution for the test to be valid.
5 A company sells balls of yarn. A manager claims that the average length of yarn is at
least 300 m. To test this claim, a random sample of 100 balls of yarn is checked and the
lengths of yarn per ball, x m, are summarised by
( x 300) 60 and ( x 300) 1240 .
Testing
1204
(i) Find unbiased estimates of the population mean and variance. 299.4,
99
Hypothesis
(ii) Test at the 5% significance level whether the manager’s claim is valid. 0.042 7
Concepts/ Skills required
Find unbiased estimates of population mean and variance from ∑ (x – h) and ∑ (x – h)2.
23:
Topic
Formulate hypothesis.
Find p-value of 1-tail z-tests.
1204
Under H0 , X ~ N 300, 99 approximately, by Central Limit Theorem
100
Using z-test, p-value = 0.042 670
(a) There is significant evidence at the 10% significance level that the population mean
talk-time is less than 5 hours. (i)
Testing
(b) There is significant evidence at the 5% significance level that the population mean
talk-time is not 5 hours. (ii)
Concepts/ Skills required
Hypothesis
Formulate hypothesis.
Find p-value of 1-tail z-tests.
Know the effect of changing the significance level.
Know the effect of changing the alternative hypothesis.
23:
Topic
n 90
Unbiased estimate of population variance, s 2 (Sample Variance) (12.0352 )
n 1 89
Let X h denote the standby time of a randomly chosen battery.
To test H0 : 36.0 vs H1 : 36.0
90
(12.0352 )
Under H0 , X ~ N 36, 89 approximately, by Central Limit Theorem
90
H0 : = 5
H1 : < 5
Given that H0 is rejected at the 5% level of
significance,
we have p1 0.05
H0 : = 5
Tutorial
H1 : 5
Clearly p2 = 2 p1
Testing
[Further clarifications:
23:
Topic
7 From the claims received by the company, over a long period of time, a random sample
of 120 is taken. The values of the claims, $x, are summarised by
2
( x 1000) 5320 , ( x 1000) 8 282 000 .
(i) Find, correct to 2 decimal places, the unbiased estimates of the population mean
and variance. 1044.33, 67 614.68
(ii) What do you understand by the term ‘unbiased estimate’?
(iii) The population mean is denoted by $ . Using the sample data, a significance test
of the null hypothesis 1000 against the alternative hypothesis 1000 is
carried out at the % level of significance. Find the set of values of for which
the null hypothesis will be rejected. : 6.18
Concepts/ Skills required
Find unbiased estimates of population mean and variance from ∑ (x – h) and ∑ (x – h)2.
Define “unbiased estimate”.
Find range of values of α from critical region of 2-tail z-tests.
x y 1000 1000
y
n
5320 1
1000 1044 1044.33 (2dp)
120 3
Unbiased estimate of the population variance
Tutorial
1 y
2
y n
2
s s 2
y
2
n 1
Testing
1 5320
2
119 120
23:
Topic
67614.68
Under H0 , X ~ N 1000, approximately, by Central Limit Theorem
120
8 Mass-produced washers have thicknesses which are normally distributed with mean
3 mm and standard deviation 0.2 mm. During a check on the manufacturing process a
random sample of 25 washers is taken from production and the mean thickness mm is
calculated. Find the interval in which the value of must lie in order that the hypothesis
that the production mean thickness is 3 mm will not be rejected in favour of the
hypothesis that the mean thickness is not 3 mm at the 5% level of significance.
2.92 < x < 3.08
Concepts/ Skills required
Formulate hypothesis.
Find range of values of x from critical region of 2-tail z-tests.
0.22
Under H0 , X ~ N 3,
25
Testing
Using z-test 0
-1.95996 1.95996
23:
Topic
x 3
z -value
0.2
25 x 3
5
For H0 not to be rejected,
1.95996 25 x 3 1.95996
2.9216 x 3.07839
2.92 x 3.08
(v) Explain, with justification, how the population variance of the discharge times will
affect the conclusion made by the Marketing Manager. σ < 0.987
Testing
(i) A 2-tail test because the Production Manager wants to test whether there is a
change in the average discharge time using the alternative process.
(ii) Central Limit Theorem states that the sample means will have a normal
distribution when the sample size is sufficiently large.
656.9
(iii) unbiased estimate of population mean, t 13.138 13.1
50
unbiased estimate of population variance,
1 656.82
s2 8648.64 0.37322 0.373
49 50
Let X be the discharge time of a new battery using the alternative process.
13.2 13
z-value =
1.2816
40
Testing
0.2
40 0.98702
1.2816
So the Marketing Manager will be able to conclude that the average discharge
Hypothesis
The population mean lifetime is denoted by hours. The null hypothesis 150 is to
be tested against the alternative hypothesis 150 . Find the p-value of the test and state
the meaning of this p-value in the context of the question. 0.0975
A second random sample of 50 batteries of this type is tested and the lifetime, y hours,
of each battery is measured, with results summarised by
y 7331 , y 1100565 .
2
Combining the two samples into a single sample, carry out a test, at the 10% significance
level of the same null and alternative hypotheses. 0.0499
Concepts/ Skills required
Find unbiased estimates of population mean and variance.
Find p-value using 1-tail z-test.
Find unbiased estimates of population mean and variance from combined data.
10317 1 x 1
2
10317 2
x x
2
147.38571 s =2
= 1540231 284.82008
70 n 1 n 69 70
H0 : = 150
H1 : < 150
Perform a 1–tail test.
X 150
Under H0 ,Test statistic: Z approximately, by Central Limit Theorem
S/ n
OR
9.75% is the smallest probability that we wrongly support the claim that the mean
lifetime of the battery is less than 150 h.
Testing
17648 1 176482
w 147.06667 ; s
2
w 2640796 120 381.2056
120 119
H0: 150
H1: 150
Since p-value = 0.0499 < 0.10, H0 is rejected at the 10% level of significance. To there
is sufficient evidence that the mean lifetime of the batteries is less than 150 hours.
11 Bags of salted cashew nuts display net contents 100 g. The manufacturer knows that the
standard deviation of the population is 1.6 g.
A customer claimed that the bags have been lighter in recent purchases, so the factory
quality control manager decided to investigate. He sampled n bags and found that their
mean weight was 99.4 g. He performed a 1% significance test and concluded that the
customer’s claim was not valid.
Find the largest possible value of n. 38
Concepts/ Skills required
Find range of values of n.
H0 : = 100
H1 : < 100
Perform a 1–tail test at 1% level of significance
X 100
Under Ho, Test statistic: Z 1.6
Tutorial
99.4 100
1.6
2.3263
n
23:
Topic
n 6.2036
n 38.484
Largest n is 38
12 An alpaca breeder wants to produce fleece which is extremely fine. In 2008, his herd
had mean fineness 22.3 microns with standard deviation σ microns. The standard
deviation remains relatively constant over time. In 2012, a sample of 80 alpacas from
the herd was randomly selected, and the mean fineness was 21.2 microns.
Find the range of values of the standard deviation which will indicate a significant
change in mean fineness at the 5% two-tailed significance test. 2.89
Concepts/ Skills required
Find range of values of σ.
Let μ microns be the actual mean fineness of fleece in 2012 and σ micron be its standard
deviation.
H0 : = 22.3
H1 : ≠ 22.3
21.2 22.3
1.95996
80
Tutorial
| | 5.0198
Since 0 , 5.02
Testing
13 A farmer grows a new variety of potato. A random sample of eighty roots of the new
variety is taken and the crop, x kg per root, is measured. It is found that the mean value
23:
Topic
of x is 3.20. Based on the publicity for the new variety and his knowledge of his land, the
farmer had thought that the mean crop would be 3.30 kg per root. Assuming that the
population standard deviation is 0.50 kg per root, test, at the 4% level, whether the sample
provides significant evidence that the farmer’s hypothesis about the crop from the new
variety is incorrect. 0.0736
14 A supermarket manager investigated the lengths of time that customers spent shopping
in the store. The time, in minutes, spent by each of a random sample of 150 customers
was measured, and the sample mean and variance of the time spent were found to be
19.140 minutes and 33.854 squared minutes respectively. Test at the 5% level of
significance, the hypothesis that the mean time spent shopping by the customers is
20 minutes, against the alternative that it is less than this. 0.0356
Let X min be the length of time that customer spent shopping in the store
and min be the actual population mean length of time that customer spent shopping in the
store.
150
(33.854) 34.08 (2dp)
149
Testing
H0 : 20
H1 : 20 (1-tail test)
Hypothesis
Level of Significance: 5 %
23:
Topic
X 20
Test statistic: Z
S
n
1 x
2
n 1
x n
2
1 303.42
1615.96
63 64
H0 : 5
Tutorial
H1 : 5 (1-tail test)
X 5
Under Ho, Test statistic: Z
S
n
Hypothesis
16 A manufacturer claims that the average life of his electric light bulbs is 2000 hours. A
random sample of 64 bulbs is tested and the life x (in hours) recorded. The results
obtained are as follows:
x 127 808 , ( x x ) 9 694.6 .
2
Is there sufficient evidence, at the 2% level of significance, that the manufacturer is over-
estimating the length of life of his light bulbs? 0.0265
H0 : 2000
17 N07/II/7
A large number of students in a college have completed a geography project. The time,
x hours, taken by a student to complete the project is noted for a random sample of 150
Testing
Find, correct to 2 decimal places, unbiased estimates of the population mean and
variance. 30.84, 33.73
Test, at the 5% significance level, whether the population mean time for a student to
complete the project exceeds 30 hours. 0.0382
23:
Topic
State, giving a reason, whether any assumptions about the population are needed in order
for the test to be valid.
1 x
2
n 1
x n
2
1 46262
147691 33.72590604 33.73 (2dp)
149 150
Let hours be the actual population mean time taken for a student to complete the project.
H0 : 30
H1 : 30 (1-tail test)
X 30
[Since 2 is unknown and n = 150 is large, by Central Limit Theorem, ~ N 0,1
S
n
approximately.]
Tutorial
18 Salt is packed in bags which the manufacturer claims contains 25 kg each, on average.
A random sample of 80 bags is examined and the mass, x kg, of the contents of each
Testing
(i) Estimate the population mean and variance of the mass of contents of a bag.
25.3, 0.960
(ii) Test, at the 10% level of significance, whether the manufacturer is understating the
average mass of the contents of a bag.
23:
Topic
27.2
(i) Unbiased estimate of population mean, x = t 25 25 25.34
80
1 27.7 2
Unbiased estimate of population variance, sx st = 85.1 0.96015
2 2
79 80
(ii) H0 : = 25
19 N12/2/6
On a remote island a zoologist measures the tail lengths of a random sample of 20
squirrels. In a species of squirrels known to her, the tail lengths have mean 14.0 cm. She
carries out a test, at the 5% significance level, of whether squirrels on the island have the
same mean tail length as the species known to her. She assumes that the tail lengths of
squirrels on the island are normally distributed with standard deviation 3.8 cm.
(i) State appropriate hypotheses for the test.
The sample mean tail length is denoted by x cm.
(ii) Use an algebraic method to calculate the set of values of x for which the null
hypothesis would not be rejected. (Answers obtained by trial and improvement
from a calculator will obtain no marks.) 12.3< <15.7
Tutorial
(iii) State the conclusion of the test in the case where x 15.8 .
Let X cm be the tail length of a squirrel on the island.
Testing
H1 : 14.0
23:
Topic
(iii) From (ii) result, for the case when x = 15.8, H0 is rejected at the 5% level of
significance. So there is sufficient evidence to conclude that the squirrels on
the island do not have the same mean tail length as the species known to her.
Tutorial
Testing
Hypothesis
23:
Topic