Skip to the content

Topics Covered

Two-Way ANOVA Analysis of Covariance Factorial ANOVA Identifying Confounding Generalised Interaction Fractional Replication Split-Plot BIBD Youden Square PBIBD
On this page
  1. Section A — The Sixteen Practicals
  2. Practical 1 — ANOVA for Two-Way Classification, \(m\) Observations per Cell
  3. Practical 2 — ANOVA for Two-Way Classification, \(n_{ij}\) Observations per Cell
  4. Practical 3 — Analysis of Covariance, One-Way Classification
  5. Practical 4 — Analysis of Covariance, Two-Way Classification
  6. Practical 5 — ANOVA for \(2^{3}\) and \(2^{4}\) Factorial Experiments
  7. Practical 6 — ANOVA for \(3^{2}\) Factorial Experiments
  8. Practical 7 — Identification of Confounded Terms in \(2^{3}\), \(2^{4}\) and \(3^{2}\)
  9. Practical 8 — Construction of a Design with a Specified Effect Confounded
  10. Practical 9 — ANOVA for Total Confounding of \(2^{3}\) and \(2^{4}\)
  11. Practical 10 — ANOVA for Partial Confounding of \(2^{3}\)
  12. Practical 11 — ANOVA for a One-Half Fraction of \(2^{4}\)
  13. Practical 12 — ANOVA for a One-Quarter Fraction of \(2^{5}\)
  14. Practical 13 — ANOVA for a Split-Plot Design
  15. Practical 14 — Analysis of a Balanced Incomplete Block Design
  16. Practical 15 — Analysis of a Youden Square Design
  17. Practical 16 — Analysis of a Partially Balanced Incomplete Block Design
  18. Working These by Hand in an Examination
  19. What the Practical Record Should Contain
About this course. STS-206 is a conventional practical in two sections: Section A, Design and Analysis of Experiments — the sixteen experiments below — and Section B, Sampling Theory, which belongs to Sampling Theory (STS-204) and will be written with that course. Both sections are examined by hand, so every experiment is worked with full arithmetic.

Section A — The Sixteen Practicals

THE SIXTEEN, AND WHERE ELSE EACH IS WORKED

All sixteen are worked below, each set out as 1. Problem, 2. Aim, 3. Formula, 4. Calculation, 5. Result. Practicals 5, 9 and 10 analyse the same \(2^{3}\) data three ways — unconfounded, totally confounded and partially confounded — so each result checks the others.

#PracticalWorked hereAlso in
1ANOVA for two-way classification, \(m\) observations per cellPractical 1Unit 1, Example 1.1
2ANOVA for two-way classification, \(n_{ij}\) observations per cellPractical 2Unit 1, Examples 1.2 and 1.3
3Analysis of covariance, one-way classificationPractical 3—
4Analysis of covariance, two-way classificationPractical 4Unit 1, section 5 (method)
5ANOVA for \(2^{3}\) and \(2^{4}\) factorial experimentsPractical 5Unit 2, Example 2.1
6ANOVA for \(3^{2}\) factorial experimentsPractical 6Unit 2, Example 2.2
7Identification of confounded terms in \(2^{3}\), \(2^{4}\), \(3^{2}\)Practical 7—
8Construction of a design with a specified effect confoundedPractical 8Unit 3, section 1
9ANOVA for total confounding of \(2^{3}\), \(2^{4}\)Practical 9Unit 3, Example 3.1
10ANOVA for partial confounding of \(2^{3}\), \(2^{4}\)Practical 10Unit 3, section 2 (method)
11ANOVA for a one-half fraction of \(2^{4}\)Practical 11Unit 3, section 3 (method)
12ANOVA for a one-quarter fraction of \(2^{5}\)Practical 12Unit 3, section 3 (method)
13ANOVA for a split-plot designPractical 13Unit 3, section 4 (method)
14Analysis of a balanced incomplete block designPractical 14Unit 3, Example 3.2
15Analysis of a Youden square designPractical 15Unit 4, section 3 (method)
16Analysis of a partially balanced incomplete block designPractical 16Unit 4, Example 4.1 (design)

Practical 1 — ANOVA for Two-Way Classification, \(m\) Observations per Cell

1. Problem

A has \(a = 3\) levels and B has \(b = 2\), with \(m = 3\) observations per cell:

B₁B₂Row total \(A_i\)
A₁7, 9, 8  (24)12, 10, 14  (36)60
A₂10, 12, 11  (33)15, 17, 16  (48)81
A₃6, 8, 7  (21)9, 11, 13  (33)54
Column total \(B_j\)78117195

Analyse the data and test the interaction and the main effects at 5%.

2. Aim

To analyse a two-way classification with several observations per cell, separating the interaction from the error.

3. Formula

\[ \text{CF} = \frac{G^{2}}{N}, \quad SS_A = \sum_i\frac{A_i^{2}}{n_{i\cdot}} - \text{CF}, \quad SS_B = \sum_j\frac{B_j^{2}}{n_{\cdot j}} - \text{CF}, \quad SS_{\text{cells}} = \sum_{ij}\frac{T_{ij}^{2}}{n_{ij}} - \text{CF}, \] \[ SS_{AB} = SS_{\text{cells}} - SS_A - SS_B, \qquad SS_E = SS_{\text{total}} - SS_{\text{cells}} \ \text{ on } N - ab \text{ d.f.} \]

With \(m\) observations per cell the divisors are \(bm\), \(am\) and \(m\). The variation within a cell estimates \(\sigma^{2}\) on its own, so the interaction can be separated and tested.

Applying it:

  1. Correction factor and total.
  2. Factor A, factor B, and the cells.
  3. Interaction and error by subtraction.
  4. The table; test the interaction first.

4. Calculation

\[ \text{CF} = \frac{195^{2}}{18} = 2112.5, \qquad SS_{\text{total}} = 2289 - 2112.5 = 176.5, \] \[ SS_A = \frac{60^{2} + 81^{2} + 54^{2}}{6} - 2112.5 = 2179.5 - 2112.5 = 67, \qquad SS_B = \frac{78^{2} + 117^{2}}{9} - 2112.5 = 2197 - 2112.5 = 84.5, \] \[ SS_{\text{cells}} = \frac{24^{2}+36^{2}+33^{2}+48^{2}+21^{2}+33^{2}}{3} - 2112.5 = 2265 - 2112.5 = 152.5, \] \[ SS_{AB} = 152.5 - 67 - 84.5 = 1.0, \qquad SS_E = 176.5 - 152.5 = 24 \ \text{ on } ab(m-1) = 12 \text{ d.f.} \]
SourceSSdfMS\(F\)\(F_{0.05}\)
A67.0233.516.753.885
B84.5184.542.254.747
AB1.020.50.253.885
Error24.0122.0
Total176.517

5. Result

The interaction is nowhere near significant (\(F = 0.25\)), so the main effects can be read as they stand: both A (\(F = 16.75\)) and B (\(F = 42.25\)) are significant. The cell means are 8, 12 for A₁, 11, 16 for A₂ and 7, 11 for A₃: the B₂ − B₁ gap is 4, 5, 4, nearly constant, which is additivity (worked also in Unit 1, Example 1.1).

Practical 2 — ANOVA for Two-Way Classification, \(n_{ij}\) Observations per Cell

1. Problem

(a) Proportional frequencies: analyse

B₁B₂\(n_{i\cdot}\)\(A_i\)
A₁5, 7, 6, 6 (total 24)9, 11 (20)644
A₂8, 10, 9, 9, 11, 7 (54)13, 15, 14 (42)996
\(n_{\cdot j}\), \(B_j\)10, 785, 6215140

(b) Disproportionate frequencies: analyse

B₁B₂\(n_{i\cdot}\)\(A_i\)
A₁5, 7, 6, 6 (mean 6)9, 11 (mean 10)644
A₂8, 10, 9 (mean 9)13, 15, 14, 12, 16, 14 (mean 14)9111
\(n_{\cdot j}\), \(B_j\)7, 518, 10415155

2. Aim

To analyse a two-way classification with unequal cell frequencies: directly when they are proportional, and by fitting constants when they are not.

3. Formula

\[ \text{CF} = \frac{G^{2}}{N}, \quad SS_A = \sum_i\frac{A_i^{2}}{n_{i\cdot}} - \text{CF}, \quad SS_B = \sum_j\frac{B_j^{2}}{n_{\cdot j}} - \text{CF}, \quad SS_{\text{cells}} = \sum_{ij}\frac{T_{ij}^{2}}{n_{ij}} - \text{CF}, \] \[ SS_{AB} = SS_{\text{cells}} - SS_A - SS_B, \qquad SS_E = SS_{\text{total}} - SS_{\text{cells}} \ \text{ on } N - ab \text{ d.f.} \]

The frequencies are proportional when \(n_{ij} = n_{i\cdot}n_{\cdot j}/N\) for every cell; then the formulae above apply. Otherwise the design is not orthogonal, and A and B must each be adjusted for the other by fitting the additive model: \(R(A \mid \mu, B) = R(\mu, A, B) - R(\mu, B)\), \(R(B \mid \mu, A) = R(\mu, A, B) - R(\mu, A)\), with \(SS_{AB} = SS_{\text{cells}} - R(\mu, A, B)\).

Applying it:

  1. Check proportionality.
  2. (a) The ordinary analysis with each term's own divisor.
  3. (b) The naive sums of squares, to see them fail; then the normal equations of the additive model, the reduction \(R(\mu, A, B)\), and the adjusted sums of squares.

4. Calculation

(a) \(6 \times 10/15 = 4 = n_{11}\), \(6 \times 5/15 = 2\), \(9 \times 10/15 = 6\), \(9 \times 5/15 = 3\): proportional. \(\checkmark\) \(\text{CF} = 140^{2}/15 = 1306.666667\); \(SS_{\text{total}} = 1434 - 1306.666667 = 127.333333\);

\[ SS_A = \frac{44^{2}}{6} + \frac{96^{2}}{9} - \text{CF} = 40, \quad SS_B = \frac{78^{2}}{10} + \frac{62^{2}}{5} - \text{CF} = 70.533333, \quad SS_{\text{cells}} = 144 + 200 + 486 + 588 - \text{CF} = 111.333333, \] \[ SS_{AB} = 0.8, \qquad SS_E = 16 \ \text{ on } 11 \text{ d.f.}, \ MS_E = 1.454545; \qquad F_A = 27.50, \quad F_B = 48.49, \quad F_{AB} = 0.55 \ (F_{0.05;\,1,\,11} = 4.844). \]

(b) \(6 \times 7/15 = 2.8 \ne 4\): not proportional. With \(\text{CF} = 155^{2}/15 = 1601.666667\), \(SS_{\text{total}} = 177.333333\), \(SS_A = 90\), \(SS_B = 121.904762\) and \(SS_{\text{cells}} = 161.333333\), the "interaction by subtraction" would be \(161.333333 - 211.904762 = -50.571429\) — impossible. Fitting \(\mu, \alpha, \beta\) (with \(\alpha_2 = \beta_2 = 0\)) by weighted least squares on the cell means:

\[ 15\mu + 6\alpha + 7\beta = 155, \qquad 6\mu + 6\alpha + 4\beta = 44, \qquad 7\mu + 4\alpha + 7\beta = 51, \] \[ \mu = \frac{208}{15} = 13.866667, \quad \alpha = -\frac{52}{15} = -3.466667, \quad \beta = -\frac{23}{5} = -4.6, \]

with fitted cell means 5.8, 10.4, 9.266667, 13.866667, and

\[ R(\mu, A, B) = 1762.2 - 1601.666667 = 160.533333, \quad R(A \mid \mu, B) = 160.533333 - 121.904762 = 38.628571, \] \[ R(B \mid \mu, A) = 160.533333 - 90 = 70.533333, \quad SS_{AB} = 161.333333 - 160.533333 = 0.8, \quad SS_E = 16. \]
SourceSSdfMS\(F\)
A adjusted for B38.628571138.62857126.557143
B adjusted for A70.533333170.53333348.491667
AB0.80000010.8000000.550000
Error16.000000111.454545

5. Result

(a) A and B are significant, the interaction is not; the three components add to \(SS_{\text{cells}}\), which is the orthogonality. (b) Again A and B are significant and AB is not, but A's sum of squares falls from 90 unadjusted to 38.63 adjusted: more than half of what A appeared to explain was really B's. Only the adjusted figure can be reported, and the three terms need not add to \(SS_{\text{cells}}\) (worked also in Unit 1, Examples 1.2 and 1.3).

Practical 3 — Analysis of Covariance, One-Way Classification

1. Problem

Three treatments, four units each. For every unit a covariate \(x\) was measured before the treatment was applied, and the response \(y\) after.

Treatment\((x, y)\) pairs\(\sum x\)\(\sum y\)
T₁(2, 8), (3, 10), (4, 11), (5, 13)1442
T₂(3, 12), (4, 13), (5, 15), (6, 17)1857
T₃(4, 11), (5, 13), (6, 14), (7, 16)2254
Total54153

Test the treatments after adjusting for the covariate, and find the adjusted treatment means.

2. Aim

To compare treatments after removing, by regression, the part of the response explained by a covariate.

3. Formula

\[ y_{ij} = \mu + \tau_i + \beta\left(x_{ij} - \bar x\right) + e_{ij}, \qquad \hat\beta = \frac{E_{xy}}{E_{xx}}, \qquad E'_{yy} = E_{yy} - \frac{E_{xy}^{2}}{E_{xx}} \ \text{ on } N - t - 1 \text{ d.f.} \] \[ SS'_{\text{tr}} = \left[(T+E)_{yy} - \frac{(T+E)_{xy}^{2}}{(T+E)_{xx}}\right] - E'_{yy}, \qquad \bar y'_i = \bar y_i - \hat\beta\left(\bar x_i - \bar x\right) \]

The slope comes from the error line because that is the within-treatment relation between \(x\) and \(y\), the one the model assumes common to all treatments.

Applying it:

  1. Three correction factors, for \(xx\), \(yy\) and \(xy\).
  2. The total, treatment and error lines of \(S_{xx}\), \(S_{xy}\), \(S_{yy}\).
  3. The slope and the adjusted error; the adjusted treatment-plus-error line; the adjusted treatment sum of squares by subtraction.
  4. The \(F\) test, the adjusted means, and the unadjusted analysis for comparison.

4. Calculation

\[ \text{CF}_{xx} = \frac{54^{2}}{12} = 243, \qquad \text{CF}_{yy} = \frac{153^{2}}{12} = 1950.75, \qquad \text{CF}_{xy} = \frac{54 \times 153}{12} = 688.5. \]

The raw sums are \(\sum x^{2} = 266\), \(\sum y^{2} = 2023\), \(\sum xy = 725\), so \(T_{xx} = 23\), \(T_{yy} = 72.25\), \(T_{xy} = 36.5\). From the treatment totals,

\[ R_{xx} = 251 - 243 = 8, \qquad R_{yy} = 1982.25 - 1950.75 = 31.5, \qquad R_{xy} = 700.5 - 688.5 = 12. \]
Sourcedf\(S_{xx}\)\(S_{xy}\)\(S_{yy}\)
Treatments28.0012.0031.50
Error915.0024.5040.75
Total1123.0036.5072.25
\[ \hat\beta = \frac{24.5}{15} = 1.633333, \qquad E'_{yy} = 40.75 - \frac{600.25}{15} = 0.733333 \ \text{ on } 8 \text{ d.f.}, \quad MS'_E = 0.091667, \] \[ (T+E)'_{yy} = 72.25 - \frac{36.5^{2}}{23} = 14.326087, \qquad SS'_{\text{tr}} = 14.326087 - 0.733333 = 13.592754 \ \text{ on } 2 \text{ d.f.}, \] \[ F = \frac{13.592754/2}{0.091667} = 74.142292 \quad (F_{0.05;\,2,\,8} = 4.459). \]
Treatment\(\bar x_i\)\(\bar y_i\)\(\bar y'_i\)
T₁3.5010.5012.133333
T₂4.5014.2514.250000
T₃5.5013.5011.866667

Ignoring the covariate: \(F = (31.5/2)/(40.75/9) = 3.478528\), \(p = 0.076\).

5. Result

After adjustment the treatments differ highly significantly (\(F = 74.1\)); without it they did not (\(F = 3.48\)). The error collapsed — the covariate explained 98.2% of what had been called error — and the ranking reversed: unadjusted, T₃ (13.50) beats T₁ (10.50); adjusted, T₁ (12.13) beats T₃ (11.87), because T₃'s units simply started higher. Reporting the unadjusted means would have been reporting the covariate.

Practical 4 — Analysis of Covariance, Two-Way Classification

1. Problem

Three treatments are compared in a randomised block design with four blocks. The covariate \(x\) (initial weight) was measured before treatment and the response \(y\) (final weight) after:

BlockT₁ \((x, y)\)T₂ \((x, y)\)T₃ \((x, y)\)Block totals \((x, y)\)
1(10, 16)(12, 22)(11, 18)(33, 56)
2(14, 23)(13, 24)(15, 25)(42, 72)
3(9, 13)(11, 19)(10, 15)(30, 47)
4(13, 21)(15, 27)(14, 22)(42, 70)
Treatment totals(46, 73)(51, 92)(50, 80)(147, 245)

Test the treatments after adjusting for the covariate, and find the adjusted treatment means.

2. Aim

To carry the analysis of covariance into a randomised block design, with one more line in the table.

3. Formula

\[ y_{ij} = \mu + \tau_i + \beta_j + \gamma\left(x_{ij} - \bar x\right) + e_{ij}, \qquad \hat\gamma = \frac{E_{xy}}{E_{xx}}, \qquad E'_{yy} = E_{yy} - \frac{E_{xy}^{2}}{E_{xx}} \ \text{ on } (r-1)(t-1) - 1 \text{ d.f.} \] \[ SS'_{\text{tr}} = \left[(T+E)_{yy} - \frac{(T+E)_{xy}^{2}}{(T+E)_{xx}}\right] - E'_{yy} \ \text{ on } t - 1 \text{ d.f.}, \qquad \bar y'_i = \bar y_i - \hat\gamma\left(\bar x_i - \bar x\right) \]

Two assumptions are part of the answer: the slope is the same for every treatment (parallel regressions), and the covariate is unaffected by the treatment.

Applying it:

  1. Compute \(S_{xx}\), \(S_{xy}\), \(S_{yy}\) for blocks, treatments, total, and error by subtraction — keep three columns and adjust only at the end.
  2. Take \(\hat\gamma\) from the error line; adjust the error.
  3. Adjust the treatment-plus-error line and subtract.
  4. Test; give the adjusted means; compare with the analysis that ignores \(x\).

4. Calculation

\(N = 12\); \(\sum x = 147\), \(\sum y = 245\), \(\sum x^{2} = 1847\), \(\sum y^{2} = 5203\), \(\sum xy = 3093\).

\[ \text{CF}_{xx} = \frac{147^{2}}{12} = 1800.75, \qquad \text{CF}_{yy} = \frac{245^{2}}{12} = 5002.083333, \qquad \text{CF}_{xy} = \frac{147 \times 245}{12} = 3001.25. \] \[ \text{Blocks: } B_{xx} = \frac{33^{2}+42^{2}+30^{2}+42^{2}}{3} - 1800.75 = 38.25, \quad B_{yy} = 140.916667, \quad B_{xy} = \frac{33(56)+42(72)+30(47)+42(70)}{3} - 3001.25 = 72.75. \] \[ \text{Treatments: } R_{xx} = \frac{46^{2}+51^{2}+50^{2}}{4} - 1800.75 = 3.5, \quad R_{yy} = 46.166667, \quad R_{xy} = 11.25. \]
Sourcedf\(S_{xx}\)\(S_{xy}\)\(S_{yy}\)
Blocks338.2572.75140.916667
Treatments23.5011.2546.166667
Error64.507.7513.833333
Total1146.2591.75200.916667
\[ \hat\gamma = \frac{7.75}{4.5} = \frac{31}{18} = 1.722222, \qquad E'_{yy} = 13.833333 - \frac{7.75^{2}}{4.5} = 13.833333 - 13.347222 = 0.486111 \ \text{ on } 5 \text{ d.f.}, \] \[ (T+E): \ S_{xx} = 8, \ S_{xy} = 19, \ S_{yy} = 60; \qquad (T+E)'_{yy} = 60 - \frac{19^{2}}{8} = 14.875 \ \text{ on } 7 \text{ d.f.}, \] \[ SS'_{\text{tr}} = 14.875 - 0.486111 = 14.388889 \ \text{ on } 2 \text{ d.f.}, \qquad F = \frac{7.194444}{0.097222} = 74.0 \quad (F_{0.05;\,2,\,5} = 5.786). \]

With \(\bar x = 12.25\):

Treatment\(\bar x_i\)\(\bar y_i\)\(\bar y'_i\)
T₁11.5018.2519.541667
T₂12.7523.0022.138889
T₃12.5020.0019.569444

Ignoring the covariate: \(F = (46.166667/2)/(13.833333/6) = 23.083333/2.305556 = 10.01\) on (2, 6) d.f.

5. Result

Adjusted for initial weight, the treatments differ significantly (\(F = 74.0 > 5.786\)), and T₂ is best (adjusted mean 22.14). The covariate cut the error mean square from 2.31 to 0.097. It also changed the comparison of T₁ and T₃: unadjusted, T₃ leads T₁ by 1.75; adjusted, they are almost equal (19.54 and 19.57), because T₃'s animals started heavier. The analysis assumes a common slope in every treatment, which should be checked by fitting separate slopes.

Practical 5 — ANOVA for \(2^{3}\) and \(2^{4}\) Factorial Experiments

1. Problem

A \(2^{3}\) factorial is run in \(r = 2\) replicates (one complete replicate per block):

CombinationReplicate IReplicate IITotal
(1)91120
a161632
b121426
ab212344
c111324
ac182038
bc151530
abc252752
Replicate total127139266

Estimate every effect by Yates's algorithm and complete the analysis of variance. State how the method extends to a \(2^{4}\).

2. Aim

To estimate the main effects and interactions of a two-level factorial by Yates's algorithm, and test them.

3. Formula

\[ [AB] = (a-1)(b-1)(c+1) = abc + ab + c + (1) - ac - bc - a - b, \qquad \text{effect} = \frac{[\,\cdot\,]}{r\,2^{k-1}}, \qquad SS = \frac{[\,\cdot\,]^{2}}{r\,2^{k}} \]

A factor in the effect contributes \((\text{letter} - 1)\), a factor not in it \((\text{letter} + 1)\). Yates's algorithm takes \(k\) passes of sums of pairs then differences of pairs on the totals in standard order. Checks: the first entry of the last column is the grand total; the effect sums of squares add to the treatment sum of squares. For a \(2^{4}\) the method is the same with sixteen totals and four passes, giving fifteen effects.

Applying it:

  1. Arrange the totals in standard order and run \(k\) passes.
  2. Check one contrast the long way.
  3. Effects and sums of squares; replicates and error; the table.

4. Calculation

CombinationTotal(1)(2)(3)EffectSS
(1)2052122266 = \(G\)
a327014466 = [A]8.25272.25
b26623038 = [B]4.7590.25
ab44823614 = [AB]1.7512.25
c24121822 = [C]2.7530.25
ac3818206 = [AC]0.752.25
bc301462 = [BC]0.250.25
abc522282 = [ABC]0.250.25

Check: \([A] = (32 + 44 + 38 + 52) - (20 + 26 + 24 + 30) = 166 - 100 = 66\). \(\checkmark\) The effect sums of squares total \(407.75\). With \(\text{CF} = 266^{2}/16 = 4422.25\) and raw sum of squares 4842:

\[ SS_{\text{total}} = 419.75, \qquad SS_{\text{rep}} = \frac{127^{2}+139^{2}}{8} - \text{CF} = 9, \qquad SS_E = 419.75 - 9 - 407.75 = 3 \ \text{ on } 7 \text{ d.f.}, \ MS_E = 0.428571. \]
SourceSSdf\(F\)
Replicates9.001
A272.251635.25
B90.251210.58
C30.25170.58
AB12.25128.58
AC2.2515.25
BC0.2510.58
ABC0.2510.58
Error3.007
Total419.7515

\(F_{0.05;\,1,\,7} = 5.591\).

5. Result

A, B, C and the AB interaction are significant; AC (\(F = 5.25\)) is marginal and BC and ABC are not. Read AB from the data: the effect of A is 6.5 at low B and 10 at high B; half the difference, 1.75, is the AB effect. Negligible three-factor interactions are what make the confounded and fractional designs of Practicals 9–12 worth having (worked also in Unit 2, Example 2.1).

Practical 6 — ANOVA for \(3^{2}\) Factorial Experiments

1. Problem

A \(3^{2}\) factorial has \(r = 2\) replicates; the two observations in each cell differ by 2. The cell totals are:

b₀b₁b₂\(A_i\)
a₀10141842
a₁16222664
a₂20243074
\(B_j\)466074180

Analyse the experiment, splitting each main effect and the interaction into single degrees of freedom.

2. Aim

To analyse a three-level factorial and split its effects into linear and quadratic components.

3. Formula

\[ \text{linear } (-1, 0, +1), \qquad \text{quadratic } (+1, -2, +1), \qquad SS = \frac{C^{2}}{r\left(\sum_i c_i^{2}\right)\left(\sum_j d_j^{2}\right)}, \quad C = \sum_{ij} c_i d_j T_{ij} \]

For a main-effect component on marginal totals, the divisor is \(r\sum c_i^{2}\) times the three levels of the other factor.

Applying it:

  1. The ordinary analysis: \(A\), \(B\), cells, \(AB\), error.
  2. Split A and B into linear and quadratic components.
  3. Split the interaction into \(A_LB_L, A_LB_Q, A_QB_L, A_QB_Q\); check that the components add up.

4. Calculation

\(SS_E = 9 \times 2 = 18\) on 9 d.f., \(MS_E = 2\). With \(\text{CF} = 180^{2}/18 = 1800\) and raw sum of squares 1974:

\[ SS_A = \frac{11336}{6} - 1800 = 89.333333, \quad SS_B = \frac{11192}{6} - 1800 = 65.333333, \quad SS_{\text{cells}} = \frac{3912}{2} - 1800 = 156, \quad SS_{AB} = 1.333333. \] \[ C_{A_L} = -42 + 74 = 32, \ SS = \frac{1024}{12} = 85.333333; \qquad C_{A_Q} = 42 - 128 + 74 = -12, \ SS = \frac{144}{36} = 4; \] \[ C_{B_L} = -46 + 74 = 28, \ SS = \frac{784}{12} = 65.333333; \qquad C_{B_Q} = 46 - 120 + 74 = 0. \] \[ C_{A_QB_Q} = 10 - 28 + 18 - 32 + 88 - 52 + 20 - 48 + 30 = 6, \qquad SS_{A_QB_Q} = \frac{36}{72} = 0.5. \]
ComponentContrastDivisorSS\(F\) (1, 9)
\(A_L\)321285.33333342.666667
\(A_Q\)−12364.0000002.000000
\(B_L\)281265.33333332.666667
\(B_Q\)0360.0000000.000000
\(A_LB_L\)280.5000000.250000
\(A_LB_Q\)2240.1666670.083333
\(A_QB_L\)−2240.1666670.083333
\(A_QB_Q\)6720.5000000.250000

The four interaction components sum to 1.333333 \(= SS_{AB}\), and all eight to 156 \(= SS_{\text{cells}}\). \(\checkmark\) \(F_{0.05;\,1,\,9} = 5.117\).

5. Result

Almost everything is in \(A_L\) and \(B_L\): the response rises nearly linearly in both factors, with no useful curvature and no interaction (B is exactly linear: 46, 60, 74). Testing \(A_L\) alone (\(F = 42.7\)) is nearly twice as sensitive as the 2-d.f. test of A (\(F = 22.3\)), because it is aimed at the alternative that actually holds (worked also in Unit 2, Example 2.2).

Practical 7 — Identification of Confounded Terms in \(2^{3}\), \(2^{4}\) and \(3^{2}\)

1. Problem

Identify the confounded effects in each arrangement.

(a) A \(2^{3}\) in two blocks: Block 1: \((1), ab, c, abc\); Block 2: \(a, b, ac, bc\).

(b) A \(2^{4}\) in four blocks of four, whose principal block is \((1), ac, abd, bcd\).

(c) A \(3^{2}\) in three blocks, one of which is \((0,0), (1,1), (2,2)\).

2. Aim

To identify which effects a given blocked arrangement of a factorial has confounded with blocks.

3. Formula

\[ 2^{k}: \ E \text{ is confounded} \iff \text{every combination in the principal block shares an even number of letters with } E; \] \[ 3^{2}: \ x_1 + x_2 \ (\text{mod } 3) \text{ constant} \Rightarrow AB; \qquad x_1 + 2x_2 \ (\text{mod } 3) \text{ constant} \Rightarrow AB^{2} \]

The principal block (the one containing \((1)\)) must be a subgroup: closed under multiplication with squares reduced. With \(2^{p}\) blocks, \(2^{p} - 1\) effects are confounded: the generators and their generalised interactions.

Applying it:

  1. Check that the principal block is a subgroup.
  2. For each effect, count the letters each member shares with it; the effect is confounded if every count is even.
  3. For a \(3^{2}\), compute both linear forms for the members of one block.

4. Calculation

(a) \(ab \cdot c = abc\), \(ab \cdot abc = c\), \(c \cdot abc = ab\): closed. \(\checkmark\)

Effect(1)abcabcAll even?
\(A\)0101no
\(B\)0101no
\(C\)0011no
\(AB\)0202yes
\(AC\)0112no
\(BC\)0112no
\(ABC\)0213no

Modulo 2, block 1 is \((000), (110), (001), (111)\), which satisfy \(x_1 + x_2 \equiv 0\) — the defining equation of \(AB\).

(b) \(ac \cdot abd = bcd\), \(ac \cdot bcd = abd\), \(abd \cdot bcd = ac\): closed. \(\checkmark\) The letters shared with each member \((1), ac, abd, bcd\):

EffectcountsAll even?EffectcountsAll even?
\(A\)0, 1, 1, 0no\(BC\)0, 1, 1, 2no
\(B\)0, 0, 1, 1no\(BD\)0, 0, 2, 2yes
\(C\)0, 1, 0, 1no\(CD\)0, 1, 1, 2no
\(D\)0, 0, 1, 1no\(ABC\)0, 2, 2, 2yes
\(AB\)0, 1, 2, 1no\(ABD\)0, 1, 3, 2no
\(AC\)0, 2, 1, 1no\(ACD\)0, 2, 2, 2yes
\(AD\)0, 1, 2, 1no\(BCD\)0, 1, 2, 3no
\(ABCD\)0, 2, 3, 3no

Check: \(ABC \cdot ACD = A^{2}BC^{2}D = BD\), the generalised interaction. \(\checkmark\)

(c) For \((0,0), (1,1), (2,2)\): \(x_1 + x_2 \equiv 0, 2, 1\) (not constant); \(x_1 + 2x_2 \equiv 0, 0, 0\) (constant).

5. Result

(a) \(AB\) is confounded — a bad design, since a two-factor interaction has been sacrificed when \(ABC\) was available. (b) \(ABC\), \(ACD\) and their generalised interaction \(BD\) are confounded: in blocks of four a \(2^{4}\) must give up at least one two-factor interaction. (c) The \(AB^{2}\) component is confounded; both main effects remain orthogonal to blocks.

Practical 8 — Construction of a Design with a Specified Effect Confounded

1. Problem

(a) Arrange a \(2^{4}\) in two blocks of eight with \(ABCD\) confounded. (b) Arrange it in four blocks of four, and compare the choices \(\{ABC, BCD\}\), \(\{ABC, ABD\}\) and \(\{ABCD, ABC\}\) as generators. (c) Arrange a \(3^{2}\) in three blocks of three with \(AB\) confounded.

2. Aim

To construct a blocked factorial in which a chosen effect is confounded with blocks, checking the generalised interactions before adopting it.

3. Formula

\[ ABCD \text{ confounded: } x_1 + x_2 + x_3 + x_4 \equiv 0 \pmod 2 \text{ for the principal block}; \qquad \text{generalised interaction: } E_1 \cdot E_2, \text{ squares reduced}; \] \[ 3^{2}, \ AB \text{ confounded: blocks } x_1 + x_2 \equiv 0, 1, 2 \pmod 3 \]

Sacrifice the highest-order interaction available, and compute every generalised interaction before the design is adopted (Unit 3, section 1).

Applying it:

  1. Write the defining equation(s).
  2. List the combinations that satisfy each value; the one with \((1)\) is the principal block.
  3. For two generators, find their product and judge what else is lost.

4. Calculation

(a) Even number of letters:

\[ \text{Block 1: } (1),\ ab,\ ac,\ ad,\ bc,\ bd,\ cd,\ abcd; \qquad \text{Block 2: } a,\ b,\ c,\ d,\ abc,\ abd,\ acd,\ bcd. \]

Eight in each; block 1 contains \((1)\) and is closed under multiplication.

(b)

\[ ABC \cdot BCD = AD, \qquad ABC \cdot ABD = CD, \qquad ABCD \cdot ABC = D. \]

The first two each confound a two-factor interaction; the third confounds a main effect. A better choice is \(\{ABC, ACD\}\), whose interaction is \(BD\) (Practical 7(b)): every four-block arrangement of a \(2^{4}\) loses one two-factor interaction, so the choice is which one.

(c)

\(x_1+x_2 \bmod 3\)Block
0(0,0), (1,2), (2,1)
1(0,1), (1,0), (2,2)
2(0,2), (1,1), (2,0)

5. Result

(a) The two blocks above confound \(ABCD\) only. (b) None of the three proposed pairs is acceptable — two lose a two-factor interaction they need not and the third a main effect; compute the generalised interaction first. (c) Each block holds every level of A once and every level of B once, so both main effects are orthogonal to blocks and the two block degrees of freedom are exactly the \(AB\) component.

Practical 9 — ANOVA for Total Confounding of \(2^{3}\) and \(2^{4}\)

1. Problem

The \(2^{3}\) data of Practical 5 were run as two replicates of two blocks of four, with \(ABC\) confounded in both:

ReplicateBlock 1: (1), ab, ac, bcBlock 2: a, b, c, abcReplicate total
I9 + 21 + 18 + 15 = 6316 + 12 + 11 + 25 = 64127
II11 + 23 + 20 + 15 = 6916 + 14 + 13 + 27 = 70139

Complete the analysis of variance, and give the degrees of freedom for a \(2^{4}\) in \(r\) replicates of two blocks with \(ABCD\) confounded.

2. Aim

To analyse a factorial with one effect totally confounded with blocks, and to see that the block sum of squares is that effect's.

3. Formula

\[ SS_{\text{blocks within reps}} = \sum\frac{B^{2}}{2^{k-1}} - \sum\frac{R^{2}}{2^{k}}, \qquad SS_{\text{blocks within reps}} = SS_{\text{confounded effect}} \text{ when it is confounded in every replicate} \]

Applying it:

  1. Compute the blocks-within-replicates sum of squares.
  2. Compare it with the confounded effect's sum of squares from Practical 5.
  3. Write the table without the confounded effect; error by subtraction.

4. Calculation

\[ SS_{\text{blocks within reps}} = \frac{63^{2}+64^{2}+69^{2}+70^{2}}{4} - \frac{127^{2}+139^{2}}{8} = 4431.5 - 4431.25 = 0.25 \ \text{ on } 2 \text{ d.f.}, \]

and \(SS_{ABC} = 2^{2}/16 = 0.25\) (Practical 5): equal.

SourceSSdfMS\(F\)
Replicates9.001
Blocks within replicates (= \(ABC\))0.252
A272.251272.25544.5
B90.25190.25180.5
C30.25130.2560.5
AB12.25112.2524.5
AC2.2512.254.5
BC0.2510.250.5
Error3.0060.50
Total419.7515

\(F_{0.05;\,1,\,6} = 5.987\). For a \(2^{4}\) in \(r\) replicates of two blocks with \(ABCD\) confounded: replicates \(r - 1\), blocks within replicates \(r\) (= \(ABCD\)), 14 unconfounded effects, error \(14(r-1)\), total \(16r - 1\).

5. Result

A, B, C and AB are significant; AC, BC are not; \(ABC\) cannot be tested at all — its sum of squares is the block sum of squares. Confounding cost one degree of freedom of error and the whole of \(ABC\), and bought blocks of four instead of eight, which in a real experiment would lower the error mean square (worked also in Unit 3, Example 3.1).

Practical 10 — ANOVA for Partial Confounding of \(2^{3}\)

1. Problem

The \(2^{3}\) data of Practical 5 were run in two replicates of two blocks of four, with \(ABC\) confounded in replicate I and \(AB\) in replicate II:

ReplicateBlock 1Block 2
I (\(ABC\) confounded)(1) 9, ab 21, ac 18, bc 15  = 63a 16, b 12, c 11, abc 25  = 64
II (\(AB\) confounded)(1) 11, ab 23, c 13, abc 27  = 74a 16, b 14, ac 20, bc 15  = 65

Complete the analysis of variance.

2. Aim

To analyse a factorial in which different effects are confounded in different replicates, each being estimated from the replicates where it is free.

3. Formula

\[ SS = \frac{[\,\cdot\,]^{2}}{r'\,2^{k}}, \qquad r' = \text{number of replicates in which the effect is not confounded}; \qquad \text{relative information} = \frac{r'}{r} \]

Unconfounded effects are estimated from all replicates; a partially confounded one only from the replicates in which it is free (Unit 3, section 2).

Applying it:

  1. Replicates and blocks within replicates.
  2. A, B, C, AC, BC from both replicates (as in Practical 5).
  3. AB from replicate I only, ABC from replicate II only, with \(r' = 1\).
  4. Error by subtraction.

4. Calculation

\[ SS_{\text{rep}} = 9, \qquad SS_{\text{blocks within reps}} = \left[\frac{63^{2}+64^{2}}{4} - \frac{127^{2}}{8}\right] + \left[\frac{74^{2}+65^{2}}{4} - \frac{139^{2}}{8}\right] = 0.125 + 10.125 = 10.25 \ \text{ on } 2 \text{ d.f.} \]

From both replicates (Practical 5): \(SS_A = 272.25\), \(SS_B = 90.25\), \(SS_C = 30.25\), \(SS_{AC} = 2.25\), \(SS_{BC} = 0.25\).

\[ [AB]_{\text{I}} = (9 + 21 + 11 + 25) - (16 + 12 + 18 + 15) = 66 - 61 = 5, \qquad SS_{AB} = \frac{5^{2}}{1 \times 8} = 3.125, \] \[ [ABC]_{\text{II}} = (16 + 14 + 13 + 27) - (11 + 23 + 20 + 15) = 70 - 69 = 1, \qquad SS_{ABC} = \frac{1^{2}}{8} = 0.125. \] \[ SS_E = 419.75 - 9 - 10.25 - 395.25 - 3.125 - 0.125 = 2.0 \ \text{ on } 15 - 1 - 2 - 7 = 5 \text{ d.f.}, \ MS_E = 0.4. \]
SourceSSdfMS\(F\)
Replicates9.0001
Blocks within replicates10.2502
A272.2501272.250680.6
B90.250190.250225.6
C30.250130.25075.6
AB (from replicate I)3.12513.1257.81
AC2.25012.2505.63
BC0.25010.2500.63
ABC (from replicate II)0.12510.1250.31
Error2.00050.400
Total419.75015

\(F_{0.05;\,1,\,5} = 6.608\).

5. Result

A, B, C and AB are significant; AC, BC and ABC are not. Unlike Practical 9, every effect is tested — AB and ABC on half the information each (\(r'/r = 1/2\)), so their estimates have twice the variance of the others. AB's sum of squares, 3.125 from one replicate, differs from Practical 5's 12.25 from two: an effect estimated from fewer replicates is estimated less precisely, which is the price of keeping it.

Practical 11 — ANOVA for a One-Half Fraction of \(2^{4}\)

1. Problem

A one-half fraction of a \(2^{4}\) with defining contrast \(I = ABCD\) was run in two replicates:

RunABCD = ABCRep IRep IITotal
(1)−−−−141630
ad+−−+222244
bd−+−+191736
ab++−−252752
cd−−++171532
ac+−+−232548
bc−++−202242
abcd++++302858
Total170172342

Write the alias structure, estimate the effects and complete the analysis of variance.

2. Aim

To analyse a half-replicate of a two-level factorial, reading each estimate together with its alias.

3. Formula

\[ I = ABCD; \qquad \text{alias of } E = E \cdot ABCD \text{ (squares reduced)}; \qquad SS = \frac{[\,\cdot\,]^{2}}{r\,2^{k-1}}, \quad \text{effect} = \frac{[\,\cdot\,]}{r\,2^{k-2}} \]

The fraction is the principal block of \(ABCD\): set \(D = ABC\) on a full \(2^{3}\) in A, B, C. Its resolution is IV: main effects are clear of two-factor interactions, which are aliased in pairs (Unit 3, section 3).

Applying it:

  1. Write the aliases: \(A = BCD\), \(B = ACD\), \(C = ABD\), \(D = ABC\), \(AB = CD\), \(AC = BD\), \(AD = BC\).
  2. Form each contrast on the run totals from the sign columns.
  3. Sums of squares, replicates, error; the table.

4. Calculation

\[ [A] = (44 + 52 + 48 + 58) - (30 + 36 + 32 + 42) = 62, \quad [B] = 34, \quad [C] = 18, \quad [D] = -2, \] \[ [AB] = [CD] = 2, \quad [AC] = [BD] = 2, \quad [AD] = [BC] = 6. \] \[ \text{CF} = \frac{342^{2}}{16} = 7310.25, \quad SS_{\text{total}} = 7660 - 7310.25 = 349.75, \quad SS_{\text{rep}} = \frac{170^{2} + 172^{2}}{8} - \text{CF} = 0.25. \]
Source (alias)ContrastEffectSS\(F\) (1, 7)
A (= BCD)627.75240.25122.31
B (= ACD)344.2572.2536.78
C (= ABD)182.2520.2510.31
D (= ABC)−2−0.250.250.13
AB (= CD)20.250.250.13
AC (= BD)20.250.250.13
AD (= BC)60.752.251.15
Replicates0.25
Error (7 d.f.)13.75MS 1.964
Total (15 d.f.)349.75

\(SS_E = 349.75 - 0.25 - 335.75 = 13.75\). \(F_{0.05;\,1,\,7} = 5.591\).

5. Result

A, B and C are significant; D and the three pairs of two-factor interactions are not. Each reading rests on the assumption that the three-factor alias is negligible — the estimate labelled A is really \(A + BCD\). Eight runs per replicate instead of sixteen have bought clear main effects; the two-factor interactions could not have been separated from each other if any had been large.

Practical 12 — ANOVA for a One-Quarter Fraction of \(2^{5}\)

1. Problem

A one-quarter fraction of a \(2^{5}\), with generators \(D = AB\) and \(E = AC\), was run in two replicates:

RunABCD = ABE = ACRep IRep IITotal
de−−−++182038
a+−−−−252550
be−+−−+202242
abd++−+−292756
cd−−++−222042
ace+−+−+272956
bc−++−−212344
abcde+++++333164
Total195197392

Write the defining relation and aliases, estimate the effects and complete the analysis of variance.

2. Aim

To analyse a quarter-replicate of a two-level factorial in five factors, a resolution III screening design.

3. Formula

\[ I = ABD = ACE = BCDE; \qquad \text{alias of } E' = E' \cdot ABD,\ E' \cdot ACE,\ E' \cdot BCDE; \qquad SS = \frac{[\,\cdot\,]^{2}}{r\,2^{k-2}} \]

The third word is the product of the first two, \(ABD \cdot ACE = BCDE\). The shortest word has three letters, so the design is of resolution III: main effects are aliased with two-factor interactions.

Applying it:

  1. Write the aliases of the seven estimable contrasts.
  2. Form each contrast on the run totals.
  3. Sums of squares, replicates, error; the table.

4. Calculation

EstimatesAliased with
\(A\)\(BD\), \(CE\), \(ABCDE\)
\(B\)\(AD\), \(CDE\), \(ABCE\)
\(C\)\(AE\), \(BDE\), \(ABCD\)
\(D\)\(AB\), \(BCE\), \(ACDE\)
\(E\)\(AC\), \(BCD\), \(ABDE\)
\(BC\)\(DE\), \(ACD\), \(ABE\)
\(BE\)\(CD\), \(ADE\), \(ABC\)
\[ [A] = (50 + 56 + 56 + 64) - (38 + 42 + 42 + 44) = 60, \quad [B] = 20, \quad [C] = 20, \quad [D] = 8, \quad [E] = 8, \quad [BC] = 0, \quad [BE] = 4. \] \[ \text{CF} = \frac{392^{2}}{16} = 9604, \quad SS_{\text{total}} = 9902 - 9604 = 298, \quad SS_{\text{rep}} = 0.25. \]
Source (main alias)ContrastSS\(F\) (1, 7)
A (= BD = CE)60225114.55
B (= AD)202512.73
C (= AE)202512.73
D (= AB)842.04
E (= AC)842.04
BC (= DE)000
BE (= CD)410.51
Replicates0.25
Error (7 d.f.)13.75MS 1.964
Total (15 d.f.)298

\(SS_E = 298 - 0.25 - 284 = 13.75\). \(F_{0.05;\,1,\,7} = 5.591\).

5. Result

A, B and C are significant; D, E and the interaction strings are not. Because the design is resolution III, each significant estimate is really a main effect plus two-factor interactions — "B" is \(B + AD\). Five factors in eight runs is a screening bargain: it says A, B and C are worth a follow-up experiment that separates them from their aliases.

Practical 13 — ANOVA for a Split-Plot Design

1. Problem

Two irrigation methods (A, whole plots) and three varieties (B, sub-plots) are compared in three replicates. Each whole plot was split into three sub-plots, to which the varieties were randomised:

ReplicateA₁: B₁, B₂, B₃A₂: B₁, B₂, B₃Total
120, 24, 22 (66)26, 30, 29 (85)151
218, 23, 21 (62)27, 31, 29 (87)149
321, 26, 23 (70)27, 30, 30 (87)157

Analyse the experiment.

2. Aim

To analyse a split-plot design, testing the whole-plot factor against the whole-plot error and the sub-plot factor and interaction against the sub-plot error.

3. Formula

\[ SS_{\text{WP error}} = \sum_{ri}\frac{(RA)_{ri}^{2}}{b} - \text{CF} - SS_R - SS_A \ \text{ on } (r-1)(a-1), \] \[ SS_{AB} = \sum_{ij}\frac{(AB)_{ij}^{2}}{r} - \text{CF} - SS_A - SS_B, \qquad SS_{\text{SP error}} = SS_{\text{total}} - \left[\sum\frac{(RA)^{2}}{b} - \text{CF}\right] - SS_B - SS_{AB} \ \text{ on } a(r-1)(b-1) \]

A is compared between whole plots, so it is tested against the whole-plot error; B and \(A \times B\) within whole plots, against the sub-plot error (Unit 3, section 4).

Applying it:

  1. Correction factor, total, replicates, A, and the replicate × A table; the whole-plot error by subtraction.
  2. B, and the A × B table; the sub-plot error by subtraction.
  3. Test A against the whole-plot error, B and AB against the sub-plot error.

4. Calculation

\(G = 457\), \(N = 18\), \(\text{CF} = 457^{2}/18 = 11602.722222\), raw sum of squares 11877, \(SS_{\text{total}} = 274.277778\).

\[ SS_R = \frac{151^{2}+149^{2}+157^{2}}{6} - \text{CF} = 5.777778, \qquad SS_A = \frac{198^{2}+259^{2}}{9} - \text{CF} = 206.722222, \] \[ \sum\frac{(RA)^{2}}{3} - \text{CF} = \frac{66^{2}+85^{2}+62^{2}+87^{2}+70^{2}+87^{2}}{3} - \text{CF} = 218.277778, \qquad SS_{\text{WP error}} = 218.277778 - 5.777778 - 206.722222 = 5.777778. \]

The variety totals are 139, 164, 154 and the A × B totals 59, 73, 66 (A₁) and 80, 91, 88 (A₂):

\[ SS_B = \frac{139^{2}+164^{2}+154^{2}}{6} - \text{CF} = 52.777778, \qquad SS_{AB} = 1.444444, \qquad SS_{\text{SP error}} = 274.277778 - 218.277778 - 52.777778 - 1.444444 = 1.777778. \]
SourceSSdfMS\(F\)\(F_{0.05}\)
Replicates5.77777822.888889
A (irrigation)206.7222221206.72222271.5618.51
Whole-plot error5.77777822.888889
B (variety)52.777778226.388889118.754.459
A × B1.44444420.7222223.254.459
Sub-plot error1.77777880.222222
Total274.27777817

5. Result

Irrigation (\(F = 71.6\) on 1 and 2 d.f.) and variety (\(F = 118.8\)) are both significant; their interaction is not (\(F = 3.25\)). The whole-plot error mean square, 2.89, is thirteen times the sub-plot one, 0.22: the design has bought precision on the varieties and the interaction at the cost of precision on irrigation, which is tested on only 2 error degrees of freedom. Analysing this as an ordinary factorial, with one pooled error, would overstate the evidence on irrigation.

Practical 14 — Analysis of a Balanced Incomplete Block Design

1. Problem

Four treatments are compared in six blocks of two, every pair of treatments together exactly once:

BlockContentsBlock total \(B_j\)
1A = 10, B = 1222
2A = 11, C = 1526
3A = 9, D = 1827
4B = 13, C = 1629
5B = 11, D = 1728
6C = 14, D = 2034

Carry out the intra-block analysis.

2. Aim

To analyse a balanced incomplete block design, comparing treatments after adjusting for the blocks each one appeared in.

3. Formula

\[ vr = bk, \quad \lambda(v-1) = r(k-1), \quad b \ge v; \qquad Q_i = T_i - \frac1k\sum_{j \ni i}B_j, \qquad SS_{\text{tr(adj)}} = \frac{k\sum Q_i^{2}}{\lambda v}, \] \[ SS_E = SS_{\text{total}} - SS_{\text{blocks(unadj)}} - SS_{\text{tr(adj)}} \ \text{ on } N - b - v + 1, \qquad \hat\mu_i = \bar y + \frac{kQ_i}{\lambda v}, \qquad SE(\hat\mu_i - \hat\mu_{i'}) = \sqrt{\frac{2k\,MS_E}{\lambda v}}, \qquad E = \frac{\lambda v}{rk} \]

Applying it:

  1. Check the parameters \((v, b, r, k, \lambda) = (4, 6, 3, 2, 1)\).
  2. Treatment totals; the adjusted totals \(Q_i\) (they sum to zero).
  3. Adjusted treatment, unadjusted block and total sums of squares; error by subtraction.
  4. Adjusted means, their standard error, and the efficiency factor.

4. Calculation

\[ vr = 12 = bk, \qquad \lambda(v-1) = 3 = r(k-1), \qquad b = 6 \ge 4 = v. \checkmark \] \[ T_A = 30, \ T_B = 36, \ T_C = 45, \ T_D = 55, \ G = 166, \ \text{CF} = 2296.333333; \] \[ Q_A = 30 - \frac{22+26+27}{2} = -7.5, \quad Q_B = 36 - 39.5 = -3.5, \quad Q_C = 45 - 44.5 = 0.5, \quad Q_D = 55 - 44.5 = 10.5; \quad \sum Q = 0. \checkmark \] \[ SS_{\text{tr(adj)}} = \frac{2 \times 179}{4} = 89.5, \quad SS_{\text{total}} = 2426 - 2296.333333 = 129.666667, \quad SS_{\text{blocks(unadj)}} = 2335 - 2296.333333 = 38.666667, \] \[ SS_E = 129.666667 - 38.666667 - 89.5 = 1.5 \ \text{ on } 3 \text{ d.f.}, \quad MS_E = 0.5, \quad F = \frac{29.833333}{0.5} = 59.67 \ (F_{0.05;\,3,\,3} = 9.277). \] \[ \hat\mu_i = 13.833333 + 0.5\,Q_i: \ 10.083333,\ 12.083333,\ 14.083333,\ 19.083333; \qquad SE = \sqrt{0.5} = 0.707107, \qquad E = \frac46 = 0.666667. \]

5. Result

The treatments differ significantly (\(F = 59.7\)). The adjusted means are 10.08, 12.08, 14.08, 19.08 for A, B, C, D, against unadjusted 10, 12, 15, 18.33: C has been pulled down and D pushed up, because D happened to appear in the heaviest blocks. The design recovers two thirds of the information of a complete block design, in exchange for blocks of two (worked also in Unit 3, Example 3.2).

Practical 15 — Analysis of a Youden Square Design

1. Problem

Four treatments are compared in a \(3 \times 4\) Youden square: three rows (positions) and four columns (days), each column a block of three:

Col 1Col 2Col 3Col 4Row total
Row 1A 12B 15C 18D 2166
Row 2B 14C 17D 20A 1364
Row 3C 16D 22A 14B 1668
Column total42545250198

Analyse the experiment.

2. Aim

To analyse a Youden square: a Latin square with rows missing, whose columns form a symmetric BIBD.

3. Formula

\[ v = b = 4, \ k = r = 3, \ \lambda = 2; \qquad Q_i = T_i - \frac1k\sum_{\text{columns} \ni i}C_j, \qquad SS_{\text{tr(adj)}} = \frac{k\sum Q_i^{2}}{\lambda v}, \] \[ SS_E = SS_{\text{total}} - SS_{\text{rows}} - SS_{\text{cols(unadj)}} - SS_{\text{tr(adj)}} \ \text{ on } (bk - 1) - (k-1) - (b-1) - (v-1) \]

Every treatment appears once in each row, so rows are orthogonal to treatments and are taken out first; the columns are the blocks of a BIBD (Unit 4, section 3).

Applying it:

  1. Totals for rows, columns and treatments; the correction factor and total.
  2. The adjusted treatment totals \(Q_i\) from the columns each treatment appears in.
  3. Rows, columns (unadjusted), treatments (adjusted); error by subtraction.
  4. Adjusted means and their standard error.

4. Calculation

\(T_A = 39\), \(T_B = 45\), \(T_C = 51\), \(T_D = 63\); \(G = 198\), \(\text{CF} = 198^{2}/12 = 3267\), raw sum of squares 3380, \(SS_{\text{total}} = 113\). A appears in columns 1, 3, 4 (totals 42, 52, 50):

\[ Q_A = 39 - \frac{144}{3} = -9, \quad Q_B = 45 - \frac{146}{3} = -\frac{11}{3}, \quad Q_C = 51 - \frac{148}{3} = \frac53, \quad Q_D = 63 - \frac{156}{3} = 11; \quad \sum Q = 0. \checkmark \] \[ SS_{\text{tr(adj)}} = \frac{3}{8}\left(81 + \frac{121}{9} + \frac{25}{9} + 121\right) = 81.833333, \quad SS_{\text{rows}} = \frac{66^{2}+64^{2}+68^{2}}{4} - 3267 = 2, \quad SS_{\text{cols}} = \frac{42^{2}+54^{2}+52^{2}+50^{2}}{3} - 3267 = 27.666667, \] \[ SS_E = 113 - 2 - 27.666667 - 81.833333 = 1.5 \ \text{ on } 11 - 2 - 3 - 3 = 3 \text{ d.f.}, \quad MS_E = 0.5. \]
SourceSSdfMS\(F\)
Rows2.00000021.000000
Columns (unadjusted)27.66666739.222222
Treatments (adjusted)81.833333327.27777854.56
Error1.50000030.500000
Total113.00000011
\[ \hat\mu_i = 16.5 + \frac38 Q_i: \ 13.125,\ 15.125,\ 17.125,\ 20.625; \qquad SE(\hat\mu_i - \hat\mu_{i'}) = \sqrt{\frac{2 \times 3 \times 0.5}{8}} = 0.612372. \]

\(F_{0.05;\,3,\,3} = 9.277\).

5. Result

The treatments differ significantly (\(F = 54.6\)): adjusted means 13.13, 15.13, 17.13, 20.63 for A, B, C, D, each difference with standard error 0.61. Both nuisance factors have been removed — rows exactly, as in a Latin square, and columns as the blocks of a BIBD — with only three positions for four treatments.

Practical 16 — Analysis of a Partially Balanced Incomplete Block Design

1. Problem

Six treatments, the pairs \(12, 13, 14, 23, 24, 34\) from \(\{1, 2, 3, 4\}\), are compared in the triangular PBIBD with four blocks of three (block \(x\) holds the three pairs not containing \(x\)):

BlockTreatments and yieldsBlock total
123 = 15, 24 = 17, 34 = 2153
213 = 12, 14 = 14, 34 = 2248
312 = 9, 14 = 13, 24 = 1638
412 = 10, 13 = 12, 23 = 1638

Carry out the intra-block analysis.

2. Aim

To analyse a partially balanced incomplete block design with two associate classes, and to see that its treatment comparisons have two standard errors.

3. Formula

\[ Q_i = T_i - \frac1k\sum_{j \ni i}B_j, \qquad \mathbf{C}\hat{\boldsymbol\tau} = \mathbf{Q}, \qquad c_{ii} = \frac{r(k-1)}{k}, \quad c_{ii'} = -\frac{\lambda_m}{k} \ (i, i' \text{ $m$th associates}), \qquad SS_{\text{tr(adj)}} = \sum \hat\tau_i Q_i \]

Here \(v = 6\), \(b = 4\), \(k = 3\), \(r = 2\); first associates share a symbol (\(n_1 = 4\), \(\lambda_1 = 1\)), second associates do not (\(n_2 = 1\), \(\lambda_2 = 0\)) (Unit 4, Example 4.1).

Applying it:

  1. Treatment and block totals; the adjusted totals \(Q_i\).
  2. Solve the normal equations. With \(\sum\hat\tau = 0\), the first-associate sum is \(-\hat\tau_i - \hat\tau_{i''}\), where \(i''\) is the second associate, so \(3\mathbf{C}\hat{\boldsymbol\tau} = 3\mathbf{Q}\) gives \(5\hat\tau_i + \hat\tau_{i''} = 3Q_i\), whence \(\hat\tau_i = (5Q_i - Q_{i''})/8\).
  3. Adjusted treatment, unadjusted block and total sums of squares; error by subtraction.
  4. Adjusted means and the two standard errors.

4. Calculation

Treatment121314232434
\(T_i\)192427313343
blocks containing it3, 42, 42, 31, 41, 31, 2
\(Q_i\)−19/3−14/3−5/32/38/328/3
\(\hat\tau_i = (5Q_i - Q_{i''})/8\)−5.125−3.250−1.1250.6252.2506.625

For 12, whose second associate is 34: \(\hat\tau = (5(-19/3) - 28/3)/8 = -41/8 = -5.125\). \(\sum Q = 0\) and \(\sum\hat\tau = 0\). \(\checkmark\)

\[ SS_{\text{tr(adj)}} = \sum\hat\tau_iQ_i = 117.75, \qquad G = 177, \ \text{CF} = 2610.75, \qquad SS_{\text{total}} = 2785 - 2610.75 = 174.25, \] \[ SS_{\text{blocks(unadj)}} = \frac{53^{2}+48^{2}+38^{2}+38^{2}}{3} - \text{CF} = 56.25, \qquad SS_E = 174.25 - 56.25 - 117.75 = 0.25 \ \text{ on } 12 - 4 - 6 + 1 = 3 \text{ d.f.} \]
SourceSSdfMS\(F\)
Blocks (unadjusted)56.25318.75
Treatments (adjusted)117.75523.55282.6
Error0.2530.083333
Total174.2511

Adjusted means \(14.75 + \hat\tau_i\): 9.625, 11.500, 13.625, 15.375, 17.000, 21.375. The standard error of a difference is 0.3227 for first associates and 0.3536 for second associates. \(F_{0.05;\,5,\,3} = 9.013\).

5. Result

The treatments differ significantly (\(F = 282.6\)); 34 is best (adjusted mean 21.38). Two treatments that share a symbol — first associates, which met in a block once — are compared with standard error 0.32; two that never met, second associates, with 0.35. That is the practical meaning of "partially" balanced, and why a BIBD is preferred when one exists; here none does, since \(\lambda = r(k-1)/(v-1) = 4/5\) is not a whole number.

Working These by Hand in an Examination

What the Practical Record Should Contain

FOR EACH EXPERIMENT
  1. 1. Problem — the design used, named, and the layout written out (blocks, replicates, which treatment where), with the data.
  2. 2. Aim — in one line.
  3. 3. Formula — the model, the null hypothesis being tested, the sums of squares and the steps that apply them.
  4. 4. Calculation — the full working: correction factor, every sum of squares, the degrees of freedom table, and the analysis of variance table with \(F\) and the table value used.
  5. 5. Result — the conclusion in words, with adjusted means and their standard error where the design is incomplete.