M2 Lec 9 Stats Sp2024 Mon
M2 Lec 9 Stats Sp2024 Mon
Danica Solina
School of Mathematical & Physical Sciences
• In this case, we are looking at the proportion of cases in a population that fall
in a particular category
• E.g. defective item, passed a test, flip a head, or vote for a particular candidate in an
election.
X number of successes
pˆ = =
n sample size
There are two approaches that we can take to perform hypothesis tests on
proportions:
• Calculate the p-value exactly
Recall that the p-value is the probability that we obtain the observed result or
one that is more extreme if the null hypothesis is true.
Rejection Regions
a) H1: p ≠ p0
b) H1: p > p0
c) H1: p < p0
where zα/2 can be obtained from page 5 of the statistical tables and formulae.
• In this case our null hypothesis will be that the proportions are the same.
• Our alternative may be one sided (the proportion in one population is greater
than the other), or two sided (the proportions of the two populations are
different).
H0: p2 - p1 = 0
H1: p2 - p1 ≠ 0
where
Math2: Statistics - Lecture 9 - 22
Confidence Intervals
• The approximate (1-α) confidence interval for the difference of two proportions
using the normal approximation is
1 1
1 − 𝛼 %CI = 𝑝
ෞ1 − 𝑝
ෞ2 ± 𝑧𝛼/2 𝑝(1
Ƹ − 𝑝)Ƹ +
𝑛1 𝑛2
where zα/2 can be obtained from the statistical tables for the normal distribution.
Two different types of polishing solution are being evaluated for possible use in
a tumble-polish operation for manufacturing intraocular lenses used in the
human eye following cataract surgery. 300 lenses were tumble-polished using
the first polishing solution, and 253 of these had no polished-induced defects.
Another 300 lenses were polished using the second solution, and 196 of these
were satisfactory. Is there any reason to believe that the two polishing solutions
differ?
• A sample poll of 500 voters from suburb A and 400 voters from suburb B
showed that 56% and 48% respectively were in favour of a given candidate.
Test
a) If there is any difference between the suburbs.
b) If the candidate is more preferred in suburb A than suburb B.
at α = 0.05.