Professional Documents
Culture Documents
Overview
What is ANOVA? When is it useful? How does it work? Some Examples Limitations Conclusions
2
Definitions
ANOVA: analysis of variation in an experimental outcome and especially of a statistical variance in order to determine the contributions of given factors or variables to the variance.
Introduction
Any data set has variability Variability exists within groups and between groups Question that ANOVA allows us to answer : Is this variability significant, or merely by chance?
4
The difference between variation within a group and variation between groups may help us determine this. If both are equal it is likely that it is due to chance and not significant. H0: Variability w/i groups = variability b/t groups, this means that 1 = n Ha: Variability w/i groups does not = variability b/t groups, or, 1 n
5
Assumptions
Normal distribution
Variances of dependent variable are equal in all populations Random samples; independent scores
6
One-Way ANOVA
One factor (manipulated variable) One response variable
Usefulness
Similar to t-test
10
Remember that
Standard deviation (s)
n
s = [( (xi X)2)/(n-1)]
i=1
Notation
k = # of groups n = # observations in each group xij = one observation in group i Y = mean over all groups
12
Total SS = (xij )2
i=1 j=1 k ni
SStot
Within SS = (xij
i=1 j=1 k ni
)2 = SSw i
Between SS = (
i=1 j=1
)2 = SSbet
13
and
SStot = SSw + SSbet
14
Calculating MS Values
MS = SS/df For between groups, df = k-1 For within groups, df= n-k
15
16
F-Ratio = MSBet/MSw
If:
The ratio of Between-Groups MS: Within-Groups MS is LARGE reject H0 there is a difference between groups The ratio of Between-Groups MS: Within-Groups MS is SMALLdo not reject H0 there is no difference between groups
17
p-values
Use table in stats book to determine p
18
So,
20
and
From the table with = 0.05 and df = 2 and 24, we see that if F > 3.40 we can reject Ho. This is what we would conclude in this case.
21
Example 2
Bat cave gates:
Group 1 = No gate (NG) Group 2 = Straight entrance gate (SE) Group 3 = Angled entrance gate (AE) Group 4 = Straight dark zone gate (SD) Group 5 = Angled dark zone gate (AD)
Question: Is variation in bat flight speed greater within or between groups? Or Ho = no difference significant difference in means.
22
23
Example 2 (contd)
Hypothetical data for bat flight speed with various gate arrangements.
Group #, i 1 2 3 4 5 Gate Type NG SE AE SD AD Mean FS (m/s) 5.6 3.8 4.7 4.2 5.1 sd FS (m/s) 0.93 1.05 0.97 1.23 1.03 ni 150 150 150 137 143
24
Example 2 SSbet
Between SS =
300
Group #, i
Gate Type
Mean FS (m/s)
sd FS (m/s)
ni
1 2 3 4 5
NG SE AE SD AD
Example 2 SSw
Within SS = 790
Group #, i
Gate Type
Mean FS (m/s)
sd FS (m/s)
ni
1 2 3 4 5
NG SE AE SD AD
Example 2 (contd)
Between MS = 300/4 = 75 Within MS = 790/(730-5) = 1.09 F Ratio = 75/1.09 = 68.8
See Table find p-value based on df= 4, Since F>value found on the table we 27 reject Ho.
Compare multiple parameters for multiple groups (so it cannot be used for multiple response variables)
28
Some Variations
Two-Way, Three-Way, etc. ANOVA (will talk about this next class)
2+ factors
Summary
ANOVA:
allows us to know if variability in a data set is between groups or merely within groups is more versatile than t-test can compare multiple groups at once cannot process multiple response variables does not indicate which groups are different
30
32
33
34
You got
35
and
36
37
38