Professional Documents
Culture Documents
9.3 One Factor Analysis of Variance
9.3 One Factor Analysis of Variance
9.3 One Factor Analysis of Variance
Remark 9.3.5: Analysis of variance (ANOVA) attempts to analyze the variation in a set of
responses and assign portions of this variation to each variable in a set of independent variables.
1. Let X1 , X2 , ..., Xm be independent random variables with unknown mean µ1 , µ2 , ..., µm and
2
unknown variance σ .
2. Hypotheses:
3. Input: n1 random sample values for X1 , n2 random sample values for X2 ,..., nm random
sample values for Xm such that
n1 + n2 + ... + nm = n
and
ni
1 X
Xi := Xij
ni
j=1
m
1 X
X := Xi
n
i=1
ni
m X
X
T SS := (Xij − X)2 .
i=1 j=1
The sum of squares for error (SSE) represents the variability around the treatment
means that is attributed to sampling error:
ni
m X
X
SSE := (Xij − Xi )2 .
i=1 j=1
The sum of squares between treatments (SST) is the variation between the
treatment means:
m
X
SST := ni (Xi − X)2 .
i=1
The mean square for treatments (MST) measures the variability among the
treatment means:
SST
M ST := ,
m−1
where the number of degrees of freedom for the m treatments is m − 1.
The mean square for error (MSE) measures the sampling variability within the
treatments:
SSE
M SE := .
n−m
An F −statistic is given by the ratio of MST to MSE:
M ST
F := .
M SE
H0 : µ1 = µ2 = ... = µm
Example 9.3.11: Suppose we would like to estimate the favorability index of four dierent
brands of widgets by checking the review of three dierent customers. Let Xi (for i ∈ {1, 2, 3, 4}
by the (random) favorability index of Widget i, which is a normal random variable with mean
µi and variance σ2 (all widgets share the same variance). The review scores from the three
customers are given by in the table below.
Widget 1 13 8 9 X1 = 10
Widget 2 15 11 13 X2 = 13
Widget 3 8 12 7 X3 = 9
Widget 4 11 15 10 X4 = 12
a. Test if at least two of the three average customer responses to the widgets are dierent at
α = 0.05.
Source Sum of Squares Degrees of Freedom Mean Square F ratio
Treatment
Error
Total
Example 9.3.13: Fifteen dierent patients are subjected to three drugs. Let Xi represent the
recovery score for Drug i, which is a normal random variable with mean µi and variance σ2. A
higher number indicates the patient is better than a patient with a lower number.
a. Test if at least two of the three average patient responses to the drugs are dierent at
α = 0.05.
Treatment
Error
Total