SlideShare a Scribd company logo
ANOVA:
Analysis of Variation
ANOVA:
Learning Objectives
• Underlying methodological principles of
ANOVA
• Statistical principles: Partitioning of
variability
• Summary table for one-way ANOVA
t-Test vs ANOVA:
The Case for Multiple Groups
• t-tests can be used to compare mean differences for two
groups
•
•
•
Between Subject Designs
Within Subject Designs
Paired Samples Designs
• The test allows us to make a judgment concerning
whether or not the observed differences are likely to have
occurred by chance.
• Although helpful the t-test has its problems
Multiple Groups
• Two groups are often insufficient
•
•
• No difference between Therapy X and Control:
Are other therapies effective?
.05mmg/l Alcohol does not decrease memory
ability relative to a control: What about other
doses?
What if one control group is not enough?
Multiple Groups 2
• With multiple groups we could make multiple
comparisons using t-tests
• Problem: We would expect some differences in
means to be significant by chance alone
• How would we know which ones to trust?
Comparing Multiple Groups: The
“One-Way” Design
•
•
Independent variable (“factor”):
Dependent variable (“measurement”):
• Analysis: Variation between and within conditions
.......
Alcohol Level (Dose in mg/kg)
0 (Control) 10 20
Analysis of Variance (F test):
Advantages
 Provides an omnibus test & avoids multiple t-tests and
spurious significant results
 it is more stable since it relies on all of the data ...
recall from your work on Std Error and T-tests
•
•
•
• the smaller the sample the less
stable are the population
parameter estimates.
What does ANOVA do
• Provides an F ratio that has an underlying
distribution which we use to determine statistical
significance between groups (just like a t-test or a
z-test)
• e.g., Take an experiment in which subjects are
randomly allocated to 3 groups
• The means and std deviations will all be different from
each other
• We expect this because that is the nature of sampling
(as you know!)
The question is …
are the groups more different than
we would expect by chance?
How does ANOVA work?
• Instead of dealing with means as data points we
deal with variation
• There is variation (variance) within groups (data)
• There is variance between group means (Exptl
Effect)
• If groups are equivalent then the variance
between and within groups will be equal.
• Expected variation is used to calculate statistical
significance in the same way that expected
differences in means are used in t-tests or z-tests
The basic ANOVA situation
Two variables: 1 Categorical, 1 Quantitative
Main Question: Do the (means of) the quantitative
variables depend on which group (given by
categorical variable) the individual is in?
If categorical variable has only 2 values:
• 2-sample t-test
ANOVA allows for 3 or more groups
An example ANOVA situation
Subjects: 25 patients with blisters
Treatments: Treatment A, Treatment B, Placebo
Measurement: # of days until blisters heal
Data [and means]:
• A: 5,6,6,7,7,8,9,10
• B: 7,7,8,9,9,10,10,11
• P: 7,9,9,10,10,10,11,12,13
[7.25]
[8.875]
[10.11]
Are these differences significant?
Informal Investigation
Graphical investigation:
• side-by-side box plots
• multiple histograms
Whether the differences between the groups are
significant depends on
• the difference in the means
• the standard deviations of each group
• the sample sizes
ANOVA determines P-value from the F statistic
Side by Side Boxplots
P
A
13
12
11
10
9
8
7
6
5
B
treatment
days
What does ANOVA do?
At its simplest (there are extensions) ANOVA tests the
following hypotheses:
H0: The means of all the groups are equal.
Ha: Not all the means are equal
doesn’t say how or which ones differ.
Can follow up with “multiple comparisons”
Note: we usually refer to the sub-populations as
“groups” when doing ANOVA.
Assumptions of ANOVA
• each group is approximately normal
• check this by looking at histograms or use
assumptions
• can handle some non-normality, but not
severe outliers
• standard deviations of each group are
approximately equal
• rule of thumb: ratio of largest to smallest
sample st. dev. must be less than 2:1
Normality Check
We should check for normality using:
• assumptions about population
• histograms for each group
With such small data sets, there really isn’t a
really good way to check normality from data,
but we make the common assumption that
physical measurements of people tend to be
normally distributed.
Notation for ANOVA
• n = number of individuals all together
• k = number of groups
•x= mean for entire data set is
Group i has
• ni = # of individuals in group i
•xij = value for individual j in group i
•xi = mean for group i
•si = standard deviation for group i
How ANOVA works (outline)?
ANOVA measures two sources of variation in the data and compares
their relative sizes
• variation BETWEEN groups
•for each data value look at the difference between
its group mean and the overall mean
• variation WITHIN groups
•for each data value we look at the difference
between that value and the mean of its group
The ANOVA F-statistic is a ratio of the
Between Group Variaton divided by the
Within Group Variation:
F 
Between

MSB
Within MSW
 A large F is evidence against H0, since it
indicates that there is more difference
between groups than within groups.
How are these computations made?
We want to measure the amount of variation due
to BETWEEN group variation and WITHIN group
variation
For each data value, we calculate its contribution
to:
• BETWEEN group variation:
• WITHIN group variation:
xi  x2
(xij  xi )2
An even smaller example
Suppose we have three groups
• Group 1: 5.3, 6.0, 6.7
• Group 2: 5.5, 6.2, 6.4, 5.7
• Group 3: 7.5, 7.2, 7.9
We get the following statistics:
S
U
M
M
A
R
Y
G
r
o
u
p
s C
o
u
n
t S
u
m A
v
e
r
a
g
e V
a
r
i
a
n
c
e
Column1 3 1
8 6 0
.
4
9
Column2 4 2
3
.
8 5
.
9
50
.
1
7
6
6
6
7
Column3 3 2
2
.
67
.
5
3
3
3
3
30
.
1
2
3
3
3
3
Analysis of Variance for days
Source DF SS MS F P
treatment 2 34.74 17.37 6.45 0.006
Error 22 59.26 2.69
Total 24 94.00
ANOVA Output
1 less than # of
groups
# of data values - # of groups
(equals df for each group
added together)
1 less than # of individuals
(just like other situations)
ANOVA
Output
MSB = SSB / DFB
MSW = SSW / DFW
Analysis of Variance for days
Source DF SS MS F P
treatment 2 34.74 17.37 6.45 0.006
Error 22 59.26 2.69
Total 24 94.00
F = MSB / MSW
P-value
comes from
F(DFB,DFW)
(P-values for the F statistic are in Table E)
So How big is F?
Since F is
Mean Square Between / Mean Square Within
= MSB / MSW
A large value of F indicates relatively more
difference between groups than within groups
(evidence against H0)
To get the P-value, we compare to F(I-1,n-I)-distribution
• I-1 degrees of freedom in numerator (# groups -1)
• n - I degrees of freedom in denominator (rest of df)
Where’s the Difference?
Analysis of Variance for days
Source DF SS MS F P
treatmen 2 34.74 17.37 6.45 0.006
Error 22 59.26 2.69
Total 24 94.00
Individual 95% CIs For Mean
Level N Mean StDev
Based on Pooled StDev
----------+---------+---------+------
A 8 7.250 1.669 (-------*-------)
B 8 8.875 1.458 (-------*-------)
P 9 10.111 1.764 (------*-------)
Once ANOVA indicates that the groups do not all
appear to have the same means, what do we do?
----------+---------+---------+------
Pooled StDev = 1.641 7.5 9.0 10.5
Clearest difference: P is worse than A (CI’s don’t overlap)

More Related Content

Similar to ANOVA 2023 aa 2564896.pptx

Shovan anova main
Shovan anova mainShovan anova main
Shovan anova main
Dr Shovan Padhy, MD
 
univariate and bivariate analysis in spss
univariate and bivariate analysis in spss univariate and bivariate analysis in spss
univariate and bivariate analysis in spss
Subodh Khanal
 
Analysis of Variance
Analysis of VarianceAnalysis of Variance
Analysis of Variance
Kaori Kubo Germano, PhD
 
Navigating the Numbers A Deep Dive into t-tests & ANOVA.pptx
Navigating the Numbers A Deep Dive into t-tests & ANOVA.pptxNavigating the Numbers A Deep Dive into t-tests & ANOVA.pptx
Navigating the Numbers A Deep Dive into t-tests & ANOVA.pptx
ahmedMETWALLI12
 
1 ANOVA.ppt
1 ANOVA.ppt1 ANOVA.ppt
1 ANOVA.ppt
Alemayehu70
 
REVISION SLIDES 2.pptx
REVISION SLIDES 2.pptxREVISION SLIDES 2.pptx
REVISION SLIDES 2.pptx
ssuser0bb1f22
 
5. testing differences
5. testing differences5. testing differences
5. testing differences
Steve Saffhill
 
Data Ananlysis lecture 7 Simon Fraser University
Data Ananlysis lecture 7 Simon Fraser UniversityData Ananlysis lecture 7 Simon Fraser University
Data Ananlysis lecture 7 Simon Fraser University
soniyamarghani
 
Research method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anovaResearch method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anovanaranbatn
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
Sanju Rusara Seneviratne
 
Ashish Dadheech PRESENT TOPIC NURSING RESEARCH
Ashish Dadheech PRESENT TOPIC NURSING RESEARCHAshish Dadheech PRESENT TOPIC NURSING RESEARCH
Ashish Dadheech PRESENT TOPIC NURSING RESEARCH
Ashish Dadheech
 
Applied statistics lecture_8
Applied statistics lecture_8Applied statistics lecture_8
Applied statistics lecture_8Daria Bogdanova
 
tests of significance
tests of significancetests of significance
tests of significance
benita regi
 
Topic 6.1 rowe
Topic 6.1 roweTopic 6.1 rowe
Topic 6.1 rowe
strowe
 
Topic 6.1 rowe
Topic 6.1 roweTopic 6.1 rowe
Topic 6.1 rowe
strowe
 
Statistical test in spss
Statistical test in spssStatistical test in spss
Statistical test in spss
Bipin Neupane
 
Applied statistics lecture_3
Applied statistics lecture_3Applied statistics lecture_3
Applied statistics lecture_3Daria Bogdanova
 
1. complete stats notes
1. complete stats notes1. complete stats notes
1. complete stats notes
Bob Smullen
 
scope and need of biostatics
scope and need of  biostaticsscope and need of  biostatics
scope and need of biostatics
dr_sharmajyoti01
 

Similar to ANOVA 2023 aa 2564896.pptx (20)

Shovan anova main
Shovan anova mainShovan anova main
Shovan anova main
 
univariate and bivariate analysis in spss
univariate and bivariate analysis in spss univariate and bivariate analysis in spss
univariate and bivariate analysis in spss
 
Analysis of Variance
Analysis of VarianceAnalysis of Variance
Analysis of Variance
 
Navigating the Numbers A Deep Dive into t-tests & ANOVA.pptx
Navigating the Numbers A Deep Dive into t-tests & ANOVA.pptxNavigating the Numbers A Deep Dive into t-tests & ANOVA.pptx
Navigating the Numbers A Deep Dive into t-tests & ANOVA.pptx
 
1 ANOVA.ppt
1 ANOVA.ppt1 ANOVA.ppt
1 ANOVA.ppt
 
REVISION SLIDES 2.pptx
REVISION SLIDES 2.pptxREVISION SLIDES 2.pptx
REVISION SLIDES 2.pptx
 
5. testing differences
5. testing differences5. testing differences
5. testing differences
 
Data Ananlysis lecture 7 Simon Fraser University
Data Ananlysis lecture 7 Simon Fraser UniversityData Ananlysis lecture 7 Simon Fraser University
Data Ananlysis lecture 7 Simon Fraser University
 
Research method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anovaResearch method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anova
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
Ashish Dadheech PRESENT TOPIC NURSING RESEARCH
Ashish Dadheech PRESENT TOPIC NURSING RESEARCHAshish Dadheech PRESENT TOPIC NURSING RESEARCH
Ashish Dadheech PRESENT TOPIC NURSING RESEARCH
 
Applied statistics lecture_8
Applied statistics lecture_8Applied statistics lecture_8
Applied statistics lecture_8
 
tests of significance
tests of significancetests of significance
tests of significance
 
Topic 6.1 rowe
Topic 6.1 roweTopic 6.1 rowe
Topic 6.1 rowe
 
Topic 6.1 rowe
Topic 6.1 roweTopic 6.1 rowe
Topic 6.1 rowe
 
Statistical test in spss
Statistical test in spssStatistical test in spss
Statistical test in spss
 
Applied statistics lecture_3
Applied statistics lecture_3Applied statistics lecture_3
Applied statistics lecture_3
 
1. complete stats notes
1. complete stats notes1. complete stats notes
1. complete stats notes
 
scope and need of biostatics
scope and need of  biostaticsscope and need of  biostatics
scope and need of biostatics
 
ANOVA Parametric test: Biostatics and Research Methodology
ANOVA Parametric test: Biostatics and Research MethodologyANOVA Parametric test: Biostatics and Research Methodology
ANOVA Parametric test: Biostatics and Research Methodology
 

More from MuhammadJavedIqbal40

Presentation (4).pptx
Presentation (4).pptxPresentation (4).pptx
Presentation (4).pptx
MuhammadJavedIqbal40
 
qualityassuranceppt-06072023.pptx
qualityassuranceppt-06072023.pptxqualityassuranceppt-06072023.pptx
qualityassuranceppt-06072023.pptx
MuhammadJavedIqbal40
 
Alkene and alkyne 2nd semester 2023.pptx
Alkene and alkyne 2nd semester 2023.pptxAlkene and alkyne 2nd semester 2023.pptx
Alkene and alkyne 2nd semester 2023.pptx
MuhammadJavedIqbal40
 
Photoluminescence -chapter-6.pdf
Photoluminescence -chapter-6.pdfPhotoluminescence -chapter-6.pdf
Photoluminescence -chapter-6.pdf
MuhammadJavedIqbal40
 
Photoluminescence.pptx
Photoluminescence.pptxPhotoluminescence.pptx
Photoluminescence.pptx
MuhammadJavedIqbal40
 
organic-chemistry-2nd semester 2023.pptx
organic-chemistry-2nd semester 2023.pptxorganic-chemistry-2nd semester 2023.pptx
organic-chemistry-2nd semester 2023.pptx
MuhammadJavedIqbal40
 
Fluoroscence 1.pptx
Fluoroscence 1.pptxFluoroscence 1.pptx
Fluoroscence 1.pptx
MuhammadJavedIqbal40
 
Notes- Organic day 2.pptx
Notes- Organic day 2.pptxNotes- Organic day 2.pptx
Notes- Organic day 2.pptx
MuhammadJavedIqbal40
 
thermodynamics PNC.ppt
thermodynamics PNC.pptthermodynamics PNC.ppt
thermodynamics PNC.ppt
MuhammadJavedIqbal40
 
1606732404-atomic-absorption-emission-2.ppt
1606732404-atomic-absorption-emission-2.ppt1606732404-atomic-absorption-emission-2.ppt
1606732404-atomic-absorption-emission-2.ppt
MuhammadJavedIqbal40
 
PNC IIIA group 2023.pptx
PNC IIIA group 2023.pptxPNC IIIA group 2023.pptx
PNC IIIA group 2023.pptx
MuhammadJavedIqbal40
 
interhalogens pseudohalogen PNC.pptx
interhalogens  pseudohalogen  PNC.pptxinterhalogens  pseudohalogen  PNC.pptx
interhalogens pseudohalogen PNC.pptx
MuhammadJavedIqbal40
 
PNC IIA group 2023.pptx
PNC IIA group 2023.pptxPNC IIA group 2023.pptx
PNC IIA group 2023.pptx
MuhammadJavedIqbal40
 
Group 13, the Boron family.ppt
Group 13, the Boron family.pptGroup 13, the Boron family.ppt
Group 13, the Boron family.ppt
MuhammadJavedIqbal40
 

More from MuhammadJavedIqbal40 (19)

Presentation (4).pptx
Presentation (4).pptxPresentation (4).pptx
Presentation (4).pptx
 
qualityassuranceppt-06072023.pptx
qualityassuranceppt-06072023.pptxqualityassuranceppt-06072023.pptx
qualityassuranceppt-06072023.pptx
 
Quali.pdf
Quali.pdfQuali.pdf
Quali.pdf
 
BET.pptx
BET.pptxBET.pptx
BET.pptx
 
Alkene and alkyne 2nd semester 2023.pptx
Alkene and alkyne 2nd semester 2023.pptxAlkene and alkyne 2nd semester 2023.pptx
Alkene and alkyne 2nd semester 2023.pptx
 
Alkynes2.ppt
Alkynes2.pptAlkynes2.ppt
Alkynes2.ppt
 
DSC.pdf
DSC.pdfDSC.pdf
DSC.pdf
 
Photoluminescence -chapter-6.pdf
Photoluminescence -chapter-6.pdfPhotoluminescence -chapter-6.pdf
Photoluminescence -chapter-6.pdf
 
Photoluminescence.pptx
Photoluminescence.pptxPhotoluminescence.pptx
Photoluminescence.pptx
 
organic-chemistry-2nd semester 2023.pptx
organic-chemistry-2nd semester 2023.pptxorganic-chemistry-2nd semester 2023.pptx
organic-chemistry-2nd semester 2023.pptx
 
Fluoroscence 1.pptx
Fluoroscence 1.pptxFluoroscence 1.pptx
Fluoroscence 1.pptx
 
Notes- Organic day 2.pptx
Notes- Organic day 2.pptxNotes- Organic day 2.pptx
Notes- Organic day 2.pptx
 
thermodynamics PNC.ppt
thermodynamics PNC.pptthermodynamics PNC.ppt
thermodynamics PNC.ppt
 
SEM.ppt
SEM.pptSEM.ppt
SEM.ppt
 
1606732404-atomic-absorption-emission-2.ppt
1606732404-atomic-absorption-emission-2.ppt1606732404-atomic-absorption-emission-2.ppt
1606732404-atomic-absorption-emission-2.ppt
 
PNC IIIA group 2023.pptx
PNC IIIA group 2023.pptxPNC IIIA group 2023.pptx
PNC IIIA group 2023.pptx
 
interhalogens pseudohalogen PNC.pptx
interhalogens  pseudohalogen  PNC.pptxinterhalogens  pseudohalogen  PNC.pptx
interhalogens pseudohalogen PNC.pptx
 
PNC IIA group 2023.pptx
PNC IIA group 2023.pptxPNC IIA group 2023.pptx
PNC IIA group 2023.pptx
 
Group 13, the Boron family.ppt
Group 13, the Boron family.pptGroup 13, the Boron family.ppt
Group 13, the Boron family.ppt
 

Recently uploaded

The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
DhatriParmar
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 

Recently uploaded (20)

The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 

ANOVA 2023 aa 2564896.pptx

  • 2. ANOVA: Learning Objectives • Underlying methodological principles of ANOVA • Statistical principles: Partitioning of variability • Summary table for one-way ANOVA
  • 3. t-Test vs ANOVA: The Case for Multiple Groups • t-tests can be used to compare mean differences for two groups • • • Between Subject Designs Within Subject Designs Paired Samples Designs • The test allows us to make a judgment concerning whether or not the observed differences are likely to have occurred by chance. • Although helpful the t-test has its problems
  • 4. Multiple Groups • Two groups are often insufficient • • • No difference between Therapy X and Control: Are other therapies effective? .05mmg/l Alcohol does not decrease memory ability relative to a control: What about other doses? What if one control group is not enough?
  • 5. Multiple Groups 2 • With multiple groups we could make multiple comparisons using t-tests • Problem: We would expect some differences in means to be significant by chance alone • How would we know which ones to trust?
  • 6. Comparing Multiple Groups: The “One-Way” Design • • Independent variable (“factor”): Dependent variable (“measurement”): • Analysis: Variation between and within conditions ....... Alcohol Level (Dose in mg/kg) 0 (Control) 10 20
  • 7. Analysis of Variance (F test): Advantages  Provides an omnibus test & avoids multiple t-tests and spurious significant results  it is more stable since it relies on all of the data ... recall from your work on Std Error and T-tests • • • • the smaller the sample the less stable are the population parameter estimates.
  • 8. What does ANOVA do • Provides an F ratio that has an underlying distribution which we use to determine statistical significance between groups (just like a t-test or a z-test) • e.g., Take an experiment in which subjects are randomly allocated to 3 groups • The means and std deviations will all be different from each other • We expect this because that is the nature of sampling (as you know!)
  • 9. The question is … are the groups more different than we would expect by chance?
  • 10. How does ANOVA work? • Instead of dealing with means as data points we deal with variation • There is variation (variance) within groups (data) • There is variance between group means (Exptl Effect) • If groups are equivalent then the variance between and within groups will be equal. • Expected variation is used to calculate statistical significance in the same way that expected differences in means are used in t-tests or z-tests
  • 11. The basic ANOVA situation Two variables: 1 Categorical, 1 Quantitative Main Question: Do the (means of) the quantitative variables depend on which group (given by categorical variable) the individual is in? If categorical variable has only 2 values: • 2-sample t-test ANOVA allows for 3 or more groups
  • 12. An example ANOVA situation Subjects: 25 patients with blisters Treatments: Treatment A, Treatment B, Placebo Measurement: # of days until blisters heal Data [and means]: • A: 5,6,6,7,7,8,9,10 • B: 7,7,8,9,9,10,10,11 • P: 7,9,9,10,10,10,11,12,13 [7.25] [8.875] [10.11] Are these differences significant?
  • 13. Informal Investigation Graphical investigation: • side-by-side box plots • multiple histograms Whether the differences between the groups are significant depends on • the difference in the means • the standard deviations of each group • the sample sizes ANOVA determines P-value from the F statistic
  • 14. Side by Side Boxplots P A 13 12 11 10 9 8 7 6 5 B treatment days
  • 15. What does ANOVA do? At its simplest (there are extensions) ANOVA tests the following hypotheses: H0: The means of all the groups are equal. Ha: Not all the means are equal doesn’t say how or which ones differ. Can follow up with “multiple comparisons” Note: we usually refer to the sub-populations as “groups” when doing ANOVA.
  • 16. Assumptions of ANOVA • each group is approximately normal • check this by looking at histograms or use assumptions • can handle some non-normality, but not severe outliers • standard deviations of each group are approximately equal • rule of thumb: ratio of largest to smallest sample st. dev. must be less than 2:1
  • 17. Normality Check We should check for normality using: • assumptions about population • histograms for each group With such small data sets, there really isn’t a really good way to check normality from data, but we make the common assumption that physical measurements of people tend to be normally distributed.
  • 18. Notation for ANOVA • n = number of individuals all together • k = number of groups •x= mean for entire data set is Group i has • ni = # of individuals in group i •xij = value for individual j in group i •xi = mean for group i •si = standard deviation for group i
  • 19. How ANOVA works (outline)? ANOVA measures two sources of variation in the data and compares their relative sizes • variation BETWEEN groups •for each data value look at the difference between its group mean and the overall mean • variation WITHIN groups •for each data value we look at the difference between that value and the mean of its group
  • 20. The ANOVA F-statistic is a ratio of the Between Group Variaton divided by the Within Group Variation: F  Between  MSB Within MSW  A large F is evidence against H0, since it indicates that there is more difference between groups than within groups.
  • 21. How are these computations made? We want to measure the amount of variation due to BETWEEN group variation and WITHIN group variation For each data value, we calculate its contribution to: • BETWEEN group variation: • WITHIN group variation: xi  x2 (xij  xi )2
  • 22. An even smaller example Suppose we have three groups • Group 1: 5.3, 6.0, 6.7 • Group 2: 5.5, 6.2, 6.4, 5.7 • Group 3: 7.5, 7.2, 7.9 We get the following statistics: S U M M A R Y G r o u p s C o u n t S u m A v e r a g e V a r i a n c e Column1 3 1 8 6 0 . 4 9 Column2 4 2 3 . 8 5 . 9 50 . 1 7 6 6 6 7 Column3 3 2 2 . 67 . 5 3 3 3 3 30 . 1 2 3 3 3 3
  • 23. Analysis of Variance for days Source DF SS MS F P treatment 2 34.74 17.37 6.45 0.006 Error 22 59.26 2.69 Total 24 94.00 ANOVA Output 1 less than # of groups # of data values - # of groups (equals df for each group added together) 1 less than # of individuals (just like other situations)
  • 24. ANOVA Output MSB = SSB / DFB MSW = SSW / DFW Analysis of Variance for days Source DF SS MS F P treatment 2 34.74 17.37 6.45 0.006 Error 22 59.26 2.69 Total 24 94.00 F = MSB / MSW P-value comes from F(DFB,DFW) (P-values for the F statistic are in Table E)
  • 25. So How big is F? Since F is Mean Square Between / Mean Square Within = MSB / MSW A large value of F indicates relatively more difference between groups than within groups (evidence against H0) To get the P-value, we compare to F(I-1,n-I)-distribution • I-1 degrees of freedom in numerator (# groups -1) • n - I degrees of freedom in denominator (rest of df)
  • 26. Where’s the Difference? Analysis of Variance for days Source DF SS MS F P treatmen 2 34.74 17.37 6.45 0.006 Error 22 59.26 2.69 Total 24 94.00 Individual 95% CIs For Mean Level N Mean StDev Based on Pooled StDev ----------+---------+---------+------ A 8 7.250 1.669 (-------*-------) B 8 8.875 1.458 (-------*-------) P 9 10.111 1.764 (------*-------) Once ANOVA indicates that the groups do not all appear to have the same means, what do we do? ----------+---------+---------+------ Pooled StDev = 1.641 7.5 9.0 10.5 Clearest difference: P is worse than A (CI’s don’t overlap)