Professional Documents
Culture Documents
Apr 12 2023
1
Information about the final exam
• Sunday April 23, 7:00 pm start time
• Location: CIRS 1250
• Duration: 2 hours 15 min (aka 135 minutes)
2
final exam: Office Hours on Canvas
Official office hours end this Fri
3
Learning Objectives
• Identify experimental designs for which ANOVA is the
appropriate analysis and discuss the advantages of running
them
• Conduct ANOVAs and apply the steps of hypothesis testing to
ANOVAs (form hypotheses, make decisions about Ho, form
conclusions)
• Conduct post hoc tests after ANOVAs where appropriate
• Calculate and interpret effect sizes for ANOVAs
4
How many conditions/groups/means?
1 sample tested 2 conditions tested More than 2
against μ against each other conditions
tested against
each other
σ is known: Independent samples:
z-test ind samples t-test
Analysis of
σ is not known: Correlated samples: variance
single sample t-test paired samples t-test (ANOVA)
5
Analyzing which variance?
• Variance of DV can be partitioned into some amount that can
be explained by the IV, and some amount that cannot be
explained by the IV
Condition 1:
Model rewarded for aggressive behavior
Dependent
Condition 2: variable:
Model punished for aggressive behavior Child
aggression
Condition 3:
Model faced no consequences for aggressive
behavior
7
ANOVAs are great
• No restriction on the number of means tested
8
ANOVAs are great
• Can include multiple independent variables
• Interactions between independent variables
9
ANOVAs are great
• Why not do multiple t-tests? Type I error problems!
Condition 1:
Model rewarded for aggressive behavior
α = 0.05
Condition 2: α = 0.05
Model punished for aggressive behavior
α = 0.05 Condition 3:
Model faced no consequences for aggressive
behavior
11
How do ANOVAs work?
(1) Are there any differences at all between the levels?
Condition 2 Condition 3
Condition 1
0 0.25 0.5 0.75 1 1.25 1.5 1.75 2 2.25 2.5 2.75 3 3.25 3.5 3.75 4 4.25 4.5 4.75 5 5.25 5.5
Condition 2 Condition 3
Condition 1
0 0.25 0.5 0.75 1 1.25 1.5 1.75 2 2.25 2.5 2.75 3 3.25 3.5 3.75 4 4.25 4.5 4.75 5 5.25 5.5
C
14
Variance against variance
• Which experiment has a larger ratio of systematic
variance relative to error variance?
16
ANOVA Hypotheses
Ho: μ1 = μ2 = μ3 .... = μk (all of the means are equal)
Ha: At least one of the population means is not equal to
the others
dfbetween = K -1
Variance between groups dfbetween = Number of levels - 1
Variance within groups
df1 = n1 -1
dfwithin = Number of subjects - 1
20
Participation Question
A. 2
dfbetween = K -1
B. 3
C. 4
21
Participation Question
A. 2
dfbetween = K -1
B. 3
C. 4
dfbetween = 3-1= 2
22
Participation Question
23
Participation Question
24
F-distribution degrees of freedom
Condition 1 10 participants
Condition 2 6 participants
Condition 3 9 participants
26
Table F gives you critical values
F-distribution for the F-distribution
27
Table F gives you critical values
F-distribution for the F-distribution
28
Table F gives you critical values
F-distribution for the F-distribution
Dfbetween = 2
Dfwithin = 22 If α = 0.05, Fcrit = 3.44
29
F-distribution
Condition 2 Condition 3
Condition 1
32
ANOVA – mean squares
SSbetween SSwithin
MSbetween = MSwithin =
dfbetween dfwithin
33
ANOVA – calculations
• Let’s imagine we did a version of the Bobo doll study
with only 15 participants total
Reward Nothing Punishment
7 4 0
9 3 1
5 6 3
8 3 1
6 4 0
7 4 1 Mean
34
ANOVA steps
Decide cut-off (alpha) Decide cut-off (alpha)
35
ANOVA – Bobo Doll Study
Decide cut-off (alpha)
ANOVAs are always non-directional, # tails not applicable
Let’s use α = 0.05
= 3-1 = 2 5 6 3
8 3 1
6 4 0
36
ANOVA – Bobo Doll Study
Reward Nothing Punishment
dfwithin = df1 + df2 + df3 +...dfk 7 4 0
9 3 1
= (5-1)+ (5-1)+ (5-1)
5 6 3
=12 8 3 1
6 4 0
37
Finding Fcrit
Dfbetween = 2
Dfwithin = 12
38
ANOVA – Bobo Doll Study
Determine (using dfs) Fcrit that corresponds to alpha
Retain Ho Reject Ho
Fcrit = 3.88
39
ANOVA calculations
MSbetween
F=
MSwithin
SSbetween SSwithin
MSbetween = MSwithin =
dfbetween dfwithin
* GM = Grand Mean
40
ANOVA – calculating SSb and SSw
(1) Calculate the grand mean (GM) and the group means
GM =
å X Reward
7
Nothing
4
Punishment
0
N 9 3 1
60
=4
5 6 3
= 8 3 1
15
6 4 0
Group Means 7 4 1
41
ANOVA – calculating SSb and SSw
(2) Calculate SSbetween
SSbetween = ån(X - GM )
2
42
ANOVA – calculating SSb and SSw
(3) Calculate SSwithin Reward Nothing Punishment
7 4 0
SSwithin = å(X - X)
2
9 3 1
5 6 3
= 22 8 3 1
6 4 0
7 4 1
= (7 - 7) + (9 - 7) + (5- 7) + (8- 7) + (6 - 7)
2 2 2 2 2
43
ANOVA – calculations
MSbetween
F=
MSwithin
SSbetween SSwithin
MSbetween = MSwithin =
dfbetween dfwithin
✓ ✓
44
Participation Question
45
Participation Question
46
ANOVA – calculating MSb and MSw
(4) Calculate MSbetween and MSwithin
SSbetween = 90 df between = 2
SSwithin = 22 df within = 12
SSbetween SSwithin
MSbetween = MSwithin =
dfbetween dfwithin
90 22
= =
2 12
= 45 =1.83
47
ANOVA – calculations
MSbetween
F=
MSwithin
SSbetween SSwithin
MSbetween = MSwithin =
dfbetween dfwithin
✓ ✓
SSbetween = ån(X - GM ) SSwithin = å(X - X)
2 2
✓ ✓
48
ANOVA – calculating Fobt
(5) Calculate Fobt MSbetween = 45
MSwithin = 1.83
MSbetween 45
F= = = 24.55
MSwithin 1.83
Compare Fobt to Fcrit
49
Participation Question
(A) Reject Ho
(B) Retain Ho
50
ANOVA – Bobo Doll Study
Make a decision about Ho
• Reject Ho!
• Ho: μ1 = μ2 = μ3 .... = μk (all of the means are
equal)
51
Post-Hoc Tests
Your ANOVA is significant – now what?
Post Hoc = after the event / after the fact
8
6
4
2
0
52
Tukey’s HSD 8
6
nothing (7 versus 4) 2
0
7 1 4
X1 - X 2 MS within 1.83
HSD = sM = = = 0.605
sM n 5
7- 4
=
0.605 If you have unequal group sizes, there is
a special formula you can use (but will
= 4.96 not need for this class)
HSD = Qobt
53
Tukey’s HSD
Compare HSD/Qobt value to critical q value (use Table G)
57
Tukey’s HSD
SStotal
SSbetween + SSwithin
59
Participation Question
60
Participation Question
61
Suggested Textbook Questions
• (Not graded)
62