Algorithm Search⌘K

Definitioncore

Factorial design

Also called full factorial experiment, 2^k factorial design.

An experiment that runs every combination of the levels of several factors, so that main effects and all interactions can be estimated.

A factorial design runs every combination of the levels of several factors. With kk factors at two levels each it has 2k2^k runs and is called a 2k2^k design. Fisher and Yates used factorial designs at Rothamsted for two reasons. First, every run is used to estimate every effect, so a factorial experiment gets the precision of a one-factor-at-a-time experiment with fewer runs. Second, it estimates interactions, which tell whether the effect of one factor depends on the level of another. In a two-level design the contrast columns are orthogonal ±1\pm 1 vectors, so the effects are estimated independently, and Yates's algorithm computes all 2k2^k of them in k⋅2kk \cdot 2^k additions. That algorithm is the fast Walsh-Hadamard transform.

Definition

Let factors F1,…,FkF_1, \dots, F_k have s1,…,sks_1, \dots, s_k levels. A full factorial design runs each of the s1s2⋯sks_1 s_2 \cdots s_k treatment combinations m≥1m \ge 1 times, in an order chosen at random as in a randomized experiment. A two-way ANOVA with equal cell counts is the analysis of a full factorial design with two factors.

Two-level designs. Code the low level of each factor as −1-1 and the high level as +1+1, and name the factors A,B,C,…A, B, C, \dots. A run is named by the lower-case letters of its factors at the high level, and (1)(1) is the run with all factors low. In standard order the N=2kN = 2^k runs are numbered x=0,…,N−1x = 0, \dots, N - 1, and factor ii (with AA as i=0i = 0) is high in run xx when bit ii of xx is 1. So the order is (1),a,b,ab,c,ac,bc,abc,…(1), a, b, ab, c, ac, bc, abc, \dots. Write xi∈{−1,+1}x_i \in \{-1, +1\} for the level of factor ii in run xx, and yxy_x for the response of run xx (the mean of its mm replicates).

For a set SS of factors, with bit mask ss, the contrast column xSx_S has the entry ∏i∈Sxi\prod_{i \in S} x_i in run xx, and x∅=1x_\emptyset = 1. The contrast and the effect of SS are

cS=∑xxS(x) yx,E^S=cSN/2(S≠∅),c_S = \sum_x x_S(x)\, y_x, \qquad \hat E_S = \frac{c_S}{N/2} \quad (S \ne \emptyset),

and c∅/Nc_\emptyset / N is the grand mean. In the order of the masks s=0,1,2,…s = 0, 1, 2, \dots the effects are I,A,B,AB,C,AC,BC,ABC,…I, A, B, AB, C, AC, BC, ABC, \dots. The main effect E^A\hat E_A is the mean response at high AA minus the mean response at low AA. The two-factor interaction E^AB\hat E_{AB} is half of the difference between the AA effect at high BB and the AA effect at low BB. Higher interactions repeat this one level up.

The model. In the regression notation y=Xb+ey = Xb + e of ordinary least squares, let XX have the NN columns xSx_S, so n=Nn = N rows and NN columns including the intercept x∅x_\emptyset. This is the saturated model: it fits every run mean exactly. The coefficient bSb_S is half the effect ESE_S, because a factor moves two units from −1-1 to +1+1.

Theorem 1 (orthogonality). For all sets SS and TT, xS⊤xT=Nx_S^\top x_T = N if S=TS = T and 00 otherwise. So X⊤X=NIX^\top X = NI and the least squares estimates are b^S=cS/N\hat b_S = c_S/N. With mm replicates of each run and independent errors of variance σ2\sigma^2, the effect estimates are uncorrelated and Var⁡(E^S)=4σ2/(mN)\operatorname{Var}(\hat E_S) = 4\sigma^2/(mN). The sum of squares of effect SS is SSS=mcS2/NSS_S = m c_S^2/N, and

m∑x(yx−yˉ)2=∑S≠∅SSS.m \sum_x (y_x - \bar y)^2 = \sum_{S \ne \emptyset} SS_S .

Proof. Since xi2=1x_i^2 = 1, xS(x) xT(x)=xS△T(x)x_S(x)\,x_T(x) = x_{S \triangle T}(x), where S△TS \triangle T is the symmetric difference. Let UU be nonempty and pick i∈Ui \in U. The map that changes the level of factor ii is a bijection on the runs, and it changes the sign of xUx_U, so ∑xxU(x)=0\sum_x x_U(x) = 0. With U=S△TU = S \triangle T this gives xS⊤xT=0x_S^\top x_T = 0 for S≠TS \ne T, and xS⊤xS=∑x1=Nx_S^\top x_S = \sum_x 1 = N. Stack the mm replicates: the full model matrix has X⊤XX^\top X replaced by mNImNI and X⊤yX^\top y by mX⊤yˉm X^\top \bar y, where yˉ\bar y is the vector of run means. So b^=X⊤yˉ/N\hat b = X^\top \bar y / N, that is b^S=cS/N\hat b_S = c_S/N, with covariance σ2I/(mN)\sigma^2 I/(mN), and E^S=2b^S\hat E_S = 2\hat b_S has variance 4σ2/(mN)4\sigma^2/(mN). Because XX is square and invertible, the fitted values are the run means, so the between-run sum of squares is m(∥Xb^∥2−Nyˉ2)=m(N∑Sb^S2−Nb^∅2)=∑S≠∅mcS2/Nm(\lVert X\hat b\rVert^2 - N\bar y^2) = m\big(N \sum_S \hat b_S^2 - N \hat b_\emptyset^2\big) = \sum_{S \ne \emptyset} m c_S^2/N. □\square

Three consequences follow.

  • Each SSSSS_S is the drop in the residual sum of squares when xSx_S is added to any model that contains other columns xTx_T, because the columns are orthogonal. So the type I, II and III sums of squares of the two-way ANOVA agree, and with m≥2m \ge 2 each effect has the regression F-test F=SSS/MSEF = SS_S/\text{MSE} on (1,N(m−1))(1, N(m - 1)) degrees of freedom.
  • Every effect uses all NN runs. With k=3k = 3 and m=1m = 1, Var⁡(E^A)=σ2/2\operatorname{Var}(\hat E_A) = \sigma^2/2 from 8 runs. A one-factor-at-a-time experiment that runs (1),a,b,c(1), a, b, c each rr times estimates AA by the mean of aa minus the mean of (1)(1), with variance 2σ2/r2\sigma^2/r. It needs r=4r = 4, so 16 runs, for the same precision, and it estimates no interaction.
  • XX is the Sylvester-Hadamard matrix with some columns negated (Theorem 2), so its columns are the codewords of the Hadamard code in ±1\pm 1 form, and XX is a Walsh-Hadamard transform matrix.

Theorem 2 (Yates's algorithm is the fast Walsh-Hadamard transform). The algorithm below returns the contrasts cSc_S in the order of the masks ss. In matrix form c=DHNyc = D H_N y, where HN=H2⊗kH_N = H_2^{\otimes k} is the Sylvester-Hadamard matrix, a Kronecker product power with (HN)sx=(−1)popcount⁡(s∧x)(H_N)_{sx} = (-1)^{\operatorname{popcount}(s \wedge x)}, and D=diag⁡((−1)∣s∣)D = \operatorname{diag}\big((-1)^{|s|}\big). It does k⋅Nk \cdot N additions and subtractions, against N2=4kN^2 = 4^k for the direct sums.

  1. YATES(y[0..N-1]) ▷ N = 2^k, runs in standard order
  2. 1col ← y
  3. 2repeat k times:
  4. 3sums ← (col[2i] + col[2i+1] for i = 0, ..., N/2 - 1)
  5. 4diffs ← (col[2i+1] - col[2i] for i = 0, ..., N/2 - 1)
  6. 5col ← sums followed by diffs
  7. 6return col ▷ col[s] = c_S; effect = col[s]/(N/2), mean = col[0]/N

Proof. First the matrix form. If βi\beta_i is bit ii of xx, then xi=2βi−1=−(−1)βix_i = 2\beta_i - 1 = -(-1)^{\beta_i}, so xS(x)=(−1)∣S∣(−1)popcount⁡(s∧x)x_S(x) = (-1)^{|S|} (-1)^{\operatorname{popcount}(s \wedge x)} and c=DHNyc = DH_N y.

Now the passes. A pass reads positions 2i2i and 2i+12i + 1 and writes position ii (the sum) and position i+N/2i + N/2 (the difference). In bits, it removes the lowest bit β\beta of the position, moves the other bits down by one, and puts a new top bit tt. The value written is ∑β∈{0,1}(2β−1)t col[2i+β]\sum_{\beta \in \{0, 1\}} (2\beta - 1)^t\, \text{col}[2i + \beta]: for t=0t = 0 the sum, for t=1t = 1 the second minus the first. Claim: after pp passes, the entry at the position whose bits, from low to high, are (βp,…,βk−1,t0,…,tp−1)(\beta_p, \dots, \beta_{k-1}, t_0, \dots, t_{p-1}) equals

∑β0,…,βp−1∈{0,1} ∏j<p(2βj−1)tj  y(β0,…,βk−1).\sum_{\beta_0, \dots, \beta_{p-1} \in \{0, 1\}} \ \prod_{j < p} (2\beta_j - 1)^{t_j}\; y_{(\beta_0, \dots, \beta_{k-1})}.

For p=0p = 0 this is yy itself. Pass p+1p + 1 removes the lowest bit βp\beta_p, sums over it with the weight (2βp−1)tp(2\beta_p - 1)^{t_p}, and puts tpt_p on top, which is the claim for p+1p + 1. After kk passes the position is s=(t0,…,tk−1)s = (t_0, \dots, t_{k-1}) and the entry is ∑x∏j∈Sxj yx=cS\sum_x \prod_{j \in S} x_j\, y_x = c_S. Each pass does N/2N/2 additions and N/2N/2 subtractions. □\square

Each pass is one sparse factor of H2⊗kH_2^{\otimes k} followed by a perfect shuffle, with the same read and write pattern in every pass. The in-place form on the fast Walsh-Hadamard transform page uses butterflies at distances 1,2,4,…1, 2, 4, \dots instead. Since D2=ID^2 = I and HN2=NIH_N^2 = NI, the data come back as y=HNDc/Ny = H_N D c/N, so setting small contrasts to zero before this inverse gives fitted values. On integer data all the arithmetic is exact. The test file checks Theorem 2 against the direct sums for k≤8k \le 8 in exact arithmetic, and checks c=DHNyc = DH_N y for k≤6k \le 6.

Without replication. With m=1m = 1 the model is saturated and no degrees of freedom are left for error. The usual answers are to replicate, to pool high-order interactions that are assumed zero, or to plot the effects on normal probability paper, where pure noise lies on a line (Daniel, 1959; cited, not proved here).

Blocking. When a block holds only half of the runs, the experimenter confounds a high-order interaction with the blocks: in a 232^3 design, the runs with xABC=−1x_{ABC} = -1 go in one block and the runs with xABC=+1x_{ABC} = +1 in the other. Then ABCABC cannot be estimated, but by Theorem 1 every other column is orthogonal to the block column, so the other effects are unchanged. To run only one of the blocks is to run a fractional factorial design.

Examples and non-examples

Example: a 232^3 pilot plant experiment. This is the pilot plant example of Box, Hunter and Hunter, Chapter 5, with temperature (AA), concentration (BB) and catalyst (CC). The yields in standard order are 60,72,54,68,52,83,45,8060, 72, 54, 68, 52, 83, 45, 80, and Yates's algorithm gives:

run yy pass 1 pass 2 pass 3 effect estimate SSSS
(1) 60 132 254 514 I 64.25 (mean)
a 72 122 260 92 A 23 1058
b 54 135 26 -20 B -5 50
ab 68 125 66 6 AB 1.5 4.5
c 52 12 -10 6 C 1.5 4.5
ac 83 14 -10 40 AC 10 200
bc 45 31 2 0 BC 0 0
abc 80 35 4 2 ABC 0.5 0.5

The sums of squares add to 1317.51317.5, the total sum of squares about the mean, as Theorem 1 says. The large effects are AA, ACAC and BB. The temperature effect is 1313 with catalyst low and 3333 with catalyst high, and the interaction is AC=(33−13)/2=10AC = (33 - 13)/2 = 10. So the main effect of the catalyst, 1.51.5, does not mean that the catalyst has no effect: it changes the effect of temperature. With one replicate there is no error estimate, so the decision about which effects are real needs replicates or a probability plot. The test file checks every number in the table.

Example: the model matrix of a 222^2 design. In standard order the columns I,A,B,ABI, A, B, AB are

X=(1−1−1111−1−11−11−11111)=H4D,X⊤X=4I,X = \begin{pmatrix} 1 & -1 & -1 & 1 \\ 1 & 1 & -1 & -1 \\ 1 & -1 & 1 & -1 \\ 1 & 1 & 1 & 1 \end{pmatrix} = H_4 D, \qquad X^\top X = 4I,

with D=diag⁡(1,−1,−1,1)D = \operatorname{diag}(1, -1, -1, 1). A balanced two-way ANOVA of two factors at two levels with mm observations per cell is this design, and its sums of squares are mcS2/4m c_S^2/4.

Example: the design as a code and as an array. The 2k2^k runs, written as 0/1 vectors, are all of {0,1}k\{0, 1\}^k, so the design is an orthogonal array of strength kk: every set of columns contains every combination of levels equally often. A fractional design keeps only part of this strength.

Non-example: one factor at a time. Start at (1)(1) and change AA alone: the estimate is a−(1)=72−60=12a - (1) = 72 - 60 = 12. In the pilot plant the temperature effect is 1313 at low catalyst and 3333 at high catalyst, so the experiment that holds CC low never sees the larger effect. It also needs twice the runs for the same precision (Theorem 1).

Non-example: a lost run. If run abcabc is lost, the 7 remaining runs do not form a factorial design. Every column is +1+1 at abcabc, so every pair of distinct columns now has inner product 0−1=−10 - 1 = -1. The estimates are correlated, the sum of squares of an effect depends on the other terms in the model, and the analysis needs the type I, II and III choices of the unbalanced two-way ANOVA.

  • Two-way ANOVA: the analysis of a two-factor factorial; balance gives orthogonal sums of squares.
  • Fractional factorial design: runs a 2−p2^{-p} fraction of a 2k2^k design and aliases effects in a known pattern.
  • Plackett-Burman design: two-level main-effect designs whose run size is a multiple of 4, built from Hadamard matrices.
  • Orthogonal array: the general frame; a full 2k2^k design is an orthogonal array of strength kk.
  • Walsh-Hadamard transform and fast Walsh-Hadamard transform: the contrasts are a Walsh-Hadamard transform, and Yates's algorithm is a fast one.
  • Response surface methodology: starts with a two-level factorial, often with center points, to fit a first-order model and find the direction of improvement.
  • Optimal experimental design: for the first-order model with columns I,A,…I, A, \dots on the cube [−1,1]k[-1, 1]^k, a two-level design of NN runs whose model matrix has X⊤X=NIX^\top X = NI, such as the 2k2^k design, is D-optimal among designs of NN runs. Each diagonal entry of X⊤XX^\top X is at most NN, and Hadamard's inequality bounds the determinant of X⊤XX^\top X by the product of its diagonal entries.

Code

Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.

factorial_design.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/factorial-design/. The authors are listed in prov/NCP43N.jsonl.
"""Two-level full factorial designs 2^k and Yates's algorithm.

Runs are in standard order: run x = 0, ..., 2^k - 1 sets factor i (A = 0, B = 1, ...)
to its high level when bit i of x is 1, so the order is (1), a, b, ab, c, ac, bc, abc, ...
The contrast of the effect with factor set S (bit mask s) is sum_x y_x prod_{i in S} (+1 if
bit i of x is set, else -1). Yates's algorithm computes all 2^k contrasts in k passes:
each pass writes the sums of consecutive pairs into the first half and the differences
(second minus first) into the second half. It is a fast Walsh-Hadamard transform, so it
costs k 2^k additions instead of the 4^k of the direct sums.
"""

from string import ascii_uppercase


def runs(k: int) -> list[tuple[int, ...]]:
    """The 2^k runs in standard order, as tuples of -1 / +1 levels for A, B, ..."""
    return [tuple(1 if (x >> i) & 1 else -1 for i in range(k)) for x in range(2 ** k)]


def effect_name(s: int) -> str:
    """The label of the effect with bit mask s: 0 -> I, 1 -> A, 3 -> AB, 5 -> AC."""
    return "".join(ascii_uppercase[i] for i in range(s.bit_length()) if (s >> i) & 1) or "I"


def yates(y: list[float]) -> list[float]:
    """All 2^k contrasts of responses y in standard order, in effect order I, A, B, AB, C, ..."""
    n = len(y)
    k = n.bit_length() - 1
    if n == 0 or n != 1 << k:
        raise ValueError("the number of runs must be a power of two")
    col = list(y)  # @line L1
    for _ in range(k):  # @line L2
        half = n // 2
        sums = [col[2 * i] + col[2 * i + 1] for i in range(half)]  # @line L3
        diffs = [col[2 * i + 1] - col[2 * i] for i in range(half)]  # @line L4
        col = sums + diffs  # @line L5
    return col  # @line L6


def contrasts_direct(y: list[float]) -> list[float]:
    """The same contrasts by their definition, 4^k operations: the reference for tests."""
    n = len(y)
    out = []
    for s in range(n):
        total = 0
        for x, v in enumerate(y):
            sign = 1
            for i in range(n.bit_length() - 1):
                if (s >> i) & 1:
                    sign *= 1 if (x >> i) & 1 else -1
            total += sign * v
        out.append(total)
    return out


def effects(y: list[float]) -> dict[str, float]:
    """Effect estimates: contrast / (N / 2) for each effect, and the grand mean for I."""
    n = len(y)
    c = yates(y)
    return {effect_name(s): (c[s] / n if s == 0 else 2.0 * c[s] / n) for s in range(n)}
test_factorial_design.py 125 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/factorial-design/. The authors are listed in prov/NCP43N.jsonl.

import random
from fractions import Fraction

import pytest

from factorial_design import contrasts_direct, effect_name, effects, runs, yates

EXAMPLE = [60, 72, 54, 68, 52, 83, 45, 80]  # (1), a, b, ab, c, ac, bc, abc


def sylvester(k: int) -> list[list[int]]:
    """The 2^k x 2^k Sylvester-Hadamard matrix, H_(s, x) = (-1)^popcount(s & x)."""
    n = 2 ** k
    return [[-1 if bin(s & x).count("1") % 2 else 1 for x in range(n)] for s in range(n)]


def test_example() -> None:
    assert yates(EXAMPLE) == [514, 92, -20, 6, 6, 40, 0, 2]
    e = effects(EXAMPLE)
    assert e["I"] == 64.25 and e["A"] == 23.0 and e["B"] == -5.0 and e["AC"] == 10.0
    assert e["AB"] == 1.5 and e["C"] == 1.5 and e["BC"] == 0.0 and e["ABC"] == 0.5


def test_yates_equals_direct_contrasts() -> None:
    rng = random.Random(1)
    for k in range(0, 9):
        y = [Fraction(rng.randint(-99, 99), rng.randint(1, 9)) for _ in range(2 ** k)]
        c = yates(y)
        if k <= 6:
            assert c == contrasts_direct(y)
            continue
        # for larger k, compare a few contrasts with their definition
        for s in rng.sample(range(2 ** k), 5):
            direct = sum(v * (-1) ** (bin(s).count("1") - bin(s & x).count("1")) for x, v in enumerate(y))
            assert c[s] == direct


def test_yates_is_a_walsh_hadamard_transform() -> None:
    # Contrast s = sum_x y_x prod_{i in s} (2 bit_i(x) - 1) = (-1)^|s| sum_x (-1)^|s & x| y_x
    # (each factor in s contributes -1 when its bit is 0): H y up to the sign (-1)^|s|.
    rng = random.Random(2)
    for k in range(1, 7):
        y = [rng.randint(-50, 50) for _ in range(2 ** k)]
        h = sylvester(k)
        hy = [sum(h[s][x] * y[x] for x in range(2 ** k)) for s in range(2 ** k)]
        c = yates(y)
        assert all(c[s] == (-1) ** bin(s).count("1") * hy[s] for s in range(2 ** k))


def test_standard_order_and_orthogonality() -> None:
    r = runs(3)
    assert r[:4] == [(-1, -1, -1), (1, -1, -1), (-1, 1, -1), (1, 1, -1)]
    assert [effect_name(s) for s in range(8)] == ["I", "A", "B", "AB", "C", "AC", "BC", "ABC"]
    cols = [[1 if v == 1 else -1 for v in col] for col in zip(*r)]
    for i in range(3):
        for j in range(3):
            assert sum(a * b for a, b in zip(cols[i], cols[j])) == (8 if i == j else 0)


def test_example_passes_and_interaction() -> None:
    y = EXAMPLE
    first = [y[0] + y[1], y[2] + y[3], y[4] + y[5], y[6] + y[7], y[1] - y[0], y[3] - y[2], y[5] - y[4], y[7] - y[6]]
    assert first == [132, 122, 135, 125, 12, 14, 31, 35]
    second = [first[0] + first[1], first[2] + first[3], first[4] + first[5], first[6] + first[7],
              first[1] - first[0], first[3] - first[2], first[5] - first[4], first[7] - first[6]]
    assert second == [254, 260, 26, 66, -10, -10, 2, 4]
    # the A effect at low C and at high C; AC is half their difference
    a_low_c = ((y[1] - y[0]) + (y[3] - y[2])) / 2
    a_high_c = ((y[5] - y[4]) + (y[7] - y[6])) / 2
    assert (a_low_c, a_high_c) == (13, 33) and (a_high_c - a_low_c) / 2 == effects(y)["AC"]
    # sums of squares c^2 / N
    assert [Fraction(c * c, 8) for c in yates(y)[1:]] == [1058, 50, Fraction(9, 2), Fraction(9, 2), 200, 0, Fraction(1, 2)]


def test_factorial_against_one_factor_at_a_time() -> None:
    # Var(effect) / sigma^2 is the sum of the squared coefficients of the linear estimator.
    factorial_a = [Fraction(1 if r[0] == 1 else -1, 4) for r in runs(3)]
    assert sum(c * c for c in factorial_a) == Fraction(1, 2)  # 8 runs
    # one factor at a time: (1), a, b, c, each repeated m times; A = mean(a) - mean((1))
    for m, var in ((2, Fraction(1)), (4, Fraction(1, 2))):
        coef = [Fraction(-1, m)] * m + [Fraction(1, m)] * m
        assert sum(c * c for c in coef) == var  # 4m runs in all
    # so 16 one-factor-at-a-time runs give the precision of 8 factorial runs


def contrast_column(s: int, k: int) -> list[int]:
    col = []
    for r in runs(k):
        v = 1
        for i in range(k):
            if (s >> i) & 1:
                v *= r[i]
        col.append(v)
    return col


def test_inverse_and_parseval() -> None:
    # y = H D c / N, and sum (y - mean)^2 = sum_{s > 0} c_s^2 / N
    k, n = 3, 8
    c = yates(EXAMPLE)
    h = sylvester(k)
    back = [Fraction(sum(h[x][s] * (-1) ** bin(s).count("1") * c[s] for s in range(n)), n) for x in range(n)]
    assert back == EXAMPLE
    mean = Fraction(sum(EXAMPLE), n)
    assert sum((v - mean) ** 2 for v in EXAMPLE) == Fraction(2635, 2) == sum(Fraction(v * v, n) for v in c[1:])


def test_non_examples() -> None:
    # one factor at a time from the base run (1): A = a - (1) = 12, but A is 13 at low C and 33 at high C
    assert EXAMPLE[1] - EXAMPLE[0] == 12
    # drop the run abc: every pair of distinct contrast columns now has inner product -1
    k = 3
    cols = [contrast_column(s, k)[:-1] for s in range(8)]
    for s in range(8):
        for t in range(8):
            ip = sum(a * b for a, b in zip(cols[s], cols[t]))
            assert ip == (7 if s == t else -1)


def test_errors() -> None:
    with pytest.raises(ValueError):
        yates([1.0, 2.0, 3.0])

References

  1. George E. P. Box, J. Stuart Hunter and William G. Hunter, Statistics for Experimenters, second edition, Wiley, 2005, Chapter 5 (factorial designs at two levels), starting on p. 173; Section 5.16 (blocking the 2^k designs), starting on p. 211
  2. The Design and Analysis of Factorial Experiments, the tabular method for the effects of a 2^n experiment (general locator, page not confirmed)
  3. Douglas C. Montgomery, Design and Analysis of Experiments, tenth edition, Wiley, 2019, the chapters on factorial designs, the 2^k design and blocking in the 2^k design (chapter-level locator)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/NCP43N/text.yaml