Chapter 8

Analysis of Variance

[24/96%]
Show
LaTeX
Problem 8.1

If the εij(i=1,2,…,I;j=1,2,…,J)\varepsilon_{i j}(i = 1,2, \ldots , I ; j = 1,2, \ldots , J) are independently distributed as N(0,σ2)N\left(0, \sigma^{2}\right), prove that

∑i∑j(εˉi.−εˉ..)2 and ∑i∑j(εij−εˉi.−εˉ.j+εˉ..)2 \sum _{i} \sum _{j}\left(\bar{\varepsilon }_{i .}-\bar{\varepsilon }_{. .}\right)^{2} \quad \text{ and } \quad \sum _{i} \sum _{j}\left(\varepsilon _{i j}-\bar{\varepsilon }_{i .}-\bar{\varepsilon }_{. j}+\bar{\varepsilon }_{. .}\right)^{2}

are statistically independent.

?
Problem 8.2

Let Yij=μ+αi+εij(i=1,2,…,I;j=1,2,…,J)Y_{i j} = \mu +\alpha_{i}+\varepsilon_{i j}(i = 1,2, \ldots , I ; j = 1,2, \ldots , J), where ∑idiαi=0(∑idi≠0)\sum_{i} d_{i} \alpha_{i} = 0 \left(\sum_{i} d_{i} \neq 0\right) and E[εij]=0E\left[\varepsilon_{i j}\right] = 0 for all i,ji, j. Using the method of Lagrange multipliers, find the least squares estimates of μ\mu and αi\alpha_{i}. Hint: Show that the Lagrange multiplier is zero.

?
Problem 8.3

Let Yijk=μij+εijkY_{i j k} = \mu_{i j}+\varepsilon_{i j k}, where

μij=μˉ..+(μˉi.−μˉ..)+(μˉij−μˉi.)=μ+αi+βij \begin{aligned} \mu _{i j} & = \bar{\mu }_{. .}+\left(\bar{\mu }_{i .}-\bar{\mu }_{. .}\right)+\left(\bar{\mu }_{i j}-\bar{\mu }_{i .}\right) \\ & = \mu +\alpha _{i}+\beta _{i j} \end{aligned}

say, i=1,2,…,I;j=1,2,…,J;k=1,2,…,Ki = 1,2, \ldots , I ; j = 1,2, \ldots , J ; k = 1,2, \ldots , K, and the εijk\varepsilon_{i j k} are independently distributed as N(0,σ2)N\left(0, \sigma^{2}\right).

?
(a)

Find the least squares estimates of μ,αi\mu , \alpha_{i}, and βij\beta_{i j}, and show that they are statistically independent.

(b)

Obtain test statistics for testing the hypotheses H1:βij=0H_{1}: \beta_{i j} = 0 (all i,ji, j) and H2:αi=0H_{2}: \alpha_{i} = 0 (all ii).

Problem 8.4

Let Yij=μi+εij(i=1,2,…,I;j=1,2,…,J)Y_{i j} = \mu_{i}+\varepsilon_{i j}(i = 1,2, \ldots , I ; j = 1,2, \ldots , J), where the εij\varepsilon_{i j} are independently distributed as N(0,σ2)N\left(0, \sigma^{2}\right).

?
(a)

When I=4I = 4, obtain an FF-statistic for testing the hypothesis that μ1=2μ2=3μ3\mu_{1} = 2 \mu_{2} = 3 \mu_{3}.

(b)

When I=2I = 2, show that the FF-statistic for testing μ1=μ2\mu_{1} = \mu_{2} is the square of the usual tt-test for testing the hypothesis that the means of two normally distributed populations are equal, given that their variances are equal.

Problem 8.5

Suppose that we have the model

Yijk=μ+αi+βj+γk+εijk, Y_{i j k} = \mu +\alpha _{i}+\beta _{j}+\gamma _{k}+\varepsilon _{i j k},

where i=1,2,…,I;j=1,2,…,J;k=1,2,…,K,∑iαi=∑jβj=∑kγk=0i = 1,2, \ldots , I ; j = 1,2, \ldots , J ; k = 1,2, \ldots , K, \sum_{i} \alpha_{i} = \sum_{j} \beta_{j} = \sum_{k} \gamma_{k} = 0, and the εijk\varepsilon_{i j k} are independently distributed as N(0,σ2)N\left(0, \sigma^{2}\right).

?
(a)

Express μ,αi,βj\mu , \alpha_{i}, \beta_{j}, and γk\gamma_{k} in terms of the parameters μijk=E[Yijk]\mu_{i j k} = E\left[Y_{i j k}\right].

(b)

Obtain a test statistic for testing the hypothesis H:αi=0H: \alpha_{i} = 0 (all ii).

(c)

Prove that

∑i∑j∑k(εˉij.−εˉi..−εˉ.j.+εˉ...)2/σ2∼χ(I−1)(J−1)2 \sum _{i} \sum _{j} \sum _{k}\left(\bar{\varepsilon }_{i j .}-\bar{\varepsilon }_{i . .}-\bar{\varepsilon }_{. j .}+\bar{\varepsilon }_{. . .}\right)^{2} / \sigma ^{2} \sim \chi _{(I-1)(J-1)}^{2}

Hint: Split up ∑i∑j∑k(εˉij.−εˉi..)2\sum_{i} \sum_{j} \sum_{k}\left(\bar{\varepsilon }_{i j .}-\bar{\varepsilon }_{i . .}\right)^{2} into two sums of squares.

Problem 8.6

Consider the linear model Yijk=μijk+εijkY_{i j k} = \mu_{i j k}+\varepsilon_{i j k}, where i=1,2,…,I;j=1,2,…,J;k=1,2,…,Ki = 1,2, \ldots , I ; j = 1,2, \ldots , J ; k = 1,2, \ldots , K; and the εijk\varepsilon_{i j k} are independently distributed as N(0,σ2)N\left(0, \sigma^{2}\right). Let

μijk=μˉ..+(μˉi..−μˉ...)+(μˉij.−μˉi..)+(μˉ..k−μˉ…)+Δijk=μ+αi+βij+γk \begin{aligned} \mu _{i j k} & = \bar{\mu }_{. .}+\left(\bar{\mu }_{i . .}-\bar{\mu }_{. . .}\right)+\left(\bar{\mu }_{i j .}-\bar{\mu }_{i . .}\right)+\left(\bar{\mu }_{. . k}-\bar{\mu }_{\ldots }\right)+\Delta _{i j k} \\ & = \mu +\alpha _{i}+\beta _{i j}+\gamma _{k} \end{aligned}

say, where Δijk=0\Delta_{i j k} = 0 (all i,j,ki, j, k).

?
(a)

Find the least squares estimates of μ,αi,βij\mu , \alpha_{i}, \beta_{i j}, and γk\gamma_{k}.

(b)

Obtain an FF-statistic for testing H:αi=0H: \alpha_{i} = 0 (all ii).

Problem 8a.1

Express H:μ1=⋯=μIH: \mu_{1} = \cdots = \mu_{I} in the form Aμ=0\mathbf{A} \mathbf{\mu } = \mathbf{0}. What is the rank of A\mathbf{A}? As this matrix is not unique, find another matrix, A1\mathbf{A}_{1} say, also satisfying H:A1μ=0H: \mathbf{A}_{1} \mathbf{\mu } = \mathbf{0}. What would be the relationship between A\mathbf{A} and A1\mathbf{A}_{1}?

?
Problem 8a.2

Obtain the identity indicated by (8.3), namely,

∑i∑j(Yij−Yˉ..)2=∑i∑i(Yij−Yˉi.)2+∑i∑j(Yˉi.−Yˉ..)2. \sum _{i} \sum _{j}\left(Y_{i j}-\bar{Y} . .\right)^{2} = \sum _{i} \sum _{i}\left(Y_{i j}-\bar{Y}_{i .}\right)^{2}+\sum _{i} \sum _{j}\left(\bar{Y}_{i .}-\bar{Y}_{. .}\right)^{2} .
?
Problem 8a.3

Obtain the least squares estimates of the μi\mu_{i} using β^=(XTX)−1XTY\widehat{\mathbf{\beta }} = \left(\mathbf{X}^{T} \mathbf{X}\right)^{-1} \mathbf{X}^{T} \mathbf{Y} directly, where X\mathbf{X} is given by (8.2).

?
Problem 8a.4

Prove that

∑i∑j(Yˉi.−Yˉ..)2=∑iYi.2Ji−Y.22n. \sum _{i} \sum _{j}\left(\bar{Y}_{i .}-\bar{Y}_{. .}\right)^{2} = \sum _{i} \frac{Y_{i .}^{2}}{J_{i}}-\frac{Y_{.2}^{2}}{n} .

Obtain a similar expression for ∑i∑j(Yij−Yˉi)2\sum_{i} \sum_{j}\left(Y_{i j}-\bar{Y}_{i}\right)^{2}.

?
Problem 8a.5

Find (a) E[∑i∑j(Yˉi.−Yˉ..)2]\mathbb {E}\left[\sum_{i} \sum_{j}\left(\bar{Y}_{i .}-\bar{Y} . .\right)^{2}\right] and (b) E[∑i∑j(Yij−Yˉi.)2]\mathbb {E}\left[\sum_{i} \sum_{j}\left(Y_{i j}-\bar{Y}_{i .}\right)^{2}\right]. Hint: Use Theorem 4.1(ii) for the first expression.

?
(a)
(b)
Problem 8b.1

Prove that HAB,HAB1,HAB2H_{A B}, H_{A B 1}, H_{A B 2}, and HAB3H_{A B 3} are all equivalent to μij=μ+αi+βj\mu_{i j} = \mu +\alpha_{i}+\beta_{j}.

?
Problem 8b.2

Using the syratetric constraints, exprese the parameters μ,αi\mu , \alpha_{i}, etc. in terms of the μij\mu_{i j}.

?
Problem 8b.3

Obtain an FF-test statistic for testing H:μij=μH: \mu_{i j} = \mu in a two-way classification. Find the expected value of the numerator sum of squares of your test statistics.

?
Problem 8c.1
?
(a)

Prove that

∑i=1I∑j=1J∑k=1K(Yˉi..−Yˉ…)2=∑i=1IYi.2JK−Y..2IJK \sum _{i = 1}^{I} \sum _{j = 1}^{J} \sum _{k = 1}^{K}\left(\bar{Y}_{i . .}-\bar{Y}_{\ldots }\right)^{2} = \sum _{i = 1}^{I} \frac{Y_{i .}^{2}}{J K}-\frac{Y_{. .}^{2}}{I J K}

Obtain a similar expression for

∑i=1I∑j=1J∑k=1K(Yˉij.−Yˉi..−Yˉ.j.+Yˉ…)2 \sum _{i = 1}^{I} \sum _{j = 1}^{J} \sum _{k = 1}^{K}\left(\bar{Y}_{i j .}-\bar{Y}_{i . .}-\bar{Y}_{. j .}+\bar{Y}_{\ldots }\right)^{2}
(b)

Using Table 8.2, prove the following:

E[(I−1)SA2]=σ2(I−1)+JK∑iαi∗2E[(J−1)SB2]=σ2(J−1)+IK∑jβi∗2E[(I−1)SAB2]=σ2(I−1)(J−1)+K∑i∑j(αβ)ij∗2 \begin{aligned} E\left[(I-1) S_{A}^{2}\right] & = \sigma ^{2}(I-1)+J K \sum _{i} \alpha _{i}^{* 2} \\ E\left[(J-1) S_{B}^{2}\right] & = \sigma ^{2}(J-1)+I K \sum _{j} \beta _{i}^{* 2} \\ E\left[(I-1) S_{A B}^{2}\right] & = \sigma ^{2}(I-1)(J-1)+K \sum _{i} \sum _{j}(\alpha \beta )_{i j}^{* 2} \end{aligned}
Problem 8c.2

Given the population means μij(i=1,2,…,I;j=1,2,…,J)\mu_{i j}\left(i = 1,2, \ldots , I ; j = 1,2, \ldots , J\right), let

Ai=∑jvjμij(∑jvj=1),Bi=∑iuiμij(∑juj=1), \begin{aligned} A_{i} & = \sum _{j} v_{j} \mu _{i j} \quad \left(\sum _{j} v_{j} = 1\right), \\ B_{i} & = \sum _{i} u_{i} \mu _{i j} \quad \left(\sum _{j} u_{j} = 1\right), \end{aligned}

and

μ=∑iuiAi=∑jvjBj=∑i∑juivjμij \mu = \sum _{i} u_{i} A_{i} = \sum _{j} v_{j} B_{j} = \sum _{i} \sum _{j} u_{i} v_{j} \mu _{i j}

Define αi=Ai−μ,βj=Bj−μ\alpha_{i} = A_{i}-\mu , \beta_{j} = B_{j}-\mu, and

(αβ)ij=μij−Ai−Bj+μ (\alpha \beta )_{i j} = \mu _{i j}-A_{i}-B_{j}+\mu
?
(a)

Show that ∑iuiαi=∑jvjβj=0,∑iui(αβ)ij=0\sum_{i} u_{i} \alpha_{i} = \sum_{j} v_{j} \beta_{j} = 0, \sum_{i} u_{i}(\alpha \beta )_{i j} = 0 (all jj), and ∑jvj(αβ)ij=0\sum_{j} v_{j}(\alpha \beta )_{i j} = 0 (all ii).

(b)

Conversely, given

μij=μ+αi+βj+(αβ)ij \mu _{i j} = \mu +\alpha _{i}+\beta _{j}+(\alpha \beta )_{i j}

show that the parameters in the equation above are uniquely determined by the constraints in (a).

(c)

Prove that if the interactions {(αβ)ij}\left\{ (\alpha \beta )_{i j}\right\} are all zero for some system of weights {ui}\left\{ u_{i}\right\} and {vi}\left\{ v_{i}\right\}, then they are zero for every system of weights. In that case show that every contrast in the {αi}\left\{ \alpha_{i}\right\}, or {βi}\left\{ \beta_{i}\right\}, has a value that does not depend on the system of weights.

Problem 8c.3

Let Yijk=μ+αi+βj+(αβ)ij+εijkY_{i j k} = \mu +\alpha_{i}+\beta_{j}+(\alpha \beta )_{i j}+\varepsilon_{i j k}, where i=1,2,…,I;j=1,2,…,J;k=1,2,…,Kiji = 1,2, \ldots , I ; j = 1,2, \ldots , J ; k = 1,2, \ldots , K_{i j}; and the εijk\varepsilon_{i j k} are independently distributed as N(0,σ2)N\left(0, \sigma^{2}\right). Given Kij=Ki.K.j/K..K_{i j} = K_{i .} K_{. j} / K_{. .}for all i,ji, j, find a test statistic for testing the hypothesis H:(αβ)ij=0H:(\alpha \beta )_{i j} = 0 (all i,ji, j). Hint: By Exercise 2, the validity of HH does not depend on the weights used in the identifiability constraints ∑iuiαi=∑jvjβj=0\sum_{i} u_{i} \alpha_{i} = \sum_{j} v_{j} \beta_{j} = 0. We can therefore use ui=Ki./K.u_{i} = K_{i .} / K_{.} and vj=K.j/K..v_{j} = K_{. j} / K_{. .}and find the least squares estimates of αi\alpha_{i} and βj\beta_{j} when HH is true.

?
Problem 8d.1

Verify (8.28).

?
Problem 8d.2

A three-factor experiment has population means μijk(i=1,2,3;j=1,2,3;k=1,2\mu_{i j k}(i = 1,2,3 ; j = 1,2,3 ; k = 1,2), given by the following tables:

Show that the ABCA B C interactions are zero.

?
Problem 8d.3

Let

Y=(Y1Y2)=(X1X2)β+ε=Xβ+ε \mathbf{Y} = \binom {\mathbf{Y}_{1}}{\mathbf{Y}_{2}} = \binom {\mathbf{X}_{1}}{\mathbf{X}_{2}} \mathbf{\beta }+\mathbf{\varepsilon } = \mathbf{X} \mathbf{\beta }+\mathbf{\varepsilon }

where X\mathbf{X} has full rank. Suppose that the observations Y2\mathbf{Y}_{2} are missing. For the data observed, the least squares estimate of β\mathbf{\beta } is β^=(X1TX1)−1X1TY1\widehat{\mathbf{\beta }} = \left(\mathbf{X}_{1}^{T} \mathbf{X}_{1}\right)^{-1} \mathbf{X}_{1}^{T} \mathbf{Y}_{1}. Let Y^2=X2β^\widehat{\mathbf{Y}}_{2} = \mathbf{X}_{2} \widehat{\mathbf{\beta }}. Show that β^\widehat{\mathbf{\beta }} can be obtained by applying least squares to the observed data augmented by Y^2\widehat{\mathbf{Y}}_{2} and the regression matrix X\mathbf{X}.

?
Problem 8d.4

Suppose that we have a one-way classification

E[Yij]=μi(i=1,2,…,I;j=1,2,…,J) E\left[Y_{i j}\right] = \mu _{i} \quad (i = 1,2, \ldots , I ; j = 1,2, \ldots , J)

and suppose that YIJY_{I J} is missing. Prove that the appropriate estimate of YIJY_{I J} is the mean of the remaining observations on the mean μI\mu_{I}.

?
Problem 8e.1

Exercises 3f, No. 2, in Section 3.7 gave the following two-stage method for finding least squares estimates for a general ANCOVA model GG, say. First, we find the least squares estimate β^\widehat{\mathbf{\beta }} of β\mathbf{\beta } for the model E[Y]=Xβ\mathbb {E}\left[\mathbf{Y}\right] = \mathbf{X} \mathbf{\beta } and the residual sum of squares YTRY\mathbf{Y}^{T} \mathbf{R} \mathbf{Y}. Second, γ^G\widehat{\gamma }_{G} is found by replacing Y\mathbf{Y} by Y−Zγ\mathbf{Y}-\mathbf{Z} \mathbf{\gamma } in YTRY\mathbf{Y}^{T} \mathbf{R Y} and minimizing with respect to γ\mathbf{\gamma }. This minimum value is the correct residual sum of squares for the model GG. Third, referring to Theorem 3.6 , we see that β^G\widehat{\mathbf{\beta }}_{G} is obtained from β^\widehat{\mathbf{\beta }} by replacing Y\mathbf{Y} by Y−Xγ^\mathbf{Y}-\mathbf{X} \widehat{\mathbf{\gamma }}. This technique can be applied to the model for HH as well as GG. Now apply this method to the following problem. Consider the model Yij=μi+γixj+εijY_{i j} = \mu_{i}+\gamma_{i} x_{j}+\varepsilon_{i j}, where i=1,2;j=1,2,…,Ji = 1,2 ; j = 1,2, \ldots , J; and the εij\varepsilon_{i j} are independently distributed as N(0,σ2)N\left(0, \sigma^{2}\right). Derive an FF statistic for testing the hypothesis that γ1=γ2\gamma_{1} = \gamma_{2} and show that this statistic is the square of the usual tt-statistic for testing whether two lines are parallel.

?
Problem 8e.2

Let Yij=μi+γ1zij+γ2wij+εijY_{i j} = \mu_{i}+\gamma_{1} z_{i j}+\gamma_{2} w_{i j}+\varepsilon_{i j}, where i=1,2,…,I;j=1,2,…,Ji = 1,2, \ldots , I ; j = 1,2, \ldots , J; and the εij\varepsilon_{i j} are independently distributed as N(0,σ2)N\left(0, \sigma^{2}\right).

?
(a)

Derive the least squares estimate of γ1\gamma_{1} and show that it is an unbiased estimate of γ1\gamma_{1}.

(b)

Find the variance matrix of the least squares estimates γ^i\widehat{\gamma }_{i} of γi(i=1,2)\gamma_{i} (i = 1,2).

(c)

Under what conditions are γ^1\widehat{\gamma }_{1} and γ^2\widehat{\gamma }_{2} statistically independent?

Problem 8e.3

Let Yijk=μij+γijzijk+εijkY_{i j k} = \mu_{i j}+\gamma_{i j} z_{i j k}+\varepsilon_{i j k}, where i=1,2,…,I;i=1,2,…,Ji = 1,2, \ldots , I ; i = 1,2, \ldots , J; k=1,2,…,Kk = 1,2, \ldots , K; and the εijk\varepsilon_{i j k} are independently distributed as N(0,σ2)N\left(0, \sigma^{2}\right). Obtain a test statistic for testing the hypothesis

H:γij=γ( all i,j) H: \gamma _{i j} = \gamma \quad (\text{ all } i, j)
?