SlideShare a Scribd company logo
1 of 26
ANOVA:ANOVA:
Analysis of VariationAnalysis of Variation
ANOVA:ANOVA:
Learning ObjectivesLearning Objectives
• Underlying methodological principles ofUnderlying methodological principles of
ANOVAANOVA
• Statistical principles: Partitioning ofStatistical principles: Partitioning of
variabilityvariability
• Summary table for one-way ANOVASummary table for one-way ANOVA
tt-Test vs ANOVA:-Test vs ANOVA:
The Case for Multiple GroupsThe Case for Multiple Groups
• tt-tests can be used to compare mean differences for two-tests can be used to compare mean differences for two
groupsgroups
• Between Subject DesignsBetween Subject Designs
• Within Subject DesignsWithin Subject Designs
• Paired Samples DesignsPaired Samples Designs
• The test allows us to make a judgment concerningThe test allows us to make a judgment concerning
whether or not the observed differences are likely to havewhether or not the observed differences are likely to have
occurred by chance.occurred by chance.
• Although helpful the t-test has its problemsAlthough helpful the t-test has its problems
Multiple GroupsMultiple Groups
• Two groups are often insufficientTwo groups are often insufficient
• No difference between Therapy X and Control:No difference between Therapy X and Control:
Are other therapies effective?Are other therapies effective?
• .05mmg/l Alcohol does not decrease memory.05mmg/l Alcohol does not decrease memory
ability relative to a control: What about otherability relative to a control: What about other
doses?doses?
• What if one control group is not enough?What if one control group is not enough?
Multiple Groups 2Multiple Groups 2
• With multiple groups we could make multipleWith multiple groups we could make multiple
comparisons using t-testscomparisons using t-tests
• ProblemProblem: We would expect some differences in: We would expect some differences in
means to be significant by chance alonemeans to be significant by chance alone
• How would we know which ones to trust?How would we know which ones to trust?
Comparing Multiple Groups:Comparing Multiple Groups:
TheThe ““One-WayOne-Way”” DesignDesign
• Independent variable (Independent variable (““factorfactor””):):
• Dependent variable (Dependent variable (““measurementmeasurement””):):
• Analysis: Variation between and within conditionsAnalysis: Variation between and within conditions
.......
Alcohol Level (Dose in mg/kg)
0 (Control) 10 20
Analysis of Variance (F test):Analysis of Variance (F test):
AdvantagesAdvantages
• Provides an omnibus test & avoids multiple t-tests andProvides an omnibus test & avoids multiple t-tests and
spurious significant resultsspurious significant results
• it is more stable since it relies on all of the data ...it is more stable since it relies on all of the data ...
• recall from your work on Std Error and T-testsrecall from your work on Std Error and T-tests
• the smaller the sample the lessthe smaller the sample the less
stable are the populationstable are the population
parameter estimatesparameter estimates..
What does ANOVA do?What does ANOVA do?
• Provides an F ratio that has an underlyingProvides an F ratio that has an underlying
distribution which we use to determine statisticaldistribution which we use to determine statistical
significance between groups (just like a t-test or asignificance between groups (just like a t-test or a
z-test)z-test)
• e.g., Take an experiment in which subjects aree.g., Take an experiment in which subjects are
randomly allocated to 3 groupsrandomly allocated to 3 groups
• The means and std deviations will all be different fromThe means and std deviations will all be different from
each othereach other
• We expect this because that is the nature of samplingWe expect this because that is the nature of sampling
(as you know!)(as you know!)
The question is …The question is …
are the groups more different thanare the groups more different than
we would expect by chance?we would expect by chance?
How does ANOVA work?How does ANOVA work?
• Instead of dealing with means as data points weInstead of dealing with means as data points we
deal with variationdeal with variation
• There is variation (variance) within groups (data)There is variation (variance) within groups (data)
• There is variance between group means (ExptlThere is variance between group means (Exptl
Effect)Effect)
• If groups are equivalent then the varianceIf groups are equivalent then the variance
between and within groups will be equal.between and within groups will be equal.
• Expected variation is used to calculate statisticalExpected variation is used to calculate statistical
significance in the same way that expectedsignificance in the same way that expected
differences in means are used in t-tests or z-testsdifferences in means are used in t-tests or z-tests
The basic ANOVA situationThe 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 situationAn 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 [7.25]
• B: 7,7,8,9,9,10,10,11 [8.875]
• P: 7,9,9,10,10,10,11,12,13 [10.11]
Are these differences significant?
Informal InvestigationInformal 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 BoxplotsSide by Side Boxplots
PBA
13
12
11
10
9
8
7
6
5
treatment
days
What does ANOVA do?What does ANOVA do?
At its simplest (there are extensions) ANOVA tests theAt its simplest (there are extensions) ANOVA tests the
following hypotheses:following hypotheses:
HH00: The means of all the groups are equal.: The means of all the groups are equal.
HHaa: Not all the means are equal: Not all the means are equal
doesndoesn’’t say how or which ones differ.t say how or which ones differ.
Can follow up withCan follow up with ““multiple comparisonsmultiple comparisons””
Note: we usually refer to the sub-populations asNote: we usually refer to the sub-populations as
““groupsgroups”” when doing ANOVA.when doing ANOVA.
Assumptions of ANOVAAssumptions of ANOVA
• each group is approximately normaleach group is approximately normal
• check this by looking at histograms or usecheck this by looking at histograms or use
assumptionsassumptions
• can handle some non-normality, but notcan handle some non-normality, but not
severe outlierssevere outliers
• standard deviations of each group arestandard deviations of each group are
approximately equalapproximately equal
• rule of thumb: ratio of largest to smallestrule of thumb: ratio of largest to smallest
sample st. dev. must be less than 2:1sample st. dev. must be less than 2:1
Normality CheckNormality 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 ANOVANotation for ANOVA
• n = number of individuals all together
• k = number of groups
• = mean for entire data set is
Group i has
• ni = # of individuals in group i
• xij = value for individual j in group i
• = mean for group i
• si = standard deviation for group i
ix
x
How ANOVA works (outline)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
Within
=
MSB
MSW
A large F is evidence against H0, since it
indicates that there is more difference
between groups than within groups.
How are these computationsHow are these computations
made?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
2
)( iij xx −
An even smaller exampleAn 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:
SUMMARY
Groups Count Sum Average Variance
Column1 3 18 6 0.49
Column2 4 23.8 5.95 0.176667
Column3 3 22.6 7.533333 0.123333
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 OutputANOVA 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 OutputANOVA 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?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)
WhereWhere’’s the Difference?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
Based on Pooled StDev
Level N Mean StDev ----------+---------+---------+------
A 8 7.250 1.669 (-------*-------)
B 8 8.875 1.458 (-------*-------)
P 9 10.111 1.764 (------*-------)
----------+---------+---------+------
Pooled StDev = 1.641 7.5 9.0 10.5
Once ANOVA indicates that the groups do not all
appear to have the same means, what do we do?
Clearest difference: P is worse than A (CI’s don’t overlap)

More Related Content

What's hot (20)

F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVA
 
Regression ppt
Regression pptRegression ppt
Regression ppt
 
Normal distribution
Normal distributionNormal distribution
Normal distribution
 
Comparing means
Comparing meansComparing means
Comparing means
 
Chi square test
Chi square testChi square test
Chi square test
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Parametric Statistical tests
Parametric Statistical testsParametric Statistical tests
Parametric Statistical tests
 
Anova and T-Test
Anova and T-TestAnova and T-Test
Anova and T-Test
 
Non parametric tests
Non parametric testsNon parametric tests
Non parametric tests
 
Confidence Intervals
Confidence IntervalsConfidence Intervals
Confidence Intervals
 
Regression analysis.
Regression analysis.Regression analysis.
Regression analysis.
 
Chi – square test
Chi – square testChi – square test
Chi – square test
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Parametric test - t Test, ANOVA, ANCOVA, MANOVA
Parametric test  - t Test, ANOVA, ANCOVA, MANOVAParametric test  - t Test, ANOVA, ANCOVA, MANOVA
Parametric test - t Test, ANOVA, ANCOVA, MANOVA
 
Repeated Measures ANOVA
Repeated Measures ANOVARepeated Measures ANOVA
Repeated Measures ANOVA
 
Analysis of variance ppt @ bec doms
Analysis of variance ppt @ bec domsAnalysis of variance ppt @ bec doms
Analysis of variance ppt @ bec doms
 
T test
T testT test
T test
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
 
Introduction to ANOVAs
Introduction to ANOVAsIntroduction to ANOVAs
Introduction to ANOVAs
 
T12 non-parametric tests
T12 non-parametric testsT12 non-parametric tests
T12 non-parametric tests
 

Viewers also liked

Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Sneh Kumari
 
Anova (Analysis of variation)
Anova (Analysis of variation)Anova (Analysis of variation)
Anova (Analysis of variation)Shakeel Rehman
 
RESIGN REPUBLIC: An education technology platform by Ali. R. Khan
RESIGN REPUBLIC: An education technology platform by Ali. R. KhanRESIGN REPUBLIC: An education technology platform by Ali. R. Khan
RESIGN REPUBLIC: An education technology platform by Ali. R. KhanAli Rahman Khan
 
Statistik 1 6 distribusi probabilitas normal
Statistik 1 6 distribusi probabilitas normalStatistik 1 6 distribusi probabilitas normal
Statistik 1 6 distribusi probabilitas normalSelvin Hadi
 
How to Write Form a Research Proposal and Form a Budget
How to Write Form a Research Proposal and Form a BudgetHow to Write Form a Research Proposal and Form a Budget
How to Write Form a Research Proposal and Form a Budgetessadmin
 
Lecture 1 b definition of principle of design
Lecture 1 b definition of principle of designLecture 1 b definition of principle of design
Lecture 1 b definition of principle of designWilfred Dexter Tanedo
 
Non-Experimental Methods
Non-Experimental MethodsNon-Experimental Methods
Non-Experimental MethodsKurt Luther
 
241109 rm-j.p.-non experimental design
241109 rm-j.p.-non experimental design241109 rm-j.p.-non experimental design
241109 rm-j.p.-non experimental designVivek Vasan
 
sURVEY PILOT STUDY
sURVEY PILOT STUDYsURVEY PILOT STUDY
sURVEY PILOT STUDYgaorge1980
 
Conceptualising a Research and Writing a Proposal. How to evolve a budget for...
Conceptualising a Research and Writing a Proposal. How to evolve a budget for...Conceptualising a Research and Writing a Proposal. How to evolve a budget for...
Conceptualising a Research and Writing a Proposal. How to evolve a budget for...essadmin
 
Introduction to Analysis of Variance
Introduction to Analysis of VarianceIntroduction to Analysis of Variance
Introduction to Analysis of Variancejasondroesch
 
STATISTICS: Normal Distribution
STATISTICS: Normal Distribution STATISTICS: Normal Distribution
STATISTICS: Normal Distribution jundumaug1
 

Viewers also liked (20)

Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)
 
Anova (Analysis of variation)
Anova (Analysis of variation)Anova (Analysis of variation)
Anova (Analysis of variation)
 
11.1 anova1
11.1 anova111.1 anova1
11.1 anova1
 
RESIGN REPUBLIC: An education technology platform by Ali. R. Khan
RESIGN REPUBLIC: An education technology platform by Ali. R. KhanRESIGN REPUBLIC: An education technology platform by Ali. R. Khan
RESIGN REPUBLIC: An education technology platform by Ali. R. Khan
 
Statistik 1 6 distribusi probabilitas normal
Statistik 1 6 distribusi probabilitas normalStatistik 1 6 distribusi probabilitas normal
Statistik 1 6 distribusi probabilitas normal
 
How to Write Form a Research Proposal and Form a Budget
How to Write Form a Research Proposal and Form a BudgetHow to Write Form a Research Proposal and Form a Budget
How to Write Form a Research Proposal and Form a Budget
 
Lecture 1 b definition of principle of design
Lecture 1 b definition of principle of designLecture 1 b definition of principle of design
Lecture 1 b definition of principle of design
 
Non-Experimental Methods
Non-Experimental MethodsNon-Experimental Methods
Non-Experimental Methods
 
241109 rm-j.p.-non experimental design
241109 rm-j.p.-non experimental design241109 rm-j.p.-non experimental design
241109 rm-j.p.-non experimental design
 
Principles
PrinciplesPrinciples
Principles
 
In Anova
In  AnovaIn  Anova
In Anova
 
sURVEY PILOT STUDY
sURVEY PILOT STUDYsURVEY PILOT STUDY
sURVEY PILOT STUDY
 
Conceptualising a Research and Writing a Proposal. How to evolve a budget for...
Conceptualising a Research and Writing a Proposal. How to evolve a budget for...Conceptualising a Research and Writing a Proposal. How to evolve a budget for...
Conceptualising a Research and Writing a Proposal. How to evolve a budget for...
 
Anova ppt
Anova pptAnova ppt
Anova ppt
 
Data Analysis Using Spss T Test
Data Analysis Using Spss   T TestData Analysis Using Spss   T Test
Data Analysis Using Spss T Test
 
2. Hardness
2. Hardness2. Hardness
2. Hardness
 
Introduction to Analysis of Variance
Introduction to Analysis of VarianceIntroduction to Analysis of Variance
Introduction to Analysis of Variance
 
Pilot study
Pilot studyPilot study
Pilot study
 
Normal distribution stat
Normal distribution statNormal distribution stat
Normal distribution stat
 
STATISTICS: Normal Distribution
STATISTICS: Normal Distribution STATISTICS: Normal Distribution
STATISTICS: Normal Distribution
 

Similar to ANOVA Analysis Reveals Treatment Effects

Statistics for Anaesthesiologists
Statistics for AnaesthesiologistsStatistics for Anaesthesiologists
Statistics for Anaesthesiologistsxeonfusion
 
(Individuals With Disabilities Act Transformation Over the Years)D
(Individuals With Disabilities Act Transformation Over the Years)D(Individuals With Disabilities Act Transformation Over the Years)D
(Individuals With Disabilities Act Transformation Over the Years)DSilvaGraf83
 
(Individuals With Disabilities Act Transformation Over the Years)D
(Individuals With Disabilities Act Transformation Over the Years)D(Individuals With Disabilities Act Transformation Over the Years)D
(Individuals With Disabilities Act Transformation Over the Years)DMoseStaton39
 
Parametric & non-parametric
Parametric & non-parametricParametric & non-parametric
Parametric & non-parametricSoniaBabaee
 
Back to the basics-Part2: Data exploration: representing and testing data pro...
Back to the basics-Part2: Data exploration: representing and testing data pro...Back to the basics-Part2: Data exploration: representing and testing data pro...
Back to the basics-Part2: Data exploration: representing and testing data pro...Giannis Tsakonas
 
Analysis of Variance
Analysis of VarianceAnalysis of Variance
Analysis of VarianceMichael770443
 
1. complete stats notes
1. complete stats notes1. complete stats notes
1. complete stats notesBob Smullen
 
ANOVA Presentation.ppt
ANOVA Presentation.pptANOVA Presentation.ppt
ANOVA Presentation.pptsrividyal2
 
ANOVA Presentation.ppt
ANOVA Presentation.pptANOVA Presentation.ppt
ANOVA Presentation.pptSMbairagdar
 
5. testing differences
5. testing differences5. testing differences
5. testing differencesSteve Saffhill
 
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.pptxahmedMETWALLI12
 
data analysis in research.pptx
data analysis in research.pptxdata analysis in research.pptx
data analysis in research.pptxAbdulRashidAdams
 
Ashish Dadheech PRESENT TOPIC NURSING RESEARCH
Ashish Dadheech PRESENT TOPIC NURSING RESEARCHAshish Dadheech PRESENT TOPIC NURSING RESEARCH
Ashish Dadheech PRESENT TOPIC NURSING RESEARCHAshish Dadheech
 
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
 

Similar to ANOVA Analysis Reveals Treatment Effects (20)

ANOVA 2023 aa 2564896.pptx
ANOVA 2023  aa 2564896.pptxANOVA 2023  aa 2564896.pptx
ANOVA 2023 aa 2564896.pptx
 
Statistics using SPSS
Statistics using SPSSStatistics using SPSS
Statistics using SPSS
 
Statistics for Anaesthesiologists
Statistics for AnaesthesiologistsStatistics for Anaesthesiologists
Statistics for Anaesthesiologists
 
(Individuals With Disabilities Act Transformation Over the Years)D
(Individuals With Disabilities Act Transformation Over the Years)D(Individuals With Disabilities Act Transformation Over the Years)D
(Individuals With Disabilities Act Transformation Over the Years)D
 
(Individuals With Disabilities Act Transformation Over the Years)D
(Individuals With Disabilities Act Transformation Over the Years)D(Individuals With Disabilities Act Transformation Over the Years)D
(Individuals With Disabilities Act Transformation Over the Years)D
 
mean comparison.pptx
mean comparison.pptxmean comparison.pptx
mean comparison.pptx
 
mean comparison.pptx
mean comparison.pptxmean comparison.pptx
mean comparison.pptx
 
Analysis of Variance
Analysis of VarianceAnalysis of Variance
Analysis of Variance
 
Parametric & non-parametric
Parametric & non-parametricParametric & non-parametric
Parametric & non-parametric
 
Back to the basics-Part2: Data exploration: representing and testing data pro...
Back to the basics-Part2: Data exploration: representing and testing data pro...Back to the basics-Part2: Data exploration: representing and testing data pro...
Back to the basics-Part2: Data exploration: representing and testing data pro...
 
Analysis of Variance
Analysis of VarianceAnalysis of Variance
Analysis of Variance
 
1. complete stats notes
1. complete stats notes1. complete stats notes
1. complete stats notes
 
ANOVA Presentation.ppt
ANOVA Presentation.pptANOVA Presentation.ppt
ANOVA Presentation.ppt
 
ANOVA Presentation.ppt
ANOVA Presentation.pptANOVA Presentation.ppt
ANOVA Presentation.ppt
 
ANOVA Presentation.ppt
ANOVA Presentation.pptANOVA Presentation.ppt
ANOVA Presentation.ppt
 
5. testing differences
5. testing differences5. testing differences
5. testing differences
 
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
 
data analysis in research.pptx
data analysis in research.pptxdata analysis in research.pptx
data analysis in research.pptx
 
Ashish Dadheech PRESENT TOPIC NURSING RESEARCH
Ashish Dadheech PRESENT TOPIC NURSING RESEARCHAshish Dadheech PRESENT TOPIC NURSING RESEARCH
Ashish Dadheech PRESENT TOPIC NURSING RESEARCH
 
univariate and bivariate analysis in spss
univariate and bivariate analysis in spss univariate and bivariate analysis in spss
univariate and bivariate analysis in spss
 

Recently uploaded

Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayMakMakNepo
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 

Recently uploaded (20)

Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up Friday
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 

ANOVA Analysis Reveals Treatment Effects

  • 2. ANOVA:ANOVA: Learning ObjectivesLearning Objectives • Underlying methodological principles ofUnderlying methodological principles of ANOVAANOVA • Statistical principles: Partitioning ofStatistical principles: Partitioning of variabilityvariability • Summary table for one-way ANOVASummary table for one-way ANOVA
  • 3. tt-Test vs ANOVA:-Test vs ANOVA: The Case for Multiple GroupsThe Case for Multiple Groups • tt-tests can be used to compare mean differences for two-tests can be used to compare mean differences for two groupsgroups • Between Subject DesignsBetween Subject Designs • Within Subject DesignsWithin Subject Designs • Paired Samples DesignsPaired Samples Designs • The test allows us to make a judgment concerningThe test allows us to make a judgment concerning whether or not the observed differences are likely to havewhether or not the observed differences are likely to have occurred by chance.occurred by chance. • Although helpful the t-test has its problemsAlthough helpful the t-test has its problems
  • 4. Multiple GroupsMultiple Groups • Two groups are often insufficientTwo groups are often insufficient • No difference between Therapy X and Control:No difference between Therapy X and Control: Are other therapies effective?Are other therapies effective? • .05mmg/l Alcohol does not decrease memory.05mmg/l Alcohol does not decrease memory ability relative to a control: What about otherability relative to a control: What about other doses?doses? • What if one control group is not enough?What if one control group is not enough?
  • 5. Multiple Groups 2Multiple Groups 2 • With multiple groups we could make multipleWith multiple groups we could make multiple comparisons using t-testscomparisons using t-tests • ProblemProblem: We would expect some differences in: We would expect some differences in means to be significant by chance alonemeans to be significant by chance alone • How would we know which ones to trust?How would we know which ones to trust?
  • 6. Comparing Multiple Groups:Comparing Multiple Groups: TheThe ““One-WayOne-Way”” DesignDesign • Independent variable (Independent variable (““factorfactor””):): • Dependent variable (Dependent variable (““measurementmeasurement””):): • Analysis: Variation between and within conditionsAnalysis: Variation between and within conditions ....... Alcohol Level (Dose in mg/kg) 0 (Control) 10 20
  • 7. Analysis of Variance (F test):Analysis of Variance (F test): AdvantagesAdvantages • Provides an omnibus test & avoids multiple t-tests andProvides an omnibus test & avoids multiple t-tests and spurious significant resultsspurious significant results • it is more stable since it relies on all of the data ...it is more stable since it relies on all of the data ... • recall from your work on Std Error and T-testsrecall from your work on Std Error and T-tests • the smaller the sample the lessthe smaller the sample the less stable are the populationstable are the population parameter estimatesparameter estimates..
  • 8. What does ANOVA do?What does ANOVA do? • Provides an F ratio that has an underlyingProvides an F ratio that has an underlying distribution which we use to determine statisticaldistribution which we use to determine statistical significance between groups (just like a t-test or asignificance between groups (just like a t-test or a z-test)z-test) • e.g., Take an experiment in which subjects aree.g., Take an experiment in which subjects are randomly allocated to 3 groupsrandomly allocated to 3 groups • The means and std deviations will all be different fromThe means and std deviations will all be different from each othereach other • We expect this because that is the nature of samplingWe expect this because that is the nature of sampling (as you know!)(as you know!)
  • 9. The question is …The question is … are the groups more different thanare the groups more different than we would expect by chance?we would expect by chance?
  • 10. How does ANOVA work?How does ANOVA work? • Instead of dealing with means as data points weInstead of dealing with means as data points we deal with variationdeal with variation • There is variation (variance) within groups (data)There is variation (variance) within groups (data) • There is variance between group means (ExptlThere is variance between group means (Exptl Effect)Effect) • If groups are equivalent then the varianceIf groups are equivalent then the variance between and within groups will be equal.between and within groups will be equal. • Expected variation is used to calculate statisticalExpected variation is used to calculate statistical significance in the same way that expectedsignificance in the same way that expected differences in means are used in t-tests or z-testsdifferences in means are used in t-tests or z-tests
  • 11. The basic ANOVA situationThe 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 situationAn 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 [7.25] • B: 7,7,8,9,9,10,10,11 [8.875] • P: 7,9,9,10,10,10,11,12,13 [10.11] Are these differences significant?
  • 13. Informal InvestigationInformal 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 BoxplotsSide by Side Boxplots PBA 13 12 11 10 9 8 7 6 5 treatment days
  • 15. What does ANOVA do?What does ANOVA do? At its simplest (there are extensions) ANOVA tests theAt its simplest (there are extensions) ANOVA tests the following hypotheses:following hypotheses: HH00: The means of all the groups are equal.: The means of all the groups are equal. HHaa: Not all the means are equal: Not all the means are equal doesndoesn’’t say how or which ones differ.t say how or which ones differ. Can follow up withCan follow up with ““multiple comparisonsmultiple comparisons”” Note: we usually refer to the sub-populations asNote: we usually refer to the sub-populations as ““groupsgroups”” when doing ANOVA.when doing ANOVA.
  • 16. Assumptions of ANOVAAssumptions of ANOVA • each group is approximately normaleach group is approximately normal • check this by looking at histograms or usecheck this by looking at histograms or use assumptionsassumptions • can handle some non-normality, but notcan handle some non-normality, but not severe outlierssevere outliers • standard deviations of each group arestandard deviations of each group are approximately equalapproximately equal • rule of thumb: ratio of largest to smallestrule of thumb: ratio of largest to smallest sample st. dev. must be less than 2:1sample st. dev. must be less than 2:1
  • 17. Normality CheckNormality 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 ANOVANotation for ANOVA • n = number of individuals all together • k = number of groups • = mean for entire data set is Group i has • ni = # of individuals in group i • xij = value for individual j in group i • = mean for group i • si = standard deviation for group i ix x
  • 19. How ANOVA works (outline)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 Within = MSB 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 computationsHow are these computations made?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 2 )( iij xx −
  • 22. An even smaller exampleAn 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: SUMMARY Groups Count Sum Average Variance Column1 3 18 6 0.49 Column2 4 23.8 5.95 0.176667 Column3 3 22.6 7.533333 0.123333
  • 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 OutputANOVA 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 OutputANOVA 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?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. WhereWhere’’s the Difference?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 Based on Pooled StDev Level N Mean StDev ----------+---------+---------+------ A 8 7.250 1.669 (-------*-------) B 8 8.875 1.458 (-------*-------) P 9 10.111 1.764 (------*-------) ----------+---------+---------+------ Pooled StDev = 1.641 7.5 9.0 10.5 Once ANOVA indicates that the groups do not all appear to have the same means, what do we do? Clearest difference: P is worse than A (CI’s don’t overlap)