Week 7 Slides - Notes
Week 7 Slides - Notes
INTRODUCTION TO HYPOTHESIS
TESTING
2
INTRODUCTION TO HYPOTHESIS TESTING
3
A RESEARCH PROBLEM
• Research problem:
• Infant touch intervention
• Designed to increase child growth/weight
!
• Here is what we know: Standard error = !! =
"
• μ = 26, σ = 4
• M = 30, n = 16
!
• So, σM = =1
"#
8
HYPOTHESIZED DISTRIBUTION OF SAMPLE MEANS
22 23 24 25 26 27 28 29 30 M
μ = 26 9
THE LOGIC OF HYPOTHESIS TESTING
# %&
z =
!!
-4 -3 -2 -1 0 +1 +2 +3 +4 z-score
μ = 26 11
THE LOGIC OF HYPOTHESIS TESTING
12
THE LOGIC OF HYPOTHESIS TESTING
• Bottom line
• We assume no difference between means
• This is the ” ___________________________”
• If true, then M should be close to μ
• If M is NOT close to μ, then our assumption of no
difference (the null hypothesis) must be wrong
• Therefore, we conclude that there is likely to be a
difference worth paying attention to
13
THE LOGIC OF HYPOTHESIS TESTING
14
THE LOGIC OF HYPOTHESIS TESTING
16
TWO BRANCHES OF STATISTICS
Statistics
Descriptive Inferential
Characterizes attributes Generalize from a
of samples and/or sample to an population
populations
17
HYPOTHESIS TESTING
20
HYPOTHESIS TESTING STEPS
22
STEP 1: STATE THE STATISTICAL HYPOTHESES
26
STEP 2: CREATE DECISION RULE
27
STEP 2: CREATE DECISION RULE
! = .05
Likely
Unlikely p = .95 Unlikely
p = .025 p = .025
-z μ +z 28
STEP 2: CREATE DECISION RULE
• ___________________ value
• Boundary between likely/unlikely outcomes
• Critical value of z for two-tailed hypothesis, when ! = .05
• z ± 1.96
• Critical region
• Area beyond the critical value
• Decision rule
• Reject H0 when observed test-statistic equals or exceeds critical
value (falls within critical region)
• Otherwise, retain H0 29
STEP 2: CREATE DECISION RULE
Retain H0
Reject H0 Reject H0
Critical value
z = -1.96 μ z = +1.96
Critical region 30
STEP 3: COLLECT DATA, COMPUTE TEST STATISTIC
! %$!"# %
z =
%$
where !! = '
• Two possibilities
33
STEP 4: MAKE A DECISION
% '
!! = !! = !! = 1
' )*
Then compute z-score:
! %$ *+ % ,-
z =
%$
z =
.
z=4
36
LET’S PRACTICE
Retain H0
Reject H0 Reject H0
38
LET’S PRACTICE
39
OUTCOMES OF HYPOTHESIS TESTING
40
OUTCOMES OF HYPOTHESIS TESTING
Reject H0 Type I
Correct
ERROR
Decision
Type II
Retain H0 Correct
ERROR
(also called
“fail to reject”) 42
OUTCOMES OF HYPOTHESIS TESTING
• Type 1 error
• Rejecting H0 when it’s actually true
• A “______________________”
• Example: Claiming brown sugar affects your cookie recipe when it
really does not
• Type II error
• Retaining H0 when it’s actually false
• A “_______________”
• Example: Claiming brown sugar has no effect on your cookie recipe
when it really does 43
OUTCOMES OF HYPOTHESIS TESTING
• Zombie example:
44
OUTCOMES OF HYPOTHESIS TESTING
• Zombie example:
45
OUTCOMES OF HYPOTHESIS TESTING
• Zombie example:
46
OUTCOMES OF HYPOTHESIS TESTING
• Zombie example:
47
OUTCOMES OF HYPOTHESIS TESTING
Is it a zombie?
Should you kiss it?
48
OUTCOMES OF HYPOTHESIS TESTING
1. You could not kiss the figure in the distance and later find out that
it was NOT, in fact, a zombie. Good job.
2. You could kiss the figure in the distance and later find out it was,
in fact, a zombie. Good job.
49
OUTCOMES OF HYPOTHESIS TESTING
BUT ALSO,
Two different types of error :
1. You could choose not to kiss and find out that the figure in the
distance was a zombie. (How you find out is up to your
imagination…)
2. You could choose to kiss, only to find out that the figure in the
distance was a human named Bob, who knows the location of a
nearby Twinkie warehouse, but is creeped out and offended at
your kiss so he leaves you and doesn’t take you to the Twinkies.
50
ZOMBIE HYPOTHESIS TESTING
51
OUTCOMES OF HYPOTHESIS TESTING
52
THE TRADEOFF
• You could wait until you get closer to make your decision
• Risk brains being eaten
• You could go ahead and kiss
• Risk offending human
53
ASSUME H 0 IS TRUE
54
ASSUME H 0 IS TRUE
55
ASSUME H 1 IS TRUE
56
ASSUME H 1 IS TRUE
57
MINIMIZING ERROR
CRIMINAL STATISTICAL
INVESTIGATION INVESTIGATION
True Status of H0
No Effect Effect
H0 true H0 false
Type I Error Correct
! 1–β
Reject H0
Decision Probability of T1 error “power”
Correct Type II Error
Retain H0 1-! Β
(also called
“fail to reject”) Level of confidence Probability of T2 error
61
ASSUMPTIONS FOR HYPOTHESIS TESTS WITH Z-SCORES
• Random sampling
• Independent observation
• Value of σ is not changed by the treatment
• Normally distributed sampling distribution
62
VARIATIONS ON THE HYPOTHESIS TEST
63
DIRECTIONAL VS. NONDIRECTIONAL HYPOTHESES
66
MORE ON EFFECT SIZE
• Size of effect
• Reliability of effect
67
COHEN’S D: MEASURE OF EFFECT SIZE
69
REAL WORLD CONSEQUENCES: MEN ARE FROM MARS,
WOMEN ARE FROM VENUS?
70
REAL WORLD CONSEQUENCES: MEN ARE FROM MARS,
WOMEN ARE FROM VENUS?
71
REAL WORLD CONSEQUENCES:
INTERPRETING EFFECT SIZE
73
FOR NEXT TIME
T-Tests!
74
TO-DO: PRACTICE FROM MEMORY
73