3.9 Three-Way Analysis Of Variance

In a three-way model there are three factors of interest \[Y_{ijlm}=\mu _{ijl}+\varepsilon _{ijlm}\] \[i=1,2,\ldots ,a\qquad j=1,2,\ldots ,b\qquad l=1,2,\ldots ,k\qquad m=1,2,\ldots , n\] \[ \varepsilon _{ijlm}\thicksim ^{iid}(0,\sigma ^2)\]

There are \(abk\) treatments.

Factor \(A\), has \(a-\) levels
Factor \(B\), has \(b-\) levels
Factor \(C\), has \(k-\) levels

\[Y_{ijlm}=\mu + \alpha _i + \beta _j + \tau _l + (\alpha \beta )_{ij} + (\alpha \tau )_{il} + (\beta \tau )_{jl}+(\alpha \beta \tau )_{ijl}+\varepsilon _{ijlm}\] \[\sum \alpha _i=\sum \beta _j=\sum (\alpha \beta )_{ij}=\sum (\alpha \tau )_{il}=\sum (\beta \tau )_{jl}=\sum (\alpha \beta \tau )_{ijl}=0\]

  • \(\mu =\)
  • \(\alpha _i=\)
  • \(\beta _j=\)
  • \(\tau _l=\)
  • \((\alpha \beta )_{ij}=\)
  • \((\alpha \tau )_{il}=\)
  • \((\beta \tau )_{jl}=\)
  • \((\alpha \beta \tau )_{ijl}=\) interaction of factor \(A\) at the \(i^{\text {th}}\) level with factor \(B\) at the \(j^{\text {th}}\) level and with factor \(C\) at the \(l^{\text {th}}\) level.

\begin {align*} Y_{ijlm}-\overline {Y}.... = & \underbrace {\overline {Y}_i...-\overline {Y}....}_{\hat {\alpha }_i} + \underbrace {\overline {Y}._j..-\overline {Y}....}_{\hat {\beta }_j} + \underbrace {\overline {Y}..l.-\overline {Y}....}_{\hat {\tau }} + \underbrace {\overline {Y}_{ij}..-\overline {Y}_i...-\overline {Y}._j..+\overline {Y}....}_{(\hat {\alpha }\hat {b})_{ij}}\\ & + \underbrace {\overline {Y}_i._l.-\overline {Y}_i...-\overline {Y}.._l.+\overline {Y}....}_{(\alpha \hat {\tau })_{il}}+\underbrace {\overline {Y}._{jl}.-\overline {Y}._j..-\overline {Y}.._l.-\overline {Y}....}_{(\beta \tau )_{jl}}\\ & + \underbrace {\overline {Y}_{ijl}.-\overline {Y}_i...-\overline {Y}._j..-\overline {Y}.._l.-\overline {Y}....}_{(\alpha \beta \tau )_{ijl}} + \underbrace {Y_{ijlm}-\overline {Y}_{ijl}.}_{\hat {\varepsilon }_{ijlm}} \end {align*}

Squaring both sides of the identity above and adding, all the cross-product terms vanish, leaving \begin {align*} SST = & SSA + SSB + SSC + SSAB + SSAC + SSBC + SS(ABC) + SSE\\ abkn-1 = & (a-1) + (b-1) + (k-1) + (a-1)(b-1) + (a-1)(k-1) + (b-1)(k-1)\\ & + (a-1)(b-1)(k-1)+ abk(n-1)\\ \end {align*}

\(SST = \displaystyle {\sum _i\sum _j\sum _l\sum _m\big (Y_{ijlm}-\overline {Y}....\big )^2}\)

\(SSA = \displaystyle {bkn\sum ^a_{i=1}\big (\overline {Y}_i...-\overline {Y}....\big )^2}\)

\(SSB = \displaystyle {akn\sum ^b_{j=1}\big (\overline {Y}._j..-\overline {Y}....\big )^2}\)

\(SSC = \displaystyle {abn\sum ^k_{l=1}\big (\overline {Y}.._l.-\overline {Y}....\big )^2}\)

\(SS(AB) = \displaystyle {kn\sum ^a_{i=1}\sum ^b_{j=1}\big (\overline {Y}_{ij}..-\overline {Y}_i...-\overline {Y}._j..+\overline {Y}....\big )^2}\)

\(SS(AC) = \displaystyle {bn\sum ^a_{i=1}\sum ^k_{l=1}\big (\overline {Y}_i._l.-\overline {Y}_i...-\overline {Y}.._l.+\overline {Y}....\big )^2}\)

\(SS(BC) =\displaystyle {an\sum ^b_{j=1}\sum ^k_{l=1}\big (\overline {Y}._{jl}.-\overline {Y}._j..-\overline {Y}.._l.-\overline {Y}....\big )^2}\)

\(SS(ABC) = \displaystyle {n\sum _i\sum _j\sum _l\big (\overline {Y}_{ijl}.-\overline {Y}_i...-\overline {Y}._j..-\overline {Y}.._l.+\overline {Y}....\big )}\)

\(SSE = \displaystyle {\sum _i\sum _j\sum _l\sum _m\big (Y_{ijlm}-\overline {Y}_{ijl}.\big )^2}\)

Example 3.9.1. Yields of Soya Bean from three \((A)\)seed types \((I,II,III)\), under two levels \((C)\) of water
(Low, High) and two levels \((B)\) of fertilizers (Low, High).

Low Water
High Water
Seed type Low (fert) High (fert) Lower (fert) High (fert)
\(I\)
18.6 10.2 12.3 12.3
18.8 10.5 10.9 10.7
15.8 8.5 10.7 12.0
17.9 10.6 11.8 11.8
\(II\)
19.4 14.7 13.2 10.3
18.9 17.8 15.5 8.5
18.4 15.6 11.0 7.1
18.9 16.5 11.8 6.5
\(III\)
15.9 20.9 19.4 13.2
16.5 21.0 21.2 13.5
17.2 21.3 20.4 12.8
16.5 20.4 20.3 15.2

\begin {align*} Y_{ijlm} & = \mu _{ijl} + \varepsilon _{ijlm}\\ i & = 1,2,3\implies a=3\\ j & = 1,2 \implies b=2\\ l & = 1,2 \implies k=2\\ m & = 1,2,3,4 \implies n=4\\ abkn & = 48 \end {align*}

Source of SS df MS F
Variation
\(A\) \(SS(A)=229.26\) 2 114.63
Seed type
\(B\) \(SS(B)=100.63\) 1 100.63
Fertilizer
\(C\) \(SS(C)=163.12\) 1 163.17
Water
\(A\times B\) \(SS(AB)=18.27\) 2 9.135
\(A\times C\) \(SS(AC)=68.53\) 2 34.165
\(B\times C\) \(SS(BC) = 8.25\) 1 8.25
\(A\times B \times C\) \(SS(ABC) = 183.39\) 2 91.69
Error \(SSE=43.49\) 36 1.208
Total \(SST=814.99\) 47

The three-way layout and ANOVA is just an extension of a two-factor lay out and ANOVA.
However, it is tedious therefore the three-way design we will discuss in detail is an incomplete three-way lay out in which the three factors are all at the same levels. This design is called the Latin square design.

Questions on this section

Stuck on something here? Ask below and it stays attached to this topic.