Professional Documents
Culture Documents
tirunehmulu1@gmail.com
January, 2024
1
At the end of this chapter the student will be able to:
5
In general, hypothesis testing in statistics involves the following
steps:
6
Choosing the Alternative Hypothesis (HA)
rejected.
If HO is Then HA is
μ = A (single mean) μ ≠ A or μ < A or μ > A
P = B (single proportion) P ≠ B or P < B or P > B
Notation:
Accept HO Reject HO
Null hypothesis
(Fail to reject HO)
10
Level of Significance, α
11
One tail and two tail tests
• In a one tail test, the rejection region is at one end of the distribution or the other.
• Consider the situation when HA includes the symbol “ > or < ”. That is,
• In a two tail test, the rejection region is split between the two tails.
• Consider the situation when HA includes the symbol “≠”. That is,
HA : μ ≠ _ HA : P ≠ __ HA : μx - μy ≠ ___
12
• The most frequently used values of α and the
corresponding critical values of Z are:
13
Level of Significance and the Rejection Region
e.g. The average survival year after cancer diagnosis
is less than 3 years.
14
Steps in testing hypothesis
15
3.Hypotheses cont’d
Rules for stating statistical hypotheses
=,≥, or ≤.
•That is, the two together exhaust all possibilities regarding the
17
5. Select the level of significance (α):
18
7. Calculation of test statistic (zcalc, tcalc):
calculate the test statistic based on step 4 and compare it with the
critical value.
It is rejected if the computed value of the test statistic falls in the
rejection area. i.e. Reject Ho if, Z cal > Z tab OR t cal> t tab
It is not rejected if the computed value of the test statistic falls in the
non-rejection area. i.e. Accept or don't reject Ho if, Z cal < Z tab OR t cal< t
tab
19
9. Conclusion :
10. P-values:
20
I. Testing a hypothesis about the mean of a
population
21
I. Testing a hypothesis about the mean of a population
• Case II : H0: μ ≤ μ0
HA: μ > μ0
e.g. we want to test that the population mean is greater than 50
23
4.Test Statistic :
• Case 1: population is normal or approximately normal
σ2 is known σ 2 is unknown
( n large or small)
n large n small
X - o
Z
t
X - o
n X - o s
Z
s n
n
• Case2: If population is not normally distributed and n is large
• i) If σ2 is known ii) If σ 2 is unknown
X - o X - o
Z
Z
n s
n
24
5.Decision Rule:
i) If HA: μ μ 0
Reject H 0 if Z > Z1-α/2 or Z < - Z1-α/2 (when use Z - test) Or
Reject H 0 if T > t1-α/2,n-1 or T < - t1-α/2,n-1 (when use T- test)
25
Note
• Z1-α/2 , Z1-α are tabulated values obtained from Z
table
• t1-α/2 , t1-α are tabulated values obtained from t table
with (n-1) degree of freedom (df)
6.Decision :
27
Example
28
Solution
3-Hypotheses:
• H0 : μ=30
• HA: μ 30
29
5. Level of significance α=0.05
6.Decision Rule
• The alternative hypothesis is H A: μ
30
Reject H0 if Zcal >Ztab or Zcal< - Ztab
Generally when HA: μ μ0
Reject H0 if │Zcal│> Z tab
6. Critical value
• Since the HA is two sided we divide α by 2
Z tab= Z1-α/2= Z1-0.05/2 =Z0.975 =1.96 in right tail and -1.96 in left
tail
30
7. Calculation of test statistic
• Zcal = 27-30 = -2.12
(√20/√10)
8. Statistical Decision:
• We reject H0 ,since -2.12 is in the rejection region .
i.e. │-2.12│> 1.96
9. Conclusion
• We can conclude that the mean age (μ) is different from 30
years
•Use α=0.01.
32
Solution
3. Hypotheses: H0 :μ ≤ 140
HA: μ > 140
4.Test
Z
XStatistic:
- o
s 146 140 6
n 27 =
• = 2.1548
= 2.78 = Zcal
157
33
5.Level of significance α=0.01.
6. Decision Rule:
we reject H0 if Zcal>Z1-α
35
Table: number of days until recovery for subjects with
muscle injury
Subject Days Subject Days
1 14 11 28
2 9 12 24
3 18 13 24
4 26 14 2
5 12 15 3
6 0 16 14
7 10 17 9
8 4
9 8
10 21
36
Hypothesis Testing:
A population proportion:
37
A single population proportion:
4.Test Statistic: pˆ p0
Z
p0 q0
n 39
5.Decision Rule:
i) If HA: P ≠ P0
• Reject H0 if Z>Z1-α
40
Example
41
Solution:
3.Hypotheses:
H0: P ≤ 0.063
HA: P > 0.063 42
• :
4.Test Statistic
ˆ p0
p 0.08 0.063
Z 1.21
p 0 q0 0.063(0.937)
n 301
5.Decision Rule: α=0.05
Reject H0 if Z>Z1-α
Where Z1-α = Z1-0.05 =Z0.95= 1.645
• Interpretation ?????
43
THANK YOU!!!!