Professional Documents
Culture Documents
(If you
determine its
a one tail test: (b) In a report, it was stated that the average age of all hospital patients was
53 years. The hospital director wants to test whether this figure is an
look at sample
underestimate.
mean)
Solution
(a) Let be the mean factory assembly time (in seconds) after the
introduction of the new assembly process.
H0: 84 against H1: 84
(b) Let be the average age (in years) of the hospital patients.
H0 : 53 against H1 : 53
Tutorial Q4
A bank has branches in two cities A and B in the same country. The manager of
the bank claims that the waiting time for a customer to open a new account
with the bank is not more than 5 minutes.
H0 : 5 against H1 : 5
w
w 823 5.486666667
n
150
Note: w 5 corresponds with H1 : 5
Lecture example 2
A machine packs sand into bags. The mass of a filled bag follows a
normal distribution with mean 1500 g and variance 0.16 g2. A sample of
10 filled bags is randomly chosen and found to have a mean mass of
1499.8 g.
(a) Test whether the sample provides significant evidence, at the 1%
level of significance, that the machine packs bags that are
underweight.
Solution
(a)
H1 : 1500
n = 10, x = 1499.8, 0.16 0.4 .
0.16
X 1500
~ N(0, 1) under H0.
Test statistic, Z
0.4
10
Using z-test, z 1.58113883 .
p-value P(Z 1.58113883) = 0.0569.
Conclusion: Since p-value = 0.0569 > 0.01 , we do not reject H0 at
the 1% level of significance. There is insufficient evidence to say
that the machine packs bags that are underweight.
3
Tutorial Q10b
A random sample of 50 packets of Nilo Bar snacks is weighed and the mass,
x grams, is recorded. The results are summarised by
(x 150) = 250,
(x 150) = 3000.
H 0 : 0
H 1 : 0
Given that H 0 is rejected in favour of H1, find the set of possible values of
0 .
Solution
x 150 150
x=
n
250
150 145
50
2
2
x 150 1
250
1
2
s =
3000
35.714
x 150
n 1
n
50
49
Test statistic: Z
X 0
35.714
50
~ N 0, 1
z 2.576
145 0
z 2.576
or
2.576
35.714
50
0 147.18
145 0
2.576
35.714
50
0 142.82
0 : 0 142.82 or 0 147.18
Identify the
need to use
Central Limit
Theorem for
distribution of
sample mean.
(n large and
population not
known to be
normal)
Lecture example 5
Clara, who has diabetes, has to monitor her blood glucose levels which vary
throughout a week. The results from a sample of 75 readings, x, taken at
random times over a week, are summarized by
x 511.5 and x 2 4027.89 .
(ii)
Solution
(ii) Since the sample size, n, is sufficiently large, by the Central Limit
Theorem, the mean blood glucose level is approximately normally
distributed, so the alternative hypothesis 0 can still be accepted.
conduct t-tests
for a
population
mean based on
a sample taken
from a normal
population with
unknown
variance and a
small sample
size.
Lecture example 7
Assumption
Solution
446
422
372
445
430
422
436
438
441
442
Assuming no spillage and that the amount of coffee dispensed follows a normal
distribution, test at the 5% level of significance, whether the machine is
dispensing too little coffee.
phrasing.
Using data lists
vs stats values.
X 440
t (11).
S
n
Comparing the
differences
between 1 tail
and 2 tail test,
Tutorial Question 7
In a test at the 5% significant level it is found that there is significant evidence
that the population mean talk-time is less than 5 hours. Using only this
information, and giving a reason in each case, state whether each of the
following statements is
(i) necessarily true, (ii) necessarily false,
(ii) or (iii) neither necessarily true nor necessarily false.
(a) There is significant evidence at the 10% significance level that the
population mean talk-time is less than 5 hours.
(b)
There is significant evidence at the 5% significance level that the
population mean talk-time is not 5 hours.
Solution
(a) Test at 10% level of significance: the p-value remains the same; hence if pvalue 0.05 , it is definitely 0.1 , and we reject H 0 . This statement is
necessarily true.
Comparing the
differences
between z- test
and t-tests
If the null hypothesis is not rejected when a t-test is carried out, explain
whether it is necessarily true that the same conclusion is obtained when
a z-test is carried out at the same significance level.
N(0,1)
t( )
pz
pt
Test statistic
100
t( )
Reason:
For a fixed level of significance, , z < t (refer to graph above).
When H0 is not rejected for a t-test, there are two possible conclusions
for a z-test:
1) z < test statistic < t : H0 will be rejected if z-test is used.
2) test statistic < z < t : H0 will not be rejected if z-test is used.
Common
Assumptions