Week 12
Week 12
Week 12
2
Hypotesis Testing
Methodology
Example :
The population mean age is μ = 50
The mean monthly cell phone bill of this city is μ =
$52
The proportion of adults in this city with cell phones is
π = .68
Hypotesis Testing
Methodology
Example 1:
•Claim: The population mean age is 50.
•H0: μ = 50, H1: μ ≠ 50
•Sample the population and find sample mean.
Populatio
n
Sample
Hypotesis Testing
Methodology
Types of H0 and H1
Possible
Error Hypothesis
in Decision MakingTest Outcomes
Actual Situation
Decision H0 True H0 False
Do Not No Error Type II Error
Reject H0 Probability 1 - α Probability β
Reject H0 Type I Error No Error
Probability α Probability 1 - β
Hypotesis Testing
Methodology
0
0
Represents critical value
Rejection region is
shaded
Lower-tail a
test
0
Hypotesis Testing
Methodology
H0: m ³ mo 𝑥
¯ −𝜇 𝑜
𝑧= 𝑧 ≤ − 𝑧𝛼
H1: m < mo 𝜎 /√𝑛
H0: m £ mo 𝑥
¯ −𝜇 𝑜
𝑧=
𝜎 /√𝑛
𝑧 ≥ 𝑧𝛼
H1: m > mo
H0: m = mo 𝑥
¯ −𝜇 𝑜 z z / 2 or
𝑧= z z / 2
H1: m ¹ mo 𝜎 /√𝑛
Z test of Hypotesis
For the mean (σ Known)
Example 2:
The manager of a fast food restaurant want to determine whether the
waiting time to place an order has changed in the past month from its
previous population mean value 4.5 minutes and standard deviation 1.2.
To examine it, he select 25 sample and the sample mean is 5.1.
Determine that the mean waiting time is 4.5. (level of significance
α=5%)
Z test of Hypotesis
For the mean (σ Known)
Example 2: (Cont.)
Step 1 : Hypotheses :
H0: μ = 4.5 H1: μ ≠ 4.5 (This is a two tailed test)
5.1 4.5
z 2.5
1.2 / 25
Step 6 : Because z=2.5 > 1.96, so reject H0 and conclude that there is
evidence that the population mean waiting time to place an
order has changed from its previous value of 4.5 minutes
Z test of Hypotesis
For the mean (σ Known)
Example 2: (Cont.)
Is the test statistic in the rejection region?
= 0.05/2 = 0.05/2
Reject H0
if
Reject H0 Do not reject H0 Reject H0
Z < -1.96
or Z > -Z= -1.96 0 +Z= +1.96
1.96;
otherwis
e do not Here, Z = 2.5 > 1.96, so the test
reject H0 statistic is in the rejection
region
t test of Hypotesis For
the mean (σ Known)
The Test Statistic and Critical Values
Hypothesis σ un known
Test Critical Values
Statistic
H0: m ³ mo 𝑥
¯ −𝜇 𝑜
𝑡𝑧=
≤ − 𝑧𝛼 𝑡 ≤ −𝑡 𝛼 ;𝑛−1
H1: m < mo 𝑠/ √ 𝑛
H0: m £ mo 𝑥
¯ −𝜇 𝑜
𝑡=
H1: m > mo 𝑧 ≥ 𝑠/
𝑧 √𝑛 𝛼
𝑡 ≥ 𝑡 𝛼 ; 𝑛−1
H0: m = mo t t / 2 or
z z𝑥
¯/ 2 −𝜇
or 𝑜
𝑡= t t / 2
H1: m ¹ mo /2 √ 𝑛
z z𝑠/
17
t test of Hypotesis For
the mean (σ Known)
Example 3:
The Saxon Home Improvement Company said that over the past five
years, the mean amount per sales invoice is $120. To inform the
amount change, this company get the 12 sample of sales invoice, there
are :
Ho rejected if
t test of Hypotesis For
the mean (σ Known)
Example 3: (Cont.)
Step 5 : Statistical Test
√
2
𝑛
( 𝑥 𝑖 − ¯𝑥 )
𝑠=√ 𝑠 = ∑
n
x 2
x i 112 .85 =20.80
i 1 n 𝑖=1 𝑛−1
𝟏𝟏𝟐.𝟖𝟓− 𝟏𝟐𝟎
𝒕= =−𝟏.𝟏𝟗𝟎𝟖
𝟐𝟎.𝟖𝟎/ √𝟏𝟐
Example 3: (Cont.)
Is the test statistic in the rejection region?
= 0.05
0 t0.05;121 1.7959
p po
Z
po (1 po )
n
√
H0 : p £ p o 𝑝 𝑜 (1 −𝑝 𝑜 )
H1 : p > p o 𝑛
z z
z z / 2 or
H0 : p = p o
z z / 2
H1 : p ¹ p o
z test of Hypotesis
For the mean (σ Known)
Example 4:
A marketing company claims that it receives 8% responses from
its mailing. To test this claim, a random sample of 500 were
surveyed with 30 responses. Test at the = .05 significance level.
z test of Hypotesis
For the mean (σ Known)
Example 4:
Step 1 : Hypotheses :
H0: p = 0.08
𝑝¯ =30/500=0.06
.025 .025
0 z
-1.96 1.96
-1.648
Step 6 : Because z=-1.648 > -1.96, so don’t reject Ho and There isn’t
sufficient evidence to reject the company’s claim of 8% response
rate.
SUBJECT MATTER EXPERT