Professional Documents
Culture Documents
% for the incumbent Sample Size
Illinois 57 1198
New York 62 554
According to the samples
57 . 0 =
IL
p
62 . 0 =
NY
p
Since the null here is no difference between the two proportions
We develop a pooled estimate based on both the samples
Note that the number of people in the sample, who are intending
to vote for the incumbent president in Illinois is
0.57*1198=683 (rounded)
Note that the number of people in the sample, who are intending
to vote for the incumbent president in New York is
0.62*554=343 (rounded)
Therefore
Atul N Roy Page 3
5856 . 0
554 1198
343 683
~
+
+
=
pooled
p
Recall that we are testing
NY IL A
NY IL o
p p H
p p H
=
=
:
:
At a 5% level of significance
If we use the symbols
1
n
for the sample size for Illinois
and
2
n
for the sample size for New York
then the test statistic is calculated by
( )
|
|
.
|
\
|
+
=
2 1
2 1
1 1
1
n n
p p
p p
z
pooled pooled
Since, in this case, the alternative is two sided, the P_value will
be both the tails combined.
Atul N Roy Page 4
( )
|
.
|
\
|
+
=
554
1
1198
1
5856 . 1 5856 .
62 . 0 57 . 0
z
z=-1.9755
Look at the left tail
The P_value is 2*0.024105717=0.048211434<0.05
Therefore we reject the null and conclude that there is a
difference
Atul N Roy Page 5
=
Or
( ) ( )
554
62 . 1 62 .
1198
57 . 1 57 .
96 . 1
+
= E
Or
0491 . 0 ~ E
The estimate for the difference is
05 . 0 62 . 0 57 . 0
2 1
= = p p
Therefore a 95% confidence interval is
( ) ( ) 0019 . 0 , 991 . 0 0491 . 0 05 . , 0491 . 0 05 . 0 = +
Atul N Roy Page 6
Losartan and
Conventional
Hypertensive
Therapy
Placebo and
Conventional
Hypertensive
Therapy
Hypotension 53 23
Sample Size 751 762
Note that
071 . 0
751
53
~ =
medication
p
03 . 0
762
23
~ =
placebo
p
0502 . 0
762 751
23 53
~
+
+
=
pooled
p
Therefore the test statistic is
( )
65 . 3
762
1
751
1
0502 . 1 0502 .
03 . 0 071 . 0
~
|
.
|
\
|
+
= z
The P_value is the area to the right of z=3.56 under the standard
normal curve.
The area to the left of z=3.56 is
Atul N Roy Page 8
Therefore the area to the right of z=3.65 or the P_value
Is 1-0.99986888=0.00013112
Since the P_value is very small, we conclude that there is a
higher incidence of hypotension in the medication group for this
experiment.