Stat 104 – Lecture 26 Alternatives p p p

advertisement
Stat 104 – Lecture 26
Alternatives
• H0 : p = po
– HA: p < p o, P-value = Pr < z
– HA: p > p o, P-value = Pr > z
– HA: p ≠ p o, P-value = Pr > |z|
1
Alternatives
• H0 : p = po
• H A : p ≠ po
– If z is a negative value, P-value
=2(Probability less than z)
– If z is a positive value, P-value
=2(Probability greater than z)
2
More on Testing
• 500 randomly selected U.S. adults
were asked the question: “Would
you be willing to pay much higher
taxes in order to protect the
environment?”
• 216 answered yes
3
1
Stat 104 – Lecture 26
More on Testing
• Is this convincing evidence that the
proportion of all U.S. adults who
are willing to pay higher taxes is
different from 50%?
4
Step 1 – Set-Up
• p is the proportion of all U.S.
adults who are willing to pay
higher taxes in order to protect the
environment
– H0: p = 0.50
– HA: p ≠ 0.50
5
Step 2
• Check conditions
–Random sampling condition
–10% condition
–Success/Failure condition
6
2
Stat 104 – Lecture 26
Step 3 – Sample Evidence
• Calculate the test statistic.
p̂ − p 0
0 . 432 − 0 .5
=
0 . 5 (0 . 5 )
p 0 (1 − p 0 )
500
n
− 0 . 068
= − 3 . 04
z=
0 . 0224
z=
7
Step 4 – Probability value
• Calculate the P-value.
• The probability of z being less than
–3.04 is 0.0012.
• The P-value is 2(0.0012) = 0.0024
8
Step 5 – Results
• Reject the null hypothesis because
the P-value is less than 0.05.
• There is convincing evidence that
the proportion of the U.S. adult
population willing to pay more
taxes to protect the environment is
different from 50%.
9
3
Stat 104 – Lecture 26
Example
• Population: Registered voters in
the U.S.
• Parameter: Proportion of U.S.
voters who believe global warming
exists. Unknown!
10
Example
• Sample: 900 randomly selected
registered voters nationwide. FOX
News/Opinion Dynamics Poll, Jan.
30-31, 2007.
• Statistic: 737 of the 900 voters in
the sample (82%) believe global
warming exists.
11
Approximately Normal
• 95% of the time the sample
proportion, p̂ , will be between
p − 1.96
p( 1 − p )
p( 1 − p )
and p + 1.96
n
n
12
4
Stat 104 – Lecture 26
Standard Deviation
• Because p, the population proportion
is not known, the standard deviation
SD( pˆ ) =
p(1 − p)
n
is also unknown.
13
Standard Error
• Substitute p̂ as our estimate (best
guess) of p.
• The standard error of p̂ is:
SE ( pˆ ) =
pˆ (1 − pˆ )
n
14
Confidence Interval for p
• We are 95% confident that p will
fall between
p̂ − 1.96
p̂( 1 − p̂ )
p̂( 1 − p̂ )
and p̂ + 1.96
n
n
15
5
Stat 104 – Lecture 26
Example
p̂ = 0.82
p̂(1 − p̂ )
0.82(0.18)
=
= 0.013
n
900
0.82 − 1.96(0.013) to 0.82 + 1.96(0.013)
0.82 − 0.025 to 0.82 + 0.025
0.795 to 0.845
16
Interpretation
• We are 95% confident that the
population proportion of all
registered voters in the U.S. who
believe global warming exists is
between 79.5% and 84.5%.
17
Interpretation
• Plausible values for the population
parameter p.
• 95% confidence in the process that
produced this interval.
18
6
Stat 104 – Lecture 26
95% Confidence
• If one were to repeatedly sample at
random 900 registered voters and
compute a 95% confidence interval
for each sample, 95% of the
intervals produced would contain
the population proportion p.
19
Simulation
http://statweb.calpoly.edu/chance/ap
plets/Confsim/Confsim.html
20
21
7
Download