Copia de CW 1-8 Hypothesis Testing For P and Mu PINTO - ABRIL

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

STATISTICS II – CLASSWORK

SONIA PINTO- NATALIE ABRIL

HYPOTHESIS TESTING FOR P and µ

Facts: n= 300 subjects, x= 27 subjects wrong result, α =0.05 , p=10 % ,


x 27
^p= = =0.09
n 300

1. Claim hypothesis

H 0 : p=0.10
H 1 : p< 0.10

2. Significance
α =0.05
3. Test Statistic
Since it’s a proportion it is a Z
^p − p
Z=


pq
n
0.09−0.10
Z=

√(0.10)(0.90)
300
Z=−0.58

4. Decision Rule (search in the negative Zscore table)


Critical value −Z α =−Z 0.05 =¿-1.645 P- value= P (Z< Test statistic)
P- value= P ( Z< -0.58)
P-value= 0.2810 (from table t)

If (p-value <
α ¿ so ( p−value<0.05 ) then reject Ho
Since 0.2810<0.05 FALSE so fail to
reject Ho

5. Conclusion
There is not statistical evidence to infer that less than 10% of the test results are
wrong, at 0.05 significance level.

Facts: x=172 baby boys, n=211 babies, alpha=0.01

1) Claim Hypothesis
H 0 : p=0.5
H 1 : p> 0.5

One-tailed test to the right

2) Significance, alpha=0.01

3) Test Statistic
^p − p
Z=

√ pq
n

0.815−0.5
Z= =9.15

√(0.5)(0.5)
211

4) Decision Rule

Critical value Z α =Z 0.01=2.33 P- value= P (Z¿ Test statistic)


P- value= P ( Z ¿9.15)
Reject Ho P-value= 0.0001
9.15
0.01
If (p-value < α ¿ then reject Ho
Since 0.0001 < 0.01 TRUE so Reject Ho .
2.33

5) Conclusion
There is statistical evidence to infer that after using the YSORT method the
probability to get a baby boy is greater than 50%, at 0.01 significance level (with
1% error). In other words, the results suggest that the YSORT method of gender
selection appear to work.

Do it alone!
1) Claim Hypothesis
H 0 : p=2.5
H 1 : p< 2.5

One-tailed test to the left

2) Significance, alpha=0.05

3) Test Statistic
¯
x −miu
Z=
o
square root n

2.4991−2 .5
Z= =−0.332
0.0165
square root 37

4) Decision Rule

Critical value −Z α =−Z 0.0 5 =−1.64 5 P- value= P (Z< Test statistic)


-0.332 P- value= P ( Z ¿−0.332)
Fail to P-value= 0.3707
0.05 Reject Ho
If (p-value < α ¿ then reject Ho
Since 0.3707 < 0.05 FALSE so Fail to
-1.645 Reject Ho .

5) Conclusion
There is not statistical evidence to prove that the mean weight for pennies of post-1983 is
less than 2.5 gr., at 0.05 significance level.

Facts: sigma=0.62°F, n=106 subjects, x bar= 98.20°F, alpha=0.05


Do it yourself

Do it yourself

You might also like