Professional Documents
Culture Documents
Lec 20 - Testing For One Proportion
Lec 20 - Testing For One Proportion
Setup Xi Xn it Bernoulli p
X X t t Xn Binomial hip summarizes all data
Want to explore hypotheses about p
Ho p p us Hi p
E Po
Need test statistic
X M X M
CLT IN Coin a Nco
on f npf it
PNEIXI
1pct min
P I N Lo 1
p Po
test stat
i We can use Z fp.ci pain as a
7
Step 1 Define parameter R V and set up hypotheses ignoring
the data
Let p true proportion of U.S baby girls born in 2017
who were named Alexa
We want to test
Ho p 311 100000 us Hi P I 311 100000
at 2 0.05 level of significance
Step 2 Define the test statistic and find its distribution
assuming Ho is true
p Po Ho 101011
Test statistic Z
type pot
Step 3 Draw the sampling dist and decide how strange
critical value region
your data are using p value
52125000 0.00311
Observed test z
stat
f 0.00311 1 o 003111 25000
21925
7 2.925
N p value P Z C 2.925 2 Reject Ho if 22 Zo.us
I P Z 2.925 2.925 Z C Zo 05 1 64
1 0.9983
0.0017 LL
Step 4 Make a choice between Ho and th express this carefully
Since lil p value a 121 Za Za 1.64 we
A inequality X X V V
np na p 10 X X X U
Option 2
Hi P Po p value P Z z
H pepo p value P Z ez
Since 10.71 L Zo o
2 2.31 we
reject H
in favor of th at 2 0.01 level of significance
There seems to be statistically significance evidence
to support the death postponement claim
Optional Material
What if
normality conditions are not met Np to
n is small
n t Po 10
expensive to conduct experiments
p is small rare traits events
Recall X X t r
t Xn X Binomial in.pl summarizes all dat
n
p value
SI Let X of
females with migrains who benefit from
real acupuncture Then Xu Binomial 43 pl We want
to test
Ho p 0.043 us Hi p 0.043
at the x 0.05 level of significance
observing the
p value P same or more
1 Ho is true
extreme data
P X 10 17 0.043
It 4 0.957743
P X K p 0.043 0.043
T C 2 0.05
I 1 12 10
So we reject the in favor of H at x 0.05 level of sig
Binomial 43 0.0437