SlideShare a Scribd company logo
BRANCH :- FOOD PROCESSING AND TECHNOLOGY
in the
Subject of Food Standard and Quality Assurance[2171401]
On the
Topic of ANOVA model [how ANOVA work?] with example
Created by :
mahesh kapadiya 150010114020
Parth patel 130010114035
•The analysis of variance is developed by R.A. fisher in 1920.
•If the number of sample is more than two then Z-test and T-test can not be used.
•The technique of variance analysis developed by fisher is very useful in very such
case and with it’s help it is possible to study the significance of difference of mean
values of large no. of samples at a same time.
•The variance analysis studies the significance of the difference in means by
analysing variance.
•The variances would differ only when the means are significantly different.
•The technique of the analysis of variance as developed by Fisher is capable of
Fruitful application in a variety of problems.
•Ho : Variability w/i groups = variability b/t groups.
• Ha : Variability w/i groups does not = variability b/t groups.
Introduction
• 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 over all mean.
•variation WITHIN groups :
for each data value we look at the difference between that value and the
mean of its group.
F-STATISTICS
•The ANOVA F-statistic is a ratio of the Between Group
Variation divided by the Within Group Variation:
F= MSC/MSE
where, MSC: variance between the sample
and ,MSE: variance within the sample
•A large F is evidence against H0 , since it indicates that there
is more difference Between groups than within groups.
 The null hypothesis is that the means are all
equal
 The alternative hypothesis is that at least one
of the means is different
0 1 2 3
: k
H       
•The samples are independently drawn.
• The population are normally distributed, with common variance.
•They occur at random and independent of each other in the
groups.
•The effects of various components are additive.
Assumption in ANOVA analysis
 The statistics classroom is divided into
three rows: front, middle, and back
 The instructor noticed that the further the
students were from him, the more likely
they were to miss class or use an instant
messenger during class
 He wanted to see if the students further
away did worse on the exams
The ANOVA doesn’t test that one mean is less
than another, only whether they’re all equal or
at least one is different.
0
: F M B
H    
 A random sample of the students in each
row was taken
 The score for those students on the
second exam was recorded
 Front: 82, 83, 97, 93, 55, 67, 53
 Middle: 83, 78, 68, 61, 77, 54, 69, 51, 63
 Back: 38, 59, 55, 66, 45, 52, 52, 61
The summary statistics for the grades of each row
are shown in the table below
Row Front Middle Back
Sample size 7 9 8
Mean 75.71 67.11 53.50
St. Dev 17.63 10.95 8.96
Variance 310.90 119.86 80.29
Variation
4Variation is the sum of the squares of the
deviations between a value and the mean of
the value
 Sum of Squares is abbreviated by SS and
often followed by a variable in parentheses
such as SS(B) or SS(W) so we know which
sum of squares we’re talking about
 Are all of the values identical?
 No, so there is some variation in the data
 This is called the total variation
 Denoted SS(Total) for the total Sum of
Squares (variation)
 Sum of Squares is another name for variation
 There are two sources of variation
 the variation between the groups, SS(B), or
the variation due to the factor
 the variation within the groups, SS(W), or the
variation that can’t be explained by the factor
so it’s called the error variation
 Grand Mean
 The grand mean is the average of all the
values when the factor is ignored
 It is a weighted average of the individual
sample means
1
1
k
i i
i
k
i
i
n x
x
n





1 1 2 2
1 2
k k
k
n x n x n x
x
n n n
  

  
 Grand Mean for our example is 65.08
     7 75.71 9 67.11 8 53.50
7 9 8
1562
24
65.08
x
x
x
 

 


 Between Group Variation, SS(B)
   
2
1
k
i i
i
SS B n x x

 
       
2 2 2
1 1 2 2 k k
SS B n x x n x x n x x      
The Between Group Variation for our example is
SS(B)=1902
       
2 2 2
7 75.71 65.08 9 67.11 65.08 8 53.50 65.08SS B      
  1900.8376 1902SS B  
 Within Group Variation, SS(W)
  2
1
k
i i
i
SS W df s

 
  2 2 2
1 1 2 2 k k
SS W df s df s df s   
 The within group variation for our example is
3386
       6 310.90 8 119.86 7 80.29SS W   
  3386.31 3386SS W  
Source SS df MS F p
Between 1902
Within 3386
Total 5288
 Degrees of Freedom, df
 A degree of freedom occurs for each value that can
vary before the rest of the values are predetermined.
 The df is often one less than the number of values.
 The between group df is one less than the
number of groups
 We have three groups, so df(B) = 2
 The within group df is the sum of the individual
df’s of each group
 The sample sizes are 7, 9, and 8
 df(W) = 6 + 8 + 7 = 21
 The total df is one less than the sample size
 df(Total) = 24 – 1 = 23
Variation
Variance
df

Source SS df MS F p
Between 1902 2 951.0
Within 3386 21 161.2
Total 5288 23 229.9
 MS(B)= 1902 / 2= 951.0
 MS(W)= 3386 / 21= 161.2
 MS(T)= 5288 / 23= 229.9
 F test statistic
 An F test statistic is the ratio of two sample variances
 The MS(B) and MS(W) are two sample variances and
that’s what we divide to find F.
 F = MS(B) / MS(W)
 For our data, F = 951.0 / 161.2 = 5.9
 The F test is a right tail test
 The F test statistic has an F distribution with df(B)
numerator df and df(W) denominator df
 The p-value is the area to the right of the test statistic
 P(F2,21 > 5.9) = 0.009
Source SS df MS F p
Between 1902 2 951.0 5.9 0.009
Within 3386 21 161.2
Total 5288 23 229.9
The p-value is 0.009, which is less than
the significance level of 0.05, we reject the null hypothesis.
There is enough evidence to support the claim that there is a
difference in the mean scores of the front, middle, and
back rows in class.
 The p-value is 0.009, which is less than
the significance level of 0.05, so we reject
the null hypothesis.
 The null hypothesis is that the means of
the three rows in class were the same, but
we reject that, so at least one row has a
different mean.
 There is enough evidence to support the
claim that there is a difference in the mean
scores of the front, middle, and back rows
in class.
 The ANOVA doesn’t tell which row is
different, you would need to look at
confidence intervals or run post hoc tests
to determine that

More Related Content

What's hot

Non-parametric Statistical tests for Hypotheses testing
Non-parametric Statistical tests for Hypotheses testingNon-parametric Statistical tests for Hypotheses testing
Non-parametric Statistical tests for Hypotheses testingSundar B N
 
Statistics-Non parametric test
Statistics-Non parametric testStatistics-Non parametric test
Statistics-Non parametric testRabin BK
 
Statistics design
Statistics designStatistics design
Statistics designAhmed Taha
 
Design of Experiments (Pharma)
Design of Experiments (Pharma)Design of Experiments (Pharma)
Design of Experiments (Pharma)VaishnaviBhosale6
 
Advance Statistics - Wilcoxon Signed Rank Test
Advance Statistics - Wilcoxon Signed Rank TestAdvance Statistics - Wilcoxon Signed Rank Test
Advance Statistics - Wilcoxon Signed Rank TestJoshua Batalla
 
factorial design.pptx
factorial design.pptxfactorial design.pptx
factorial design.pptxSreeLatha98
 
The Kruskal-Wallis H Test
The Kruskal-Wallis H TestThe Kruskal-Wallis H Test
The Kruskal-Wallis H TestDr. Ankit Gaur
 
wilcoxon signed rank test
wilcoxon signed rank testwilcoxon signed rank test
wilcoxon signed rank testraj shekar
 
Factorial design \Optimization Techniques
Factorial design \Optimization TechniquesFactorial design \Optimization Techniques
Factorial design \Optimization TechniquesPriyanka Tambe
 
non parametric statistics
non parametric statisticsnon parametric statistics
non parametric statisticsAnchal Garg
 
P value, Power, Type 1 and 2 errors
P value, Power, Type 1 and 2 errorsP value, Power, Type 1 and 2 errors
P value, Power, Type 1 and 2 errorsRizwan S A
 
Design of Experiments (DOE)
Design of Experiments (DOE)Design of Experiments (DOE)
Design of Experiments (DOE)Imdad H. Mukeri
 
Statistical analysis using spss
Statistical analysis using spssStatistical analysis using spss
Statistical analysis using spssjpcagphil
 
ANOVA TEST by shafeek
ANOVA TEST by shafeekANOVA TEST by shafeek
ANOVA TEST by shafeekShafeek S
 

What's hot (20)

Non-parametric Statistical tests for Hypotheses testing
Non-parametric Statistical tests for Hypotheses testingNon-parametric Statistical tests for Hypotheses testing
Non-parametric Statistical tests for Hypotheses testing
 
Statistics-Non parametric test
Statistics-Non parametric testStatistics-Non parametric test
Statistics-Non parametric test
 
Statistics design
Statistics designStatistics design
Statistics design
 
Design of Experiments (Pharma)
Design of Experiments (Pharma)Design of Experiments (Pharma)
Design of Experiments (Pharma)
 
Advance Statistics - Wilcoxon Signed Rank Test
Advance Statistics - Wilcoxon Signed Rank TestAdvance Statistics - Wilcoxon Signed Rank Test
Advance Statistics - Wilcoxon Signed Rank Test
 
factorial design.pptx
factorial design.pptxfactorial design.pptx
factorial design.pptx
 
Design of Experiments
Design of ExperimentsDesign of Experiments
Design of Experiments
 
The Kruskal-Wallis H Test
The Kruskal-Wallis H TestThe Kruskal-Wallis H Test
The Kruskal-Wallis H Test
 
wilcoxon signed rank test
wilcoxon signed rank testwilcoxon signed rank test
wilcoxon signed rank test
 
Factorial design \Optimization Techniques
Factorial design \Optimization TechniquesFactorial design \Optimization Techniques
Factorial design \Optimization Techniques
 
non parametric statistics
non parametric statisticsnon parametric statistics
non parametric statistics
 
P value, Power, Type 1 and 2 errors
P value, Power, Type 1 and 2 errorsP value, Power, Type 1 and 2 errors
P value, Power, Type 1 and 2 errors
 
Non parametric test
Non parametric testNon parametric test
Non parametric test
 
Design of Experiments (DOE)
Design of Experiments (DOE)Design of Experiments (DOE)
Design of Experiments (DOE)
 
Contingency Tables
Contingency TablesContingency Tables
Contingency Tables
 
{ANOVA} PPT-1.pptx
{ANOVA} PPT-1.pptx{ANOVA} PPT-1.pptx
{ANOVA} PPT-1.pptx
 
Statistical analysis using spss
Statistical analysis using spssStatistical analysis using spss
Statistical analysis using spss
 
ANOVA TEST by shafeek
ANOVA TEST by shafeekANOVA TEST by shafeek
ANOVA TEST by shafeek
 
Statistical Power
Statistical PowerStatistical Power
Statistical Power
 
The t test
The t testThe t test
The t test
 

Similar to Anova test (20)

oneway.ppt
oneway.pptoneway.ppt
oneway.ppt
 
ANOVA.ppt
ANOVA.pptANOVA.ppt
ANOVA.ppt
 
Anova n metaanalysis
Anova n metaanalysisAnova n metaanalysis
Anova n metaanalysis
 
ANOVA One way ppt statistics.pptx
ANOVA One way ppt statistics.pptxANOVA One way ppt statistics.pptx
ANOVA One way ppt statistics.pptx
 
Full Lecture Presentation on ANOVA
Full Lecture Presentation on ANOVAFull Lecture Presentation on ANOVA
Full Lecture Presentation on ANOVA
 
oneway ANOVA.ppt
oneway ANOVA.pptoneway ANOVA.ppt
oneway ANOVA.ppt
 
Anova by Hazilah Mohd Amin
Anova by Hazilah Mohd AminAnova by Hazilah Mohd Amin
Anova by Hazilah Mohd Amin
 
ANOVA.ppt
ANOVA.pptANOVA.ppt
ANOVA.ppt
 
Analysis of variance ppt @ bec doms
Analysis of variance ppt @ bec domsAnalysis of variance ppt @ bec doms
Analysis of variance ppt @ bec doms
 
12-5-03.ppt
12-5-03.ppt12-5-03.ppt
12-5-03.ppt
 
Statistical Tools
Statistical ToolsStatistical Tools
Statistical Tools
 
12-5-03.ppt
12-5-03.ppt12-5-03.ppt
12-5-03.ppt
 
anova.ppt
anova.pptanova.ppt
anova.ppt
 
Analysis of Variance
Analysis of VarianceAnalysis of Variance
Analysis of Variance
 
ayANOVA.ppt
ayANOVA.pptayANOVA.ppt
ayANOVA.ppt
 
ANOVAs01.ppt
ANOVAs01.pptANOVAs01.ppt
ANOVAs01.ppt
 
ANOVAs01.ppt
ANOVAs01.pptANOVAs01.ppt
ANOVAs01.ppt
 
ANOVAs01.ppt
ANOVAs01.pptANOVAs01.ppt
ANOVAs01.ppt
 
ANOVAs01.ppt
ANOVAs01.pptANOVAs01.ppt
ANOVAs01.ppt
 
ANOVAs01.ppt
ANOVAs01.pptANOVAs01.ppt
ANOVAs01.ppt
 

Recently uploaded

Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdfKamal Acharya
 
fluid mechanics gate notes . gate all pyqs answer
fluid mechanics gate notes . gate all pyqs answerfluid mechanics gate notes . gate all pyqs answer
fluid mechanics gate notes . gate all pyqs answerapareshmondalnita
 
Natalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in KrakówNatalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in Krakówbim.edu.pl
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationRobbie Edward Sayers
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdfKamal Acharya
 
fundamentals of drawing and isometric and orthographic projection
fundamentals of drawing and isometric and orthographic projectionfundamentals of drawing and isometric and orthographic projection
fundamentals of drawing and isometric and orthographic projectionjeevanprasad8
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxwendy cai
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringC Sai Kiran
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxR&R Consult
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfAbrahamGadissa
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industriesMuhammadTufail242431
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdfKamal Acharya
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsAtif Razi
 
İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopEmre Günaydın
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdfKamal Acharya
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234AafreenAbuthahir2
 
A case study of cinema management system project report..pdf
A case study of cinema management system project report..pdfA case study of cinema management system project report..pdf
A case study of cinema management system project report..pdfKamal Acharya
 
Pharmacy management system project report..pdf
Pharmacy management system project report..pdfPharmacy management system project report..pdf
Pharmacy management system project report..pdfKamal Acharya
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdfKamal Acharya
 

Recently uploaded (20)

Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdf
 
fluid mechanics gate notes . gate all pyqs answer
fluid mechanics gate notes . gate all pyqs answerfluid mechanics gate notes . gate all pyqs answer
fluid mechanics gate notes . gate all pyqs answer
 
Natalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in KrakówNatalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in Kraków
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
fundamentals of drawing and isometric and orthographic projection
fundamentals of drawing and isometric and orthographic projectionfundamentals of drawing and isometric and orthographic projection
fundamentals of drawing and isometric and orthographic projection
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptx
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdf
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
 
İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering Workshop
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdf
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
A case study of cinema management system project report..pdf
A case study of cinema management system project report..pdfA case study of cinema management system project report..pdf
A case study of cinema management system project report..pdf
 
Pharmacy management system project report..pdf
Pharmacy management system project report..pdfPharmacy management system project report..pdf
Pharmacy management system project report..pdf
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdf
 

Anova test

  • 1. BRANCH :- FOOD PROCESSING AND TECHNOLOGY in the Subject of Food Standard and Quality Assurance[2171401] On the Topic of ANOVA model [how ANOVA work?] with example Created by : mahesh kapadiya 150010114020 Parth patel 130010114035
  • 2. •The analysis of variance is developed by R.A. fisher in 1920. •If the number of sample is more than two then Z-test and T-test can not be used. •The technique of variance analysis developed by fisher is very useful in very such case and with it’s help it is possible to study the significance of difference of mean values of large no. of samples at a same time. •The variance analysis studies the significance of the difference in means by analysing variance. •The variances would differ only when the means are significantly different. •The technique of the analysis of variance as developed by Fisher is capable of Fruitful application in a variety of problems. •Ho : Variability w/i groups = variability b/t groups. • Ha : Variability w/i groups does not = variability b/t groups. Introduction
  • 3. • 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 over all mean. •variation WITHIN groups : for each data value we look at the difference between that value and the mean of its group. F-STATISTICS
  • 4. •The ANOVA F-statistic is a ratio of the Between Group Variation divided by the Within Group Variation: F= MSC/MSE where, MSC: variance between the sample and ,MSE: variance within the sample •A large F is evidence against H0 , since it indicates that there is more difference Between groups than within groups.
  • 5.  The null hypothesis is that the means are all equal  The alternative hypothesis is that at least one of the means is different 0 1 2 3 : k H        •The samples are independently drawn. • The population are normally distributed, with common variance. •They occur at random and independent of each other in the groups. •The effects of various components are additive. Assumption in ANOVA analysis
  • 6.  The statistics classroom is divided into three rows: front, middle, and back  The instructor noticed that the further the students were from him, the more likely they were to miss class or use an instant messenger during class  He wanted to see if the students further away did worse on the exams The ANOVA doesn’t test that one mean is less than another, only whether they’re all equal or at least one is different.
  • 7. 0 : F M B H      A random sample of the students in each row was taken  The score for those students on the second exam was recorded  Front: 82, 83, 97, 93, 55, 67, 53  Middle: 83, 78, 68, 61, 77, 54, 69, 51, 63  Back: 38, 59, 55, 66, 45, 52, 52, 61
  • 8. The summary statistics for the grades of each row are shown in the table below Row Front Middle Back Sample size 7 9 8 Mean 75.71 67.11 53.50 St. Dev 17.63 10.95 8.96 Variance 310.90 119.86 80.29 Variation 4Variation is the sum of the squares of the deviations between a value and the mean of the value
  • 9.  Sum of Squares is abbreviated by SS and often followed by a variable in parentheses such as SS(B) or SS(W) so we know which sum of squares we’re talking about  Are all of the values identical?  No, so there is some variation in the data  This is called the total variation  Denoted SS(Total) for the total Sum of Squares (variation)  Sum of Squares is another name for variation
  • 10.  There are two sources of variation  the variation between the groups, SS(B), or the variation due to the factor  the variation within the groups, SS(W), or the variation that can’t be explained by the factor so it’s called the error variation  Grand Mean  The grand mean is the average of all the values when the factor is ignored  It is a weighted average of the individual sample means 1 1 k i i i k i i n x x n      1 1 2 2 1 2 k k k n x n x n x x n n n       
  • 11.  Grand Mean for our example is 65.08      7 75.71 9 67.11 8 53.50 7 9 8 1562 24 65.08 x x x         Between Group Variation, SS(B)     2 1 k i i i SS B n x x            2 2 2 1 1 2 2 k k SS B n x x n x x n x x      
  • 12. The Between Group Variation for our example is SS(B)=1902         2 2 2 7 75.71 65.08 9 67.11 65.08 8 53.50 65.08SS B         1900.8376 1902SS B    Within Group Variation, SS(W)   2 1 k i i i SS W df s      2 2 2 1 1 2 2 k k SS W df s df s df s   
  • 13.  The within group variation for our example is 3386        6 310.90 8 119.86 7 80.29SS W      3386.31 3386SS W   Source SS df MS F p Between 1902 Within 3386 Total 5288
  • 14.  Degrees of Freedom, df  A degree of freedom occurs for each value that can vary before the rest of the values are predetermined.  The df is often one less than the number of values.  The between group df is one less than the number of groups  We have three groups, so df(B) = 2  The within group df is the sum of the individual df’s of each group  The sample sizes are 7, 9, and 8  df(W) = 6 + 8 + 7 = 21  The total df is one less than the sample size  df(Total) = 24 – 1 = 23
  • 15. Variation Variance df  Source SS df MS F p Between 1902 2 951.0 Within 3386 21 161.2 Total 5288 23 229.9  MS(B)= 1902 / 2= 951.0  MS(W)= 3386 / 21= 161.2  MS(T)= 5288 / 23= 229.9
  • 16.  F test statistic  An F test statistic is the ratio of two sample variances  The MS(B) and MS(W) are two sample variances and that’s what we divide to find F.  F = MS(B) / MS(W)  For our data, F = 951.0 / 161.2 = 5.9  The F test is a right tail test  The F test statistic has an F distribution with df(B) numerator df and df(W) denominator df  The p-value is the area to the right of the test statistic  P(F2,21 > 5.9) = 0.009
  • 17. Source SS df MS F p Between 1902 2 951.0 5.9 0.009 Within 3386 21 161.2 Total 5288 23 229.9 The p-value is 0.009, which is less than the significance level of 0.05, we reject the null hypothesis. There is enough evidence to support the claim that there is a difference in the mean scores of the front, middle, and back rows in class.
  • 18.  The p-value is 0.009, which is less than the significance level of 0.05, so we reject the null hypothesis.  The null hypothesis is that the means of the three rows in class were the same, but we reject that, so at least one row has a different mean.
  • 19.  There is enough evidence to support the claim that there is a difference in the mean scores of the front, middle, and back rows in class.  The ANOVA doesn’t tell which row is different, you would need to look at confidence intervals or run post hoc tests to determine that