Beruflich Dokumente
Kultur Dokumente
ANOVA
Which Test Should I Use?
Assumptions Met?
Question to ask
yourself: Yes No
1. Am I only working with Chi-square
categorical variables? (independence or goodness of fit)
Start
Here
2. Am I looking at the
association between 2+ Pearson’s r Spearman’s r
numeric variables?
3. Am I comparing two
Independent Samples
unrelated groups on a numeric -
t-test
outcome?
4. Am I comparing two related
groups on a numeric outcome? Paired Samples
-
t-test
5. Am I comparing three or
One-way
more groups on a numeric
ANOVA
outcome?
ANOVA
The Analysis of Variance
actually refers to a We’ll focus on
broad swath of tests running just
One-way ANOVAs one-way ANOVAS
Factorial ANOVAs
Repeated Measures And understanding/
ANOVAs reading the others
What they do
Let us look for difference between 3+ groups
Let us examine interaction effects
What we need
Independent variable (categorical)
The 3+ groups you’re comparing
What we need
Independent Variable
(Trichotomous+)
Dependent Variable
(Numeric)
ANOVA Example
RQ: Will nigrim
“[Solanum Solanum nigrim
extract] in the Linn extract
dose of improve
400 mg/kg/day glucose
reduced the
blood glucose
scores over significantly
time in ratson day
with7 induced
(257±5.2 mg/dl, p<0.001)
diabetes?
onwards and 14th day fasting blood glucose level was 197±8.2
Independent Variable: day (0, 1, 7, 14, 21)
mg/dl (p<0.001), 21st day blood glucose level was 169.5±7.3 mg/dl
Dependent Variable: fasting blood glucose
(p<0.001).”
Anova tests
Nuts & Bolts
The
The top
top of
of the
the equation
equation is
is referred
referred to
to as
as MS
MSBB
It
It represents
represents the
the differences
differences
between
between each
each of
of the
the groups
groups we’re
we’re comparing
comparing
Between Mean Squares
The MSB describes the variability
between the groups we’re studying
(ie: signal)
Different? Different?
MSB
(n1-1)SD12 + (nMS
2-1)SD2
2
… (nk-1)SDk2
W
N-K
The
The bottom
bottom of
of the
the equation
equation is
is referred
referred to
to as
as MS
MSWW
It
It represents
represents the
the overall
overall noise
noise
amongst
amongst all
all the
the groups
groups we’re
we’re comparing
comparing
Within Mean Squares
MSB
MSW
The point:
The Scenario
Births are big business! Let’s
look at a simplified study
comparing three popular
techniques
Does
There this
is nodata have high between group
variation
variance
within eachor high within group variance?
treatment
B H W
10 20 30 There is variation
between group
10 20 30
10 20 30
10 20 30
10 20 30
Between vs Within Groups
Question 2
H0 HA
%
Outcome is normally
distributed
Equality of variance
StatisticallyStatisticallyStatistically
Significant?Significant?Significant?
Type 2 Error
Our Test Says
HA is True
Type 1 Error
…Except they control for Type 1 Errors
Red Flags