STATISTICS FOR ENGINEERS
AND SCIENTISTS
Farhan Alfin
Analysis of Variance
(ANOVA)
Analysis of Variance (ANOVA)
 When an F test is used to test a
hypothesis concerning the means of
three or more populations, the
technique is called analysis of
variance (ANOVA).
 Although the t test is commonly used
to compare two means, it should not
be used to compare three or more
Assumptions for the F Test for
Comparing Three or More Means
 The populations from which the samples
were obtained must be normally or
approximately normally distributed.
 The samples must be independent of each
other.
 The variances of the populations must be
equal.
 Although means are being compared in this F
test, variances are used in the test instead of
the means.
 Two different estimates of the population
variance are made.
Analysis of Variance
 Between-group variance - this involves
computing the variance by using the
means of the groups or between the
groups.
 Within-group variance - this involves
computing the variance by using all the
data and is not affected by differences
in the means.
F-test
 If there is no difference in the means, the
between-group variance will be approximately
equal to the within-group variance, and the F
test value will be close to 1 – the null
hypothesis will not be rejected
 When the means differ significantly, the
between-group variance will be much larger
than the within-group variance; the F test will
be significantly greater than 1 – the null
hypothesis will be rejected
Hypothesis in Analysis of
Variance
 The following hypotheses should be
used when testing for the difference
between three or more means.
 H0:   =  = … = k
 H1: At least one mean is different from
the others.
Degrees of Freedom in
Analysis of Variance
 d.f.N. = k – 1, where k is the number of
groups.
 d.f.D. = N – k, where N is the sum of the
sample sizes of the groups.
 The sample sizes do not need to be
equal
Procedure for Finding
F Test Value
 Step 1- Find the mean and variance of
each sample
 Step 2- Find the grand mean
 Step 3- Find the between-group
variance
 Step 4- Find the within-group variance
 Step 5- Find the F test value
Analysis of Variance
Summary Table
Source
Sum of
Square
s d.f.
Mean
Square
s F
Betwee
n
SS B k - 1 MS B
MS B
Within SS W N – k MS W
MS W
Total
Sum of Squares Between
Groups
 The sum of the squares between
groups, denoted SS B, is found using
the following formula:
1
)
( 2
2




k
X
X
S
GM
i
B
Sum of Squares Between
Groups
 The grand mean, denoted by XGM, is the
mean of all values in the samples
N
X
X
i
GM


Sum of Squares Within
Groups
 The sum of the squares within groups,
denoted SSW, is found using the following
formula:
 Note: This formula finds an overall variance by calculating
a weighted average of the individual variances; it does not
involve using differences of the means




)
1
(
2
2
i
i
w
n
S
S
The Means Squares
 The mean square values are equal to the
sum of the squares divided by the degrees
of freedom
k
N
S
MS
k
S
MS w
w
B
B




2
2
1
Analysis of Variance -Example
 A cereal chemist studied the effect of
wheat variety on test weight; he
studied 3 wheat verities. The test
weights of wheat are shown on the
table (next slide).
 Is there a significant difference in the
mean waiting times of customers for
each store using  = 0.05?
Analysis of Variance -Example
variety A variety B variety C
75 77 78
74 78 79
76 75 80
75 76 77
77 78 78
76 77 77
 Step 1: State the hypotheses and identify
the claim.
 H0:   = 
 H1: At least one mean is different from the
others (claim).
Analysis of Variance -Example
 Step 2: Find the critical value. Since
k = 3, N = 18, and  = 0.05, d.f.N. = k – 1 =
3 – 1= 2, d.f.D. = N – k = 18 – 3 = 15. The
critical value is 3.68.
 Step 3: Compute the test value. From the
MINITAB output, F = 8.35.
Analysis of Variance -Example
 Step 4: Make a decision. Since F 8.35 <
3.68, the decision is to reject the null
hypothesis.
 Step 5: Summarize the results. There is
enough evidence to support the claim that
there is a difference among the means.
Analysis of Variance -Example
Analysis of Variance -Example
Tukey Test
 The Tukey test can also be used after
the analysis of variance has been
completed to make pairwise com-
parisons between means when the
groups have the same sample size
 The symbols for the test value in the
Tukey test is q
Formula for Tukey Test
 where Xi and Xj are the means of the samples
being compared, n is the size of the sample and
sW
2 is the within-group variance
n
S
x
x
q
w
j
i
/
2


Tukey Test Results
 When the absolute value of q is
greater than the critical value for the
Tukey test, there is a significant
difference between the two means
being compared
Two-Way Analysis of
Variance
 The two-way analysis of variance is an
extension of a one way analysis of
variance already discussed; it involves
two independent variables
 The independent variables are also
called factors
Two-Way Analysis of
Variance
 Using the two-way analysis of
variance, the researcher is able to test
the effects of two independent
variables or factors on one dependent
variable
 In addition, the interaction effect of
the two variables can be used
Two-Way ANOVA Terms
 Variables or factors are changed
between two levels – two different
treatments
 The groups for a two-way ANOVA are
sometimes called treatment groups
Two-Way ANOVA Designs
 3 X 2 Desgin 3 X 3 Desgin
B1 B2
A1
A2
A3
B1 B2 B3
A1
A2
A3
Two-Way ANOVA
Null-Hypothesis
 A two-way ANOVA has several null-
hypotheses
 There is one for each independent
variable and one for the interaction
Two-Way ANOVA Summary
Table
Sourc
e
Sum of
Square
s
d.f.
Mean
Square F
A SSa a – 1 MSA FA
B SSB b – 1 MSB FB
A x B SSAxB (a-1)(b-1) MSAxB FAxB
Within
(error)
SSW ab(n-1) MSW
Total
Assumptions for the
Two-Way ANOVA
 The population from which the samples were
obtained must be normally or approximately
normally distributed
 The samples must be independent
 The variances of the population from which
the samples were selected must be equal
 The groups must be equal in sample size
Graphing Interactions
 To interpret the results of a two-way
analysis of variance, researchers
suggest drawing a graph, plotting the
means of each group, analyzing the
graph, and interpreting the results
Disordinal Interaction
 If the graph of the means has lines that
intersect each other, the interaction is
said to be disordinal
 When there is a disordinal interaction,
one should not interpret the main
effects without considering the
interaction effect
Disordinal Interaction
B-1
B-2
1 2
Ordinal Interaction
 An ordinal interaction is evident when the
lines of the graph do not cross nor are they
parallel
 If the F test value for the interaction is
significant and the lines do not cross each
other, then the interaction is said to be
ordinal and the main effects can be
interpreted differently of each other
Ordinal Interaction
No Interaction
 When there is no significant interaction
effect, the lines in the graph will be
parallel or approximately parallel
 When this simulation occurs, the main
effects can be interpreted differently of
each other because there is no
significant interaction
No Interaction
Y
X

More Related Content

PPTX
Estimating a Population Standard Deviation or Variance
PPT
T12 non-parametric tests
PPTX
2.2 Histograms
PPT
Skewness and Kurtosis
PPTX
Parametric tests
PDF
Simple linear regression
PPTX
Lecture 6. univariate and bivariate analysis
PPTX
Sampling Distributions and Estimators
Estimating a Population Standard Deviation or Variance
T12 non-parametric tests
2.2 Histograms
Skewness and Kurtosis
Parametric tests
Simple linear regression
Lecture 6. univariate and bivariate analysis
Sampling Distributions and Estimators

What's hot (20)

PPTX
Anova (f test) and mean differentiation
PPT
Mann Whitney U test
PPTX
The mann whitney u test
PPT
Mann Whitney U Test
PPTX
Regression Analysis
PPTX
t distribution, paired and unpaired t-test
PPTX
Curve fitting
PPTX
non parametric statistics
PDF
Probability Distributions
PPTX
Kruskal wallis test
PPTX
Chi square test for homgeneity
PPT
oneway ANOVA.ppt
PDF
Types of correlation coefficients
PPTX
Nonparametric tests
PPTX
One sided or one-tailed tests
PPTX
PDF
Mpc 006 - 02-03 partial and multiple correlation
PPTX
Binomial Probability Distributions
PPTX
Test hypothesis & p-value
PPTX
T test and types of t-test
Anova (f test) and mean differentiation
Mann Whitney U test
The mann whitney u test
Mann Whitney U Test
Regression Analysis
t distribution, paired and unpaired t-test
Curve fitting
non parametric statistics
Probability Distributions
Kruskal wallis test
Chi square test for homgeneity
oneway ANOVA.ppt
Types of correlation coefficients
Nonparametric tests
One sided or one-tailed tests
Mpc 006 - 02-03 partial and multiple correlation
Binomial Probability Distributions
Test hypothesis & p-value
T test and types of t-test
Ad

Similar to Ch7 Analysis of Variance (ANOVA) (20)

PPTX
test_using_one-way_analysis_of_varianceANOVA_063847.pptx
PPTX
Shovan anova main
PPTX
Anova; analysis of variance
DOCX
ANOVA SNEHA.docx
PPTX
Anova in easyest way
PPTX
ANOVA-One Way Classification
PPT
Anova by Hazilah Mohd Amin
PPTX
Analysis of variance (ANOVA)
PPTX
ANOVA BIOstat short explaination .pptx
PPTX
Anova ppt
PDF
Anova stat 512
PPTX
Full Lecture Presentation on ANOVA
PPTX
Anova n metaanalysis
PDF
anovappt-141025002857-conversion-gate01 (1).pdf
PPTX
Analysis of Variance , Definition , Steps to calculate.
PPT
ANOVA ANALYSIS OF VARIANCE power point.pdf
PPTX
Analysis of variance
PPTX
parametric test of difference z test f test one-way_two-way_anova
PPTX
Tugasan kumpulan anova
test_using_one-way_analysis_of_varianceANOVA_063847.pptx
Shovan anova main
Anova; analysis of variance
ANOVA SNEHA.docx
Anova in easyest way
ANOVA-One Way Classification
Anova by Hazilah Mohd Amin
Analysis of variance (ANOVA)
ANOVA BIOstat short explaination .pptx
Anova ppt
Anova stat 512
Full Lecture Presentation on ANOVA
Anova n metaanalysis
anovappt-141025002857-conversion-gate01 (1).pdf
Analysis of Variance , Definition , Steps to calculate.
ANOVA ANALYSIS OF VARIANCE power point.pdf
Analysis of variance
parametric test of difference z test f test one-way_two-way_anova
Tugasan kumpulan anova
Ad

More from Farhan Alfin (20)

PPT
Experimental design
PPT
Principles of experimental design
PPT
Ch9 Correlation and Regression
PPT
Ch8 Chi-Square Procedures
PPT
Ch6 Testing the Difference between Means, Variances
PPT
Ch5 Hypothesis Testing
PPT
Ch4 Confidence Interval
PPT
Ch3 Probability and The Normal Distribution
PPT
Ch2 Data Description
PPT
Ch1 The Nature of Statistics
PPTX
تقانة التعبئة والتغليف -8
PPTX
تقانة التعبئة والتغليف -7
PPTX
تقانة التعبئة والتغليف -6
PPTX
تقانة التعبئة والتغليف -5
PPTX
تقانة التعبئة والتغليف -4
PPTX
تقانة التعبئة والتغليف -3
PPTX
تقانة التعبئة والتغليف -2
PPTX
تقانة التعبئة والتغليف -1
PPT
تقانة طحن القمح
PPT
الطحن التجريبي
Experimental design
Principles of experimental design
Ch9 Correlation and Regression
Ch8 Chi-Square Procedures
Ch6 Testing the Difference between Means, Variances
Ch5 Hypothesis Testing
Ch4 Confidence Interval
Ch3 Probability and The Normal Distribution
Ch2 Data Description
Ch1 The Nature of Statistics
تقانة التعبئة والتغليف -8
تقانة التعبئة والتغليف -7
تقانة التعبئة والتغليف -6
تقانة التعبئة والتغليف -5
تقانة التعبئة والتغليف -4
تقانة التعبئة والتغليف -3
تقانة التعبئة والتغليف -2
تقانة التعبئة والتغليف -1
تقانة طحن القمح
الطحن التجريبي

Recently uploaded (20)

PDF
advance database management system book.pdf
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
HVAC Specification 2024 according to central public works department
PDF
English Textual Question & Ans (12th Class).pdf
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
semiconductor packaging in vlsi design fab
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
PPTX
Introduction to pro and eukaryotes and differences.pptx
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
PPTX
Education and Perspectives of Education.pptx
PDF
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
advance database management system book.pdf
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
A powerpoint presentation on the Revised K-10 Science Shaping Paper
HVAC Specification 2024 according to central public works department
English Textual Question & Ans (12th Class).pdf
Environmental Education MCQ BD2EE - Share Source.pdf
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
B.Sc. DS Unit 2 Software Engineering.pptx
semiconductor packaging in vlsi design fab
Cambridge-Practice-Tests-for-IELTS-12.docx
Uderstanding digital marketing and marketing stratergie for engaging the digi...
Introduction to pro and eukaryotes and differences.pptx
Unit 4 Computer Architecture Multicore Processor.pptx
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
Education and Perspectives of Education.pptx
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf

Ch7 Analysis of Variance (ANOVA)

  • 1. STATISTICS FOR ENGINEERS AND SCIENTISTS Farhan Alfin Analysis of Variance (ANOVA)
  • 2. Analysis of Variance (ANOVA)  When an F test is used to test a hypothesis concerning the means of three or more populations, the technique is called analysis of variance (ANOVA).  Although the t test is commonly used to compare two means, it should not be used to compare three or more
  • 3. Assumptions for the F Test for Comparing Three or More Means  The populations from which the samples were obtained must be normally or approximately normally distributed.  The samples must be independent of each other.  The variances of the populations must be equal.  Although means are being compared in this F test, variances are used in the test instead of the means.  Two different estimates of the population variance are made.
  • 4. Analysis of Variance  Between-group variance - this involves computing the variance by using the means of the groups or between the groups.  Within-group variance - this involves computing the variance by using all the data and is not affected by differences in the means.
  • 5. F-test  If there is no difference in the means, the between-group variance will be approximately equal to the within-group variance, and the F test value will be close to 1 – the null hypothesis will not be rejected  When the means differ significantly, the between-group variance will be much larger than the within-group variance; the F test will be significantly greater than 1 – the null hypothesis will be rejected
  • 6. Hypothesis in Analysis of Variance  The following hypotheses should be used when testing for the difference between three or more means.  H0:   =  = … = k  H1: At least one mean is different from the others.
  • 7. Degrees of Freedom in Analysis of Variance  d.f.N. = k – 1, where k is the number of groups.  d.f.D. = N – k, where N is the sum of the sample sizes of the groups.  The sample sizes do not need to be equal
  • 8. Procedure for Finding F Test Value  Step 1- Find the mean and variance of each sample  Step 2- Find the grand mean  Step 3- Find the between-group variance  Step 4- Find the within-group variance  Step 5- Find the F test value
  • 9. Analysis of Variance Summary Table Source Sum of Square s d.f. Mean Square s F Betwee n SS B k - 1 MS B MS B Within SS W N – k MS W MS W Total
  • 10. Sum of Squares Between Groups  The sum of the squares between groups, denoted SS B, is found using the following formula: 1 ) ( 2 2     k X X S GM i B
  • 11. Sum of Squares Between Groups  The grand mean, denoted by XGM, is the mean of all values in the samples N X X i GM  
  • 12. Sum of Squares Within Groups  The sum of the squares within groups, denoted SSW, is found using the following formula:  Note: This formula finds an overall variance by calculating a weighted average of the individual variances; it does not involve using differences of the means     ) 1 ( 2 2 i i w n S S
  • 13. The Means Squares  The mean square values are equal to the sum of the squares divided by the degrees of freedom k N S MS k S MS w w B B     2 2 1
  • 14. Analysis of Variance -Example  A cereal chemist studied the effect of wheat variety on test weight; he studied 3 wheat verities. The test weights of wheat are shown on the table (next slide).  Is there a significant difference in the mean waiting times of customers for each store using  = 0.05?
  • 15. Analysis of Variance -Example variety A variety B variety C 75 77 78 74 78 79 76 75 80 75 76 77 77 78 78 76 77 77
  • 16.  Step 1: State the hypotheses and identify the claim.  H0:   =   H1: At least one mean is different from the others (claim). Analysis of Variance -Example
  • 17.  Step 2: Find the critical value. Since k = 3, N = 18, and  = 0.05, d.f.N. = k – 1 = 3 – 1= 2, d.f.D. = N – k = 18 – 3 = 15. The critical value is 3.68.  Step 3: Compute the test value. From the MINITAB output, F = 8.35. Analysis of Variance -Example
  • 18.  Step 4: Make a decision. Since F 8.35 < 3.68, the decision is to reject the null hypothesis.  Step 5: Summarize the results. There is enough evidence to support the claim that there is a difference among the means. Analysis of Variance -Example
  • 20. Tukey Test  The Tukey test can also be used after the analysis of variance has been completed to make pairwise com- parisons between means when the groups have the same sample size  The symbols for the test value in the Tukey test is q
  • 21. Formula for Tukey Test  where Xi and Xj are the means of the samples being compared, n is the size of the sample and sW 2 is the within-group variance n S x x q w j i / 2  
  • 22. Tukey Test Results  When the absolute value of q is greater than the critical value for the Tukey test, there is a significant difference between the two means being compared
  • 23. Two-Way Analysis of Variance  The two-way analysis of variance is an extension of a one way analysis of variance already discussed; it involves two independent variables  The independent variables are also called factors
  • 24. Two-Way Analysis of Variance  Using the two-way analysis of variance, the researcher is able to test the effects of two independent variables or factors on one dependent variable  In addition, the interaction effect of the two variables can be used
  • 25. Two-Way ANOVA Terms  Variables or factors are changed between two levels – two different treatments  The groups for a two-way ANOVA are sometimes called treatment groups
  • 26. Two-Way ANOVA Designs  3 X 2 Desgin 3 X 3 Desgin B1 B2 A1 A2 A3 B1 B2 B3 A1 A2 A3
  • 27. Two-Way ANOVA Null-Hypothesis  A two-way ANOVA has several null- hypotheses  There is one for each independent variable and one for the interaction
  • 28. Two-Way ANOVA Summary Table Sourc e Sum of Square s d.f. Mean Square F A SSa a – 1 MSA FA B SSB b – 1 MSB FB A x B SSAxB (a-1)(b-1) MSAxB FAxB Within (error) SSW ab(n-1) MSW Total
  • 29. Assumptions for the Two-Way ANOVA  The population from which the samples were obtained must be normally or approximately normally distributed  The samples must be independent  The variances of the population from which the samples were selected must be equal  The groups must be equal in sample size
  • 30. Graphing Interactions  To interpret the results of a two-way analysis of variance, researchers suggest drawing a graph, plotting the means of each group, analyzing the graph, and interpreting the results
  • 31. Disordinal Interaction  If the graph of the means has lines that intersect each other, the interaction is said to be disordinal  When there is a disordinal interaction, one should not interpret the main effects without considering the interaction effect
  • 33. Ordinal Interaction  An ordinal interaction is evident when the lines of the graph do not cross nor are they parallel  If the F test value for the interaction is significant and the lines do not cross each other, then the interaction is said to be ordinal and the main effects can be interpreted differently of each other
  • 35. No Interaction  When there is no significant interaction effect, the lines in the graph will be parallel or approximately parallel  When this simulation occurs, the main effects can be interpreted differently of each other because there is no significant interaction