Chapter 20
Chapter 20
There is no way to say yes or no with 100% certainty. But we may evaluate the
strength of support to the hypothesis that "the coin is biased".
Example: We contradict the statement that the coin is fair. Three ways are
possible: the coin is biased toward heads (proportion of heads is bigger than
tails). Or – it is less. Or – simply – not equal to 50%
1. H0: the parameter= given number, H1: the parameter ≠ given number (2 tails)
2. H0: the parameter= given number, H1: the parameter < given number (left tail)
3. H0: the parameter= given number, H1: the parameter > given number (right
tail
Example: Set up the hypotheses
Summarizing “Testing a coin”: If p is the probability that the coin turns “Heads”
state both hypotheses
Page 1 of 9
STT200 Chapter 20 KM AM
HO: coin is fair, p = 0.5 (population proportion of heads is the same as tails)
H1: there are three ways to disagree with Ho. We can say:
coin is biased toward heads, p > 0.5 (more heads than tails were
observed), or
coin is biased toward tails p<0.5(less heads than tails), or
coin is biased p≠0.5 (the numbers of heads and tails are
not nearly equal)
Exercises:
For each of the following claims, determine the null and alternative hypotheses.
State whether the test is two-tailed, left-tailed or right-tailed.
a) In 2008, 62% of American adults regularly volunteered their time for
charity work. A researcher believes that this percentage is different
today.
Attitude: Assume that the null hypothesis HO is true and uphold it, unless data
strongly speaks against it.
Assumptions: We assume that all conditions for CLT are met: large enough
random sample (more than 10 successes and failures), but at the same time,
“small enough” sample (less than 10% of the population).
Method: By CLT the statistic p-hat has approximately normal distribution with the
center at population proportion p and standard deviation
Page 2 of 9
STT200 Chapter 20 KM AM
Test mechanics: From data compute the value of a proper test statistics. In our
example test statistic is the z-score computed for your observed statistic 𝑝̂ :
( pˆ pO )
z
SD ( p0 )
( pˆ pO ) (.38 .50 )
z 2.4
SD( pˆ ) 0.05
Our observed proportion 0.38 has been translated into a z-score z=-2.4
How far down is z=-2.4 from 0? How likely is to see z=-2.4 or less assuming HO
were true, that is, that the coin is not biased? To answer this we’ll find P(z<-2.4)
In this problem let’s agree to α=1%: if P-value is larger than 1%, then our
observed statistic does not give sufficient evidence that the coin is unfair. If the
P-value is less than the level of significance α, then we got sufficient evidence to
reject Ho.
Page 3 of 9
STT200 Chapter 20 KM AM
Hypotheses:
Attitude: Assume that the null hypothesis HO is true and uphold it, unless data
strongly speaks against it.
Test statistic:
ˆ pO
p
z
SD ( pO )
pO qO
where pˆ is a sample proportion, and SD( pˆ )
n
Page 4 of 9
STT200 Chapter 20 KM AM
Let zo be the observed value of the test statistic. The way we compute the P-
value depends on HA
Decision:
if the P-value is smaller than or equal α, we reject HO at the significance
level α,
Classwork
Page 5 of 9
STT200 Chapter 20 KM AM
Test an appropriate hypothesis and state your conclusion. Perform the test at
significance level=5%.
Page 6 of 9
STT200 Chapter 20 KM AM
*********************************************************************
For a possible bonus: “critical region”, or
“classical” method.
Page 7 of 9
STT200 Chapter 20 KM AM
a) Reject/fail to reject H0
b) Support / do not support the alternative, that is, the claim that …..
Page 8 of 9
STT200 Chapter 20 KM AM
Example:
A researcher obtains a random sample of 1000 people and finds that 534 are in
favor of the banning cell phone use while driving, so p-hat = 534/1000. Does
this suggest that the majority, that is, more than 50% of people favor the policy?
In other words, would it be unusual to obtain a sample proportion of 0.534 or
higher from a population whose proportion is 0.5? What is convincing, or
statistically significant, evidence?
When observed results are unlikely under the assumption that the null hypothesis
is true, we say the result is statistically significant. When results are found to
be statistically significant, we reject the null hypothesis.
Step 3 – Compute test statistic using p0, not p-hat, to compute standard error
.534 .5
Z0 2.15
.5 0.5 /1000
Modern:
Page 9 of 9
STT200 Chapter 20 KM AM
P-value (the probability that your observation is AT LAST as extreme as you found
it if the null hypothesis is true)
Its value equals the area of the corner(s) cut by the test statistic(s):
P(p-hat>0.534)=normalcdf(.534, 1, 0.5, 0.5*0.5 /1000 0.0158
Conclusion: Reject null hypothesis. Support alternative hypothesis which said that the majority
of the population favors banning cell phones while driving.
Classical method:
Basing on our data, at 5% significance level we reject null hypothesis that there is a fifty-fifty
support. We have enough evidence to support the claim that the majority does support new
policy.
Page 10 of
9