Professional Documents
Culture Documents
SMQ27103:ANALYSIS OF
VARIANCE(ANOVA)
1
Outline Chapter 4
4.1 Introduction
4.2 Basic Concepts in Analysis of Variance (ANOVA)
4.3 Assumptions of ANOVA
4.4 Completely Randomized Design (One-way ANOVA)
Introduction
Variability in Response Variable WEEK 11
Randomizing Experimental Units to Factor Levels
4.5 ANOVA F-test Statistic
The Concept of ANOVA F-test
Characteristics of F-Distribution
Steps in Performing One-way ANOVA Part 2
4.6 Kruskal-Wallis Test: Nonparametric Alternative to One-way ANOVA WEEK 12
4.7 Randomized Complete Block Design (Two-way ANOVA with Replication)
Introduction to Factorial Design
Variations in Two Factors Factorial Design Part
WEEK 13
ANOVA Table for Two Factors Factorial Design
Steps in Performing ANOVA for Two Factors Factorial Design
Interaction Plot
Possible Outcomes of a 2 x 2 Factorial Design
WEEK 11
4.1 Introduction
4.2 Basic Concepts of Analysis of Variance (Anova)
Learning outcome:
- Able to recognize terminologies of ANOVA
4.3 Assumption of Anova
Learning outcome:
- Able to state the assumption of ANOVA
4.4 Completely Randomized Design (One-Way ANOVA)
Learning outcome:
- Able to apply CRD using EXCEL and make conlcusion based on ANOVA output
4.5 ANOVA F-test Statistic 3
4.1 INTRODUCTION 4
Statistical Inference Method
ANOVA
SEM 2 2021,2022
4.2 BASIC CONCEPT IN ANOVA 5
Response/ Afffect the
Dependent outcome of
Variable response
variable
Factor/
Independent Groups of
Variable individuals or
objects of
being
Treatment/ observed
Groups
Result or
Experimental outcome
Unit Level of from
factor set up experimental or
at random by observation
researcher study
EXAMPLE 4.1 6
MUST BE INDEPENDENT
The samples
k sample are
normally or
Independent
approximately
(Not Related
normal
distributed
4.4 COMPLETELY RANDOMIZED DESIGN(CRD)
(ONE-WAY ANOVA) 9
Total Variation
Variation of Variation between
observations in groups capture
each group the effect of
around the group treatment on the
mean response variable
Variation of the Variation within
group means groups represent
around the grand the random error
mean not captured by
the experimental
treatments
17
A large value of between groups variation will lead to a higher chance to reject the null hypothesis and
consequently one can gives evidence based on sample data that the groups' population means are
significantly different.
Similarly, large value of within groups variation will reduce the chance to reject the null hypothesis that
the groups means are all equal.
Randomizing Experimental Units to Factor Levels 18
Table 4.4.1 Assigning treatments to experimental units
Treatment Individual Randomization
SEM 2 2021,2022
ANOVA F-Test Statistic 20
F-statistic F =
explained variation
unexplained variation
=
between groups variation
within groups variation
used to perform
the hypothesis Value of between groups variation
that is higher than within groups' variation will lead
to a large value of F-statistic.
means
The Total 21
Variation
Response variable is
given by the
difference of each
observation, from
the grand mean
The difference
between the
individual
observation 𝑦𝑖𝑗
and group mean The difference
𝑦𝑘 for k=1, 2, 3, between the
group mean 𝑦𝑘 for
k =1, 2, 3, ... and
the grand mean
𝑌.
22
Total Variation
=
Between groups
variation
+
Within groups
variation
23
SST
sum of squares
of total variation
in the response
variable
SSTR
sum of squares
due to variation
between the groups
SSE
sum of squares
due to the
sampling error
and calculated
from within
groups variation
SEM 2 2021,2022
24
F-test statistic
is
defined as ?
25
Ratio of the
'average variability'
between/among groups
divided by
‘average variability’
within groups
SEM 2 2021,2022 26
27
ANOVA Test
used to test
what kind of
hypothesis?
ANOVA F-Test Statistic 28
F-statistic F =
explained variation
unexplained variation
=
between groups variation
within groups variation
used to perform
the hypothesis Value of between groups variation
that is higher than within groups' variation will lead
to a large value of F-statistic.
means
29
𝑯𝟎 : 𝝁𝟏 = 𝝁𝟐 = . . . =𝝁𝒌
(No difference between the treatments mean/ groups mean)
SEM 2 2021,2022
Characteristics of F-distribution 30
• Not a symmetric
distribution.
• Not negative value
• Shape of F-
distribution is
F-distribution is a right-tailed
determined by two distribution, the rejection region
is the region on the right
degrees of freedom
Steps in Performing One-way ANOVA 31
Comparing the drying time (in minutes) for k different paint brands.
𝑀𝑆𝑇𝑅
𝐹𝑡𝑒𝑠𝑡 =
𝑀𝑆𝐸
35
STEP 4
State the conclusion in the context of the problem and the claim.
STEP 1
𝐹𝑐𝑣 = 𝐹𝛼,𝑘−1,𝑁−𝑘
At 𝜶 = 0.05, k = 3, N=18
and by using statistical table for F-distribution,
F 0.05 , 2.15 = 3.682.
40
STEP 3
A 75 82 68 77 90 65
B 56 53 45 61 58 48
C 45 47 50 44 60 51
43
There is sufficient evidence to support the claim that the mean drying
time between the three brands of paint are significantly different at \alpha
= 0.05
46
STEP 5
State the conclusion in the context of the problem and the claim.
47
4.6 KRUSKAL-WALLIS TEST:
NONPARAMETRIC ALTERNATIVE TO 48
ONE-WAY ANOVA
STEP 1
2
Obtain the critical value, 𝜒𝛼,𝑘−1
• Combine the groups or samples and rank all observations from the
smallest to the largest.
* For ties observations, calculate the average of the ranks.
2
If H > 𝜒𝛼,𝑘−1 , we reject H0, otherwise fail to reject H0.
54
STEP 5
State the conclusion in the context of the problem and the claim.
EXAMPLE 4.7 55
Three machines (A, B and C) are used in the packaging of 1000 g milk powder. Each machine is set
so that each packet will contain of an average of 1000 g milk powder. Samples of five packets from
each machine are randomly selected and the amount of milk powder for each packet is measured.
The data set is given below and assumed that the data set is not normally distributed. By using
α=0.05, test the hypothesis that there is a difference in the amount of milk powder packed by the
three machines.
STEP 1
State the null and alternative hypotheses.
OR
2
Obtain the critical value, 𝜒𝛼,𝑘−1
2
If H > 𝜒𝛼,𝑘−1 , we reject H0, otherwise fail to reject H0.
State the conclusion in the context of the problem and the claim.