Professional Documents
Culture Documents
A D V A N C E D D ATA A N A LY S I S
ANNOUNCEMENTS
IN PSYCHOLOGY
L E C T U R E # 4 : O N E - W AY A N O VA • Written exam is on March 6th from 1 – 4 p.m.
• Oral exams will take place on March 2nd, 3rd, 4th and 5th.
• Sign ups for the oral exams will be open on February 8th – 22nd.
• Exam procedures document has been posted to Quercus.
• Will review both quizzes in office hours on Thursday.
• Jamovi tutorial video coming – sorry for the delay!
3 4
1
2/3/21
You will see by the end of this lecture that the independent ü Assume that the DV is normally distributed for all groups.
samples t-test and an ANOVA yield the same results. ü Assume that the variances are homogenous across all groups.
The F statistic is used in ANOVA.
F = t2 ü No outliers beyond ± 4 standard deviations in all groups.
5 6
When the null is true, these two estimates will be the same.
But when the null is false… let’s see! X
Non-Musicians Musicians
2
2/3/21
Frequency
X X
Non-Musicians
Musicians Non-Musicians Musicians
9 10
11 12
3
2/3/21
You need to quantify how much the sample means deviate μNM GRAND MEAN
μM
from the overall mean, also known as the grand mean.
% ∑(*+ − -.)#
Frequency
!"# = %&'# =
0−1
(")# − %&)( ("# − %&)(
13 14
YES!
Frequency
15 16
4
2/3/21
17 18
()* ,-./+0)1+2) ,-5+)6++2 The F statistic tests whether the variation between groups
! "#$%& = = = greater than the variation within groups.
(+* ,-3//4/ ,-78)982
measure of effect (or treatment)
assessed by examining variance
(or difference) between the groups
If H0 is not true… F > 1
If H0 is true… F≤1 measure of random variation (or error)
assessed by examining variance
within the groups
19 20
5
2/3/21
To test whether arousal (or stress) levels increase as the difficulty of a task Mean Variance
increases, 32 participants were assigned to one of two conditions: Typical Typical 3.6 1.25
or Difficult task. There were 16 participants per condition. Their galvanic Difficult 6.0 2.00
skin responses were recorded: higher levels indicate greater arousal.
Descriptive statistics are provided. #$ − #& 3.6 − 6.0 −2.4
!= = = = −5.33
Mean Variance 1.25 2.0 3.25
'$& '&&
Typical 3.6 1.25
($ + (& 16 + 16 16
Difficult 6.0 2.00
NOTE: We have equal n (16 participants PER group)
21 22
23 24
6
2/3/21
25 26
27 28
7
2/3/21
= 4.22 =
;++∗+ / #? ∗+ /[ +< ∗+]
= 436
#
MSError MSTreatment
29 30
31 32
8
2/3/21
CONCLUSION
Since our F observed (103.32) is greater than the F critical
(4.26); we reject the null hypothesis.
Note: The ANOVA is an omnibus test – it will tell you if any group is
significant different, but won’t tell you which one. To figure out which
groups in particular differ, you need to conduct multiple comparison
tests (more on this later!)
33 34
LOGIC OF ANOVA
There are two ways of estimating population variance:
Why though?!
35 36
9
2/3/21
$ = population mean
& = amount by which
!"# ? %? &# ? '"# ?
X = a score in a sample
i = subject number
Subject “i” deviates
from Condition “j”:
ε = '() - $j
!"# = % + &# + '"#
j = condition number % = degree to which
Condition “j” deviates
from the mean:
134 = 100 + 19 + 15
% = $ - $j
37 38
*"# = *̅,- + *#̅ − *̅,- + (*"# − *#̅ ) "#$ − "&' = "$ − "&' + ("#$ − "$ !
(Grand Mean) (Group Mean) (Score) Total Deviation Treatment Deviation Error Deviation
This slide was adapted from slides created by Marco Sama - Thank you Marco! This slide was adapted from slides created by Marco Sama - Thank you Marco!
39 40
10
2/3/21
11
2/3/21
12
2/3/21
51 52
13
2/3/21
53 54
Reporting your results in APA style: There was a significant Types (or “Families”) of Effect Size Calculations:
difference in IQ between extracurricular groups, F(2,9) =
103.32, p < .05, η2 (“eta-squared”)= 0.96. 1. Difference family: effect size based on standardized differences
between means
§ Cohen’s d, Hedge’s g (not covered in this course)
Note: The ANOVA is an omnibus test – it will tell you if any
group is significant different, but won’t tell you which one. To 2. Correlational family: effect size based on “explained variance”
figure out which groups in particular differ, you need to § Eta-squared, omega-squared
conduct multiple comparison tests (more on this later!) 3. Categorical family: used for categorical variables
(not covered in this course)
55 56
14
2/3/21
57 58
“The treatment (i.e., independent variable) STAY ORGANIZED! Use a source table instead:
accounted for ___ % of the variance” SOURCE SS df MS F
59 60
15
2/3/21
SOURCE SS df MS F SOURCE SS df MS F
The sums of squares are additive! The degrees of freedom are additive!
61 62
SOURCE SS df MS F SOURCE SS df MS F
63 64
16
2/3/21
SOURCE SS df MS F
Use the degrees of freedom to find the critical F value: F(2,9) = 4.26
And compare this value to your observed F: 103.32 > 4.26; therefore, reject H0.
65 66
Next week:
Let’s do a practice question together. The Analysis of Variance (ANOVA) with a Covariate
& Randomized Block Design
67 68
17