(Go: >> BACK << -|- >> HOME <<)

SlideShare a Scribd company logo
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

Non parametric presentation
Non parametric presentationNon parametric presentation
Non parametric presentation
Murad Khan Buneri
 
Anova in easyest way
Anova in easyest wayAnova in easyest way
Anova in easyest way
Bidyut Ghosh
 
Student's T-Test
Student's T-TestStudent's T-Test
Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)
Avjinder (Avi) Kaler
 
t distribution, paired and unpaired t-test
t distribution, paired and unpaired t-testt distribution, paired and unpaired t-test
t distribution, paired and unpaired t-test
BPKIHS
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)
Sneh Kumari
 
Non parametric tests
Non parametric testsNon parametric tests
Non parametric tests
Raghavendra Huchchannavar
 
Chi – square test
Chi – square testChi – square test
Chi – square test
Dr.M.Prasad Naidu
 
Kruskal wallis test
Kruskal wallis testKruskal wallis test
Kruskal wallis test
YASMEEN CHAUDHARI
 
Parametric Test
Parametric TestParametric Test
Parametric Test
AmritaKumari83
 
Student t test
Student t testStudent t test
Student t test
Dr Shovan Padhy, MD
 
Student t-test
Student t-testStudent t-test
Student t-test
Steve Bishop
 
Confidence interval
Confidence intervalConfidence interval
Confidence interval
Shakeel Nouman
 
Wilcoxon signed rank test
Wilcoxon signed rank testWilcoxon signed rank test
Wilcoxon signed rank test
Biswash Sapkota
 
Non parametric test
Non parametric testNon parametric test
Non parametric test
dineshmeena53
 
Null hypothesis AND ALTERNAT HYPOTHESIS
Null hypothesis AND ALTERNAT HYPOTHESISNull hypothesis AND ALTERNAT HYPOTHESIS
Null hypothesis AND ALTERNAT HYPOTHESIS
ADESH MEDICAL COLLEGE
 
Parametric tests
Parametric testsParametric tests
Parametric tests
Ananya Sree Katta
 
Parametric test _ t test and ANOVA _ Biostatistics and Research Methodology....
Parametric test _ t test and ANOVA _  Biostatistics and Research Methodology....Parametric test _ t test and ANOVA _  Biostatistics and Research Methodology....
Parametric test _ t test and ANOVA _ Biostatistics and Research Methodology....
AZCPh
 
T test statistics
T test statisticsT test statistics
T test statistics
Mohammad Ihmeidan
 
Repeated Measures ANOVA
Repeated Measures ANOVARepeated Measures ANOVA
Repeated Measures ANOVA
Kaori Kubo Germano, PhD
 

What's hot (20)

Non parametric presentation
Non parametric presentationNon parametric presentation
Non parametric presentation
 
Anova in easyest way
Anova in easyest wayAnova in easyest way
Anova in easyest way
 
Student's T-Test
Student's T-TestStudent's T-Test
Student's T-Test
 
Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)
 
t distribution, paired and unpaired t-test
t distribution, paired and unpaired t-testt distribution, paired and unpaired t-test
t distribution, paired and unpaired t-test
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)
 
Non parametric tests
Non parametric testsNon parametric tests
Non parametric tests
 
Chi – square test
Chi – square testChi – square test
Chi – square test
 
Kruskal wallis test
Kruskal wallis testKruskal wallis test
Kruskal wallis test
 
Parametric Test
Parametric TestParametric Test
Parametric Test
 
Student t test
Student t testStudent t test
Student t test
 
Student t-test
Student t-testStudent t-test
Student t-test
 
Confidence interval
Confidence intervalConfidence interval
Confidence interval
 
Wilcoxon signed rank test
Wilcoxon signed rank testWilcoxon signed rank test
Wilcoxon signed rank test
 
Non parametric test
Non parametric testNon parametric test
Non parametric test
 
Null hypothesis AND ALTERNAT HYPOTHESIS
Null hypothesis AND ALTERNAT HYPOTHESISNull hypothesis AND ALTERNAT HYPOTHESIS
Null hypothesis AND ALTERNAT HYPOTHESIS
 
Parametric tests
Parametric testsParametric tests
Parametric tests
 
Parametric test _ t test and ANOVA _ Biostatistics and Research Methodology....
Parametric test _ t test and ANOVA _  Biostatistics and Research Methodology....Parametric test _ t test and ANOVA _  Biostatistics and Research Methodology....
Parametric test _ t test and ANOVA _ Biostatistics and Research Methodology....
 
T test statistics
T test statisticsT test statistics
T test statistics
 
Repeated Measures ANOVA
Repeated Measures ANOVARepeated Measures ANOVA
Repeated Measures ANOVA
 

Viewers also liked

Anova (Analysis of variation)
Anova (Analysis of variation)Anova (Analysis of variation)
Anova (Analysis of variation)
Shakeel Rehman
 
11.1 anova1
11.1 anova111.1 anova1
11.1 anova1
Pooja Sakhla
 
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
Ali Rahman Khan
 
Statistik 1 6 distribusi probabilitas normal
Statistik 1 6 distribusi probabilitas normalStatistik 1 6 distribusi probabilitas normal
Statistik 1 6 distribusi probabilitas normal
Selvin 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 Budget
essadmin
 
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
Wilfred Dexter Tanedo
 
Non-Experimental Methods
Non-Experimental MethodsNon-Experimental Methods
Non-Experimental Methods
Kurt 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 design
Vivek Vasan
 
Principles
PrinciplesPrinciples
Principles
mattluebke
 
sURVEY PILOT STUDY
sURVEY PILOT STUDYsURVEY PILOT STUDY
sURVEY PILOT STUDY
gaorge1980
 
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
 
Anova ppt
Anova pptAnova ppt
Anova ppt
Sravani Ganti
 
Data Analysis Using Spss T Test
Data Analysis Using Spss   T TestData Analysis Using Spss   T Test
Data Analysis Using Spss T Test
Dr Ali Yusob Md Zain
 
2. Hardness
2. Hardness2. Hardness
2. Hardness
gaconnhome1987
 
Introduction to Analysis of Variance
Introduction to Analysis of VarianceIntroduction to Analysis of Variance
Introduction to Analysis of Variance
jasondroesch
 
Pilot study
Pilot studyPilot study
Pilot study
yogesh ingle
 
Normal distribution stat
Normal distribution statNormal distribution stat
Normal distribution stat
Pacurib Jonathan
 
STATISTICS: Normal Distribution
STATISTICS: Normal Distribution STATISTICS: Normal Distribution
STATISTICS: Normal Distribution
jundumaug1
 
Research or Proposal Writing - DEFINITION OF TERMS
Research or Proposal Writing - DEFINITION OF TERMSResearch or Proposal Writing - DEFINITION OF TERMS
Research or Proposal Writing - DEFINITION OF TERMS
Jaime Alfredo Cabrera
 
Research Presentation Format
Research Presentation FormatResearch Presentation Format
Research Presentation Format
Lifelong Learning
 

Viewers also liked (20)

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
 
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
 
Research or Proposal Writing - DEFINITION OF TERMS
Research or Proposal Writing - DEFINITION OF TERMSResearch or Proposal Writing - DEFINITION OF TERMS
Research or Proposal Writing - DEFINITION OF TERMS
 
Research Presentation Format
Research Presentation FormatResearch Presentation Format
Research Presentation Format
 

Similar to Anova lecture

ANOVA 2023 aa 2564896.pptx
ANOVA 2023  aa 2564896.pptxANOVA 2023  aa 2564896.pptx
ANOVA 2023 aa 2564896.pptx
MuhammadJavedIqbal40
 
Statistics using SPSS
Statistics using SPSSStatistics using SPSS
Statistics using SPSS
Eva van Poppel
 
Statistics for Anaesthesiologists
Statistics for AnaesthesiologistsStatistics for Anaesthesiologists
Statistics for Anaesthesiologists
xeonfusion
 
(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
SilvaGraf83
 
(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
MoseStaton39
 
mean comparison.pptx
mean comparison.pptxmean comparison.pptx
mean comparison.pptx
FenembarMekonnen
 
mean comparison.pptx
mean comparison.pptxmean comparison.pptx
mean comparison.pptx
FenembarMekonnen
 
Analysis of Variance
Analysis of VarianceAnalysis of Variance
Analysis of Variance
Kaori Kubo Germano, PhD
 
Parametric & non-parametric
Parametric & non-parametricParametric & non-parametric
Parametric & non-parametric
SoniaBabaee
 
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 Variance
Michael770443
 
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
 
1. complete stats notes
1. complete stats notes1. complete stats notes
1. complete stats notes
Bob Smullen
 
ANOVA Presentation.ppt
ANOVA Presentation.pptANOVA Presentation.ppt
ANOVA Presentation.ppt
srividyal2
 
ANOVA Presentation.ppt
ANOVA Presentation.pptANOVA Presentation.ppt
ANOVA Presentation.ppt
SMbairagdar
 
ANOVA Presentation.ppt
ANOVA Presentation.pptANOVA Presentation.ppt
ANOVA Presentation.ppt
PerumalPitchandi
 
GRADE 10 PPT FOR THE LESSON ANOVA Presentation.ppt
GRADE 10 PPT FOR THE LESSON ANOVA Presentation.pptGRADE 10 PPT FOR THE LESSON ANOVA Presentation.ppt
GRADE 10 PPT FOR THE LESSON ANOVA Presentation.ppt
ArielTupaz
 
5. testing differences
5. testing differences5. testing differences
5. testing differences
Steve 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.pptx
ahmedMETWALLI12
 
data analysis in research.pptx
data analysis in research.pptxdata analysis in research.pptx
data analysis in research.pptx
AbdulRashidAdams
 

Similar to Anova lecture (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
 
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
 
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
 
GRADE 10 PPT FOR THE LESSON ANOVA Presentation.ppt
GRADE 10 PPT FOR THE LESSON ANOVA Presentation.pptGRADE 10 PPT FOR THE LESSON ANOVA Presentation.ppt
GRADE 10 PPT FOR THE LESSON 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
 

Recently uploaded

Dr. Nasir Mustafa CERTIFICATE OF APPRECIATION "NEUROANATOMY"
Dr. Nasir Mustafa CERTIFICATE OF APPRECIATION "NEUROANATOMY"Dr. Nasir Mustafa CERTIFICATE OF APPRECIATION "NEUROANATOMY"
Dr. Nasir Mustafa CERTIFICATE OF APPRECIATION "NEUROANATOMY"
Dr. Nasir Mustafa
 
11EHS Term 3 Week 1 Unit 1 Review: Feedback and improvementpptx
11EHS Term 3 Week 1 Unit 1 Review: Feedback and improvementpptx11EHS Term 3 Week 1 Unit 1 Review: Feedback and improvementpptx
11EHS Term 3 Week 1 Unit 1 Review: Feedback and improvementpptx
mansk2
 
DepEd School Calendar 2024-2025 DO_s2024_008
DepEd School Calendar 2024-2025 DO_s2024_008DepEd School Calendar 2024-2025 DO_s2024_008
DepEd School Calendar 2024-2025 DO_s2024_008
Glenn Rivera
 
React Interview Question PDF By ScholarHat
React Interview Question PDF By ScholarHatReact Interview Question PDF By ScholarHat
React Interview Question PDF By ScholarHat
Scholarhat
 
PLANT KINGDOM GYMNOSPERM _PRIYA JHA.pptx
PLANT KINGDOM GYMNOSPERM _PRIYA JHA.pptxPLANT KINGDOM GYMNOSPERM _PRIYA JHA.pptx
PLANT KINGDOM GYMNOSPERM _PRIYA JHA.pptx
Priya Jha
 
Production Technology of Mango in Nepal.pptx
Production Technology of Mango in Nepal.pptxProduction Technology of Mango in Nepal.pptx
Production Technology of Mango in Nepal.pptx
UmeshTimilsina1
 
MathematicsGrade7-Presentation-July-12024.pptx
MathematicsGrade7-Presentation-July-12024.pptxMathematicsGrade7-Presentation-July-12024.pptx
MathematicsGrade7-Presentation-July-12024.pptx
nolicaliso1
 
NLC 2024 - Certificate of Recognition
NLC  2024  -  Certificate of RecognitionNLC  2024  -  Certificate of Recognition
NLC 2024 - Certificate of Recognition
Deped
 
VRS An Strategic Approch to Meet Need of Organisation.pptx
VRS An Strategic Approch to Meet Need of Organisation.pptxVRS An Strategic Approch to Meet Need of Organisation.pptx
VRS An Strategic Approch to Meet Need of Organisation.pptx
Banker and Adjunct Lecturer
 
SD_Integrating 21st Century Skills in Classroom-based Assessment.pptx
SD_Integrating 21st Century Skills in Classroom-based Assessment.pptxSD_Integrating 21st Century Skills in Classroom-based Assessment.pptx
SD_Integrating 21st Century Skills in Classroom-based Assessment.pptx
elwoodprias1
 
Benchmarking Sustainability: Neurosciences and AI Tech Research in Macau - Ke...
Benchmarking Sustainability: Neurosciences and AI Tech Research in Macau - Ke...Benchmarking Sustainability: Neurosciences and AI Tech Research in Macau - Ke...
Benchmarking Sustainability: Neurosciences and AI Tech Research in Macau - Ke...
Alvaro Barbosa
 
V2-NLC-Certificate-of-Completion_Learner.docx
V2-NLC-Certificate-of-Completion_Learner.docxV2-NLC-Certificate-of-Completion_Learner.docx
V2-NLC-Certificate-of-Completion_Learner.docx
302491
 
Mathematics 4 and 7 PD Design.pdf 1234567890
Mathematics 4 and 7 PD Design.pdf 1234567890Mathematics 4 and 7 PD Design.pdf 1234567890
Mathematics 4 and 7 PD Design.pdf 1234567890
liquiganzandyb
 
Microservices Interview Questions and Answers PDF By ScholarHat
Microservices Interview Questions and Answers PDF By ScholarHatMicroservices Interview Questions and Answers PDF By ScholarHat
Microservices Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Parkinson Disease & Anti-Parkinsonian Drugs.pptx
Parkinson Disease & Anti-Parkinsonian Drugs.pptxParkinson Disease & Anti-Parkinsonian Drugs.pptx
Parkinson Disease & Anti-Parkinsonian Drugs.pptx
AnujVishwakarma34
 
8. Packaging and packing house operations.pptx
8. Packaging and packing house operations.pptx8. Packaging and packing house operations.pptx
8. Packaging and packing house operations.pptx
UmeshTimilsina1
 
Brigada Eskwela 2024 PowerPoint Update for SY 2024-2025
Brigada Eskwela 2024 PowerPoint Update for SY 2024-2025Brigada Eskwela 2024 PowerPoint Update for SY 2024-2025
Brigada Eskwela 2024 PowerPoint Update for SY 2024-2025
ALBERTHISOLER1
 
Life of Ah Gong and Ah Kim ~ A Story with Life Lessons (Hokkien, English & Ch...
Life of Ah Gong and Ah Kim ~ A Story with Life Lessons (Hokkien, English & Ch...Life of Ah Gong and Ah Kim ~ A Story with Life Lessons (Hokkien, English & Ch...
Life of Ah Gong and Ah Kim ~ A Story with Life Lessons (Hokkien, English & Ch...
OH TEIK BIN
 
Java MCQ Questions and Answers PDF By ScholarHat
Java MCQ Questions and Answers PDF By ScholarHatJava MCQ Questions and Answers PDF By ScholarHat
Java MCQ Questions and Answers PDF By ScholarHat
Scholarhat
 

Recently uploaded (20)

Dr. Nasir Mustafa CERTIFICATE OF APPRECIATION "NEUROANATOMY"
Dr. Nasir Mustafa CERTIFICATE OF APPRECIATION "NEUROANATOMY"Dr. Nasir Mustafa CERTIFICATE OF APPRECIATION "NEUROANATOMY"
Dr. Nasir Mustafa CERTIFICATE OF APPRECIATION "NEUROANATOMY"
 
11EHS Term 3 Week 1 Unit 1 Review: Feedback and improvementpptx
11EHS Term 3 Week 1 Unit 1 Review: Feedback and improvementpptx11EHS Term 3 Week 1 Unit 1 Review: Feedback and improvementpptx
11EHS Term 3 Week 1 Unit 1 Review: Feedback and improvementpptx
 
DepEd School Calendar 2024-2025 DO_s2024_008
DepEd School Calendar 2024-2025 DO_s2024_008DepEd School Calendar 2024-2025 DO_s2024_008
DepEd School Calendar 2024-2025 DO_s2024_008
 
React Interview Question PDF By ScholarHat
React Interview Question PDF By ScholarHatReact Interview Question PDF By ScholarHat
React Interview Question PDF By ScholarHat
 
PLANT KINGDOM GYMNOSPERM _PRIYA JHA.pptx
PLANT KINGDOM GYMNOSPERM _PRIYA JHA.pptxPLANT KINGDOM GYMNOSPERM _PRIYA JHA.pptx
PLANT KINGDOM GYMNOSPERM _PRIYA JHA.pptx
 
Production Technology of Mango in Nepal.pptx
Production Technology of Mango in Nepal.pptxProduction Technology of Mango in Nepal.pptx
Production Technology of Mango in Nepal.pptx
 
UM “ATÉ JÁ” ANIMADO! . .
UM “ATÉ JÁ” ANIMADO!                        .            .UM “ATÉ JÁ” ANIMADO!                        .            .
UM “ATÉ JÁ” ANIMADO! . .
 
MathematicsGrade7-Presentation-July-12024.pptx
MathematicsGrade7-Presentation-July-12024.pptxMathematicsGrade7-Presentation-July-12024.pptx
MathematicsGrade7-Presentation-July-12024.pptx
 
NLC 2024 - Certificate of Recognition
NLC  2024  -  Certificate of RecognitionNLC  2024  -  Certificate of Recognition
NLC 2024 - Certificate of Recognition
 
VRS An Strategic Approch to Meet Need of Organisation.pptx
VRS An Strategic Approch to Meet Need of Organisation.pptxVRS An Strategic Approch to Meet Need of Organisation.pptx
VRS An Strategic Approch to Meet Need of Organisation.pptx
 
SD_Integrating 21st Century Skills in Classroom-based Assessment.pptx
SD_Integrating 21st Century Skills in Classroom-based Assessment.pptxSD_Integrating 21st Century Skills in Classroom-based Assessment.pptx
SD_Integrating 21st Century Skills in Classroom-based Assessment.pptx
 
Benchmarking Sustainability: Neurosciences and AI Tech Research in Macau - Ke...
Benchmarking Sustainability: Neurosciences and AI Tech Research in Macau - Ke...Benchmarking Sustainability: Neurosciences and AI Tech Research in Macau - Ke...
Benchmarking Sustainability: Neurosciences and AI Tech Research in Macau - Ke...
 
V2-NLC-Certificate-of-Completion_Learner.docx
V2-NLC-Certificate-of-Completion_Learner.docxV2-NLC-Certificate-of-Completion_Learner.docx
V2-NLC-Certificate-of-Completion_Learner.docx
 
Mathematics 4 and 7 PD Design.pdf 1234567890
Mathematics 4 and 7 PD Design.pdf 1234567890Mathematics 4 and 7 PD Design.pdf 1234567890
Mathematics 4 and 7 PD Design.pdf 1234567890
 
Microservices Interview Questions and Answers PDF By ScholarHat
Microservices Interview Questions and Answers PDF By ScholarHatMicroservices Interview Questions and Answers PDF By ScholarHat
Microservices Interview Questions and Answers PDF By ScholarHat
 
Parkinson Disease & Anti-Parkinsonian Drugs.pptx
Parkinson Disease & Anti-Parkinsonian Drugs.pptxParkinson Disease & Anti-Parkinsonian Drugs.pptx
Parkinson Disease & Anti-Parkinsonian Drugs.pptx
 
8. Packaging and packing house operations.pptx
8. Packaging and packing house operations.pptx8. Packaging and packing house operations.pptx
8. Packaging and packing house operations.pptx
 
Brigada Eskwela 2024 PowerPoint Update for SY 2024-2025
Brigada Eskwela 2024 PowerPoint Update for SY 2024-2025Brigada Eskwela 2024 PowerPoint Update for SY 2024-2025
Brigada Eskwela 2024 PowerPoint Update for SY 2024-2025
 
Life of Ah Gong and Ah Kim ~ A Story with Life Lessons (Hokkien, English & Ch...
Life of Ah Gong and Ah Kim ~ A Story with Life Lessons (Hokkien, English & Ch...Life of Ah Gong and Ah Kim ~ A Story with Life Lessons (Hokkien, English & Ch...
Life of Ah Gong and Ah Kim ~ A Story with Life Lessons (Hokkien, English & Ch...
 
Java MCQ Questions and Answers PDF By ScholarHat
Java MCQ Questions and Answers PDF By ScholarHatJava MCQ Questions and Answers PDF By ScholarHat
Java MCQ Questions and Answers PDF By ScholarHat
 

Anova lecture

  • 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)