Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
LECTURE 7
INTRODUCTION TO HYPOTHESIS
TESTING
Outline
8-2
Statistical Methods
8-3
Hypothesis Testing
I believe the
population Reject
mean age is 50 hypothesis!
Population (hypothesis). Not close.
Random
sample
Mean
X = 20
8-4
Hypothesis Testing
8-5
What’s a Hypothesis?
8-6
Example of hypothesis
8-7
Research Hypothesis
8-8
Null Hypothesis
• Theory put forward because
Believed to be true or used as starting point for
testing. So we assume Ho is true and use the
information specified in Ho as a starting point for
testing.
Not been proved
• Opposite of Research Hypothesis
• Convention: contain equality sign
• Usually phrased as “no effect”, “no difference”
• Called H0
8-9
Setting up hypotheses
8 - 10
Identifying Hypotheses
Steps
1.Example Problem: Test That the
Population Mean Is Not 3
2.Steps
State the Question Statistically ( 3)
State the Opposite Statistically ( = 3)
Must Be Mutually Exclusive & Exhaustive
Select the Alternative Hypothesis ( 3)
Has the , <, or > Sign
State the Null Hypothesis ( = 3)
8 - 11
8 - 12
What Are the Hypotheses?
8 - 13
8 - 14
8 - 15
Jury trial example
8 - 16
Possible conclusions of a
hypothesis test
2 possible conclusions:
• Do not reject Ho: test is not significant
• Reject Ho: test is significant
8 - 17
8 - 18
Possible errors in testing
8 - 19
H0: Innocent
8 - 20
Significance level
• Denoted a
• Probability of making Type I error
• Equals Total Area of Rejection Region
• Should be decided by researcher at
start
• Example Values Are .01, .05, .10, etc.
8 - 21
One-tailed vs. Two-tailed
tests
8 - 22
A problem
H0: = a
Ha: > a
8 - 25
One
population
Mean Proportion
Z Test
Z Test T Test
8 - 26
One-Tailed Z Test
for Mean ( Known)
1.Assumptions
Population Standard Deviation Is Known
Population Is Normally Distributed
If Population Is Not Normal, Large Sample
Size (so that the CLT holds) Is Required (In
This Case, The Sampling Distribution of
Sample Mean Will Be Approximately Normal)
2. Alternative Hypothesis Has < or > Sign
3. Z-Test Statistic
8 - 27
One-Tailed Z Test
for Mean Hypotheses
H0:=a Ha: < a H0:=a Ha: > a
Reject H0 Reject H0
a a
a X a X
One-Tailed Z Test
Finding Critical Z
To make rejection decision, we need to find out
critical value. Converting from to Z makes this
process easier.
What Is Za given a = .025?
a = .025
8 - 29
Right-Tailed Z Test
Example
Does an average box of
cereal contain more
than 368 grams of
cereal? A random
sample of 25 boxes
showedX = 372.5.
The company has
specified to be 15
368 gm.
grams. Test at the .05
level. Assume normal
8 - 30 population.
Right-Tailed Z Test
Solution
Test Statistic:
H0: = 368
Ha: > 368
a = .05
n = 25
Critical Value(s): Decision:
Do not reject at a = .05
Conclusion:
No evidence average
is more than 368
8 - 31
Left-tailed Z test
8 - 32
Writing conclusions
2 cases:
•Reject Ho:
•Do not reject Ho:
8 - 33
Two-Tailed Z Test
for Mean ( Known)
1.Assumptions
Population Standard Deviation Is Known
Population Is Normally Distributed
If Population Is Not Normal, Large Sample
Size (n 30) Is Required (In This Case,
The Sampling Distribution of Will Be
Approximately Normal)
2. Alternative Hypothesis Has Sign
3. Z-Test Statistic:
8 - 34
Two-Tailed Z Test
Example
Does an average box of
cereal contain 368
grams of cereal? A
random sample of 25
boxes showedX =
372.5. The company
has specified to be
15 grams. Test at the 368 gm.
.05 level. Assume
8 normal
- 35 population.
Two-Tailed Z Test
Solution
Test Statistic:
H0: = 368
Ha: 368
a .05
n 25
Critical Value(s): Decision:
Do not reject at a = .05
Conclusion:
No evidence
average is not 368
8 - 36
Hypothesis testing
common pitfalls
Choose or change hypotheses after looking at
data
8 - 37
Conclusion
8 - 38