Intro To Hypothesis Testing
Intro To Hypothesis Testing
Testing
Statistical Inference
Hypothesis testing is the second form of statistical inference.
It also has greater applicability.
The jury does not know which hypothesis is true. They must make a
decision on the basis of evidence presented.
Nonstatistical Hypothesis Testing
In the language of statistics convicting the defendant is
called
P(Type I error) = α
P(Type II error) = β
Concepts of Hypothesis Testing (1)
There are two hypotheses. One is called the null hypothesis
and the other the alternative or research hypothesis. The usual
notation is:
pronounce
d
H “nought”
H0: — the ‘null’ hypothesis
The null hypothesis (H0) will always state that the parameter
equals the value specified in the alternative hypothesis (H1)
Example 11.1
The manager of a department store is thinking about establishing
a new billing system for the store's credit customers.
We know:
n = 400,
= 178, and
σ = 65
What to do next?!
Example 11.1 COMPUTE
α = P(Type I error)
α = P( > )
Example 11.1 COMPUTE
Since our sample mean (178) is greater than the critical value we
calculated (175.34), we reject the null hypothesis in favor of H1, i.e.
that: µ > 170 and that it is cost effective to install the new billing
system
Example 11.1 The Big Picture
H0: = 170
H1: > 170 =175.34
=178
Reject H0 in favor of
Standardized Test Statistic
An easier method is to use the standardized test statistic:
.05
0 Z
H0: = 170
H1: > 170
Z.05 =1.645
z = 2.46
Reject H0 in favor of
p-Value of a Test
The p-value of a test is the probability of observing a test
statistic at least as extreme as the one computed given that
the null hypothesis is true.
p-value
P-Value of a Test
p-value = P(Z > 2.46)
p-value =.0069
z =2.46
Interpreting the p-value
The smaller the p-value, the more statistical evidence exists
to support the alternative hypothesis.
If the p-value is less than 1%, there is overwhelming
evidence that supports the alternative hypothesis.
If the p-value is between 1% and 5%, there is a strong
evidence that supports the alternative hypothesis.
If the p-value is between 5% and 10% there is a weak
evidence that supports the alternative hypothesis.
If the p-value exceeds 10%, there is no evidence that
supports the alternative hypothesis.
We observe a p-value of .0069, hence there is overwhelming
evidence to support H1: > 170.
Interpreting the p-value
Overwhelming Evidence
(Highly Significant)
Strong Evidence
(Significant)
Weak Evidence
(Not Significant)
No Evidence
(Not Significant)
p=.0069
Interpreting the p-value
Compare the p-value with the selected value of the
significance level:
A
1 Z-Tes
Conclusions of a Test of Hypothesis
If we reject the null hypothesis, we conclude that there is
enough evidence to infer that the alternative hypothesis is
true.
The bill lists an address and customers are expected to use their
own envelopes to return their payments.
H1:μ < 22
H0:μ = 22
IDENTIFY
SSA Envelope Plan
The test statistic is
x −µ
z=
σ/ n
We wish to reject the null hypothesis in favor of the alternative
only if the sample mean and hence the value of the test statistic is
small enough.
and
x=
∑x i
=
4,759
= 21 .63
220 220
x −µ 21.63 − 22
z= = = −.91
σ/ n 6 / 220
p-value = P(Z < -.91) = .5 - .3186 = .1814
COMPUTE
SSA Envelope Plan
Click Add-Ins, Data Analysis Plus, Z-Estimate: Mean
COMPUTE
SSA Envelope Plan
A
1 Z-Tes
INTERPRET
SSA Envelope Plan
Conclusion: There is not enough evidence to infer that the
mean is less than 22.
All advertise that their rates are lower than AT&T's, and as a result
their bills will be lower.
H1: µ ≠ 17.09
H0: µ = 17.09
Example 11.2 IDENTIFY
-z.025 +z.025 z
0
Example 11.2 COMPUTE
We find that:
Since z = 1.19 is not greater than 1.96, nor less than –1.96 we
cannot reject the null hypothesis in favor of H1. That is
“there is insufficient evidence to infer that there is a
difference between the bills of AT&T and the competitor.”
Two-Tail Test p-value COMPUTE
A
1 Z-Tes
Summary of One- and Two-Tail
Tests…
n=1,000
173.38
175.35
Compare β at n=400 and n=1,000…
Developing an Understanding of Statistical
Concepts
The calculation of the probability of a Type II error for n = 400 and
for n = 1,000 illustrates a concept whose importance cannot be
overstated.
And hence, we make better decisions in the long run. This finding
lies at the heart of applied statistical analysis and reinforces the
book's first sentence, "Statistics is a way to get information from
data."
Developing an Understanding of Statistical
Concepts
Throughout this book we introduce a variety of applications
in finance, marketing, operations management, human
resources management, and economics.
Recall that
H0:μ = 22
H1:μ < 22
n = 220
σ=6
α = .10
SSA Example Calculating β
Stage 1: Rejection region
Recall that
H0:μ = 17.09
H1:μ ≠ 17.09
n = 100
σ = 3.87
α = .05
Example 11.2 Calculating β
Stage 1: Rejection region (two-tailed test)
z > zα / 2 or z < − zα / 2
z > z.025 = 1.96 or z < − z.025 = − 1.96
x − 17.09
> 1.96 ⇒ x > 17.85
3.87 100
x − 17.09
< − 1.96 ⇒ x < 16.33
3.87 / 100
Example 11.2 Calculating β
Stage 2: Probability of a Type II error
1. Type of data
interval, ordinal, nominal
2. Problem objective
Problem Objectives
1.Describe a population
2. Compare two populations
3. Compare two or more populations
4. Analyze the relationship between two
variables
5. Analyze the relationship among two or
more variables
Table 11.2
Problem Objective Nominal Ordinal Interval
Describe a population 12.3. 15.1 N/C 12.1, 12.2