Algorithm Search⌘K

Techniquecore

Fractional factorial design

Also called 2^(k-p) design, design resolution.

Runs a chosen fraction of a factorial design, defined by generators, so that main effects are aliased only with high-order interactions. Resolution measures this.

A fractional factorial design runs only a fraction of the 2k2^k runs of a two-level factorial design: a half, a quarter, or in general 2k−p2^{k-p} runs. It picks the fraction by setting pp added factors equal to products of the others, for example D=ABCD = ABC. The price is aliasing: in the fraction some effects have the same contrast column, so the experiment estimates only their sum. The generators fix which effects are aliased, and the defining relation lists all of them. The resolution, the length of the shortest word in the defining relation, says how bad the aliasing is. In a design of resolution III, main effects are aliased with two-factor interactions; in resolution IV they are not; in resolution V two-factor interactions are not aliased with each other. Finney (1945, in a volume of the Annals of Eugenics that the publisher dates 1943) introduced fractional replication, and Box and Hunter (1961) named the resolution.

In plain words

A full factorial experiment with seven switches needs 128 trials, and most of what those trials measure is complicated combinations of switches that rarely matter. A fractional design runs a carefully chosen eighth or sixteenth of the trials. The choice is made so that the simple questions, such as "what does this switch do?", stay answerable. The cost is that each answer is mixed with the answers to a few complicated questions, and the design tells you exactly which ones. If the complicated effects are small, as they usually are, the answers are clean. If a mixed answer looks strange, you run the other half of the trials and separate the mix.

When it applies

  • There are many two-level factors, runs are expensive, and the aim is to find the few factors that matter (screening).
  • Effect sparsity: only a few effects are large. Effect hierarchy: main effects are larger than two-factor interactions, which are larger than higher interactions. These are working assumptions about the process, not results, and the analysis is only as good as they are.
  • The experiment can be sequential, so that an ambiguous result can be followed by a fold-over or by more runs.
  • The run count is a power of two. For other multiples of 4 use a Plackett-Burman design.

The template

Write N=2k−pN = 2^{k-p} for the number of runs. Words are sets of factor letters, and the product of two words is their symmetric difference, because xi2=1x_i^2 = 1 for a ±1\pm 1 column. II is the empty word, and xWx_W is the contrast column of the word WW, the product of its factor columns.

  1. Base design. Run the first k−pk - p factors as a full 2k−p2^{k-p} factorial in standard order.
  2. Generators. Set each of the pp added factors to a product of base factors, for example D=ABCD = ABC. The generator word is the product with the added letter, ABCDABCD, so xABCD=xD2=1x_{ABCD} = x_D^2 = 1 on every run, written I=ABCDI = ABCD. Using D=−ABCD = -ABC instead selects the other half.
  3. Defining relation. The defining contrast subgroup is the group generated by the pp generator words. Each generator word holds its own added letter and no other, so the words are independent and the group has 2p2^p elements, II and 2p−12^p - 1 defining words.
  4. Aliases. The alias set of an effect EE is {EW:W in the group}\{E W : W \text{ in the group}\}, a coset of 2p2^p effects. The 2k2^k effects split into 2k−p2^{k-p} alias sets.
  5. Resolution and wordlength pattern. The resolution RR is the length of the shortest defining word. The wordlength pattern (A3,A4,… )(A_3, A_4, \dots) counts the defining words of each length.
  6. Analysis. Apply Yates's algorithm to the responses in base standard order. Each of the NN contrasts estimates the signed sum of the effects in one alias set.
  7. Randomize which fraction is run (the signs of the generators) and the run order, as in any randomized experiment.

Theorem 1 (the alias structure). On the runs of the fraction, xE=±xFx_E = \pm x_F when EFEF is in the defining group, and xE⊤xF=0x_E^\top x_F = 0 otherwise. So the NN alias sets have orthogonal contrast columns, and under the full model the contrast of an alias set estimates the signed sum of its effects.

Proof. Each generator word WjW_j has xWj=±1x_{W_j} = \pm 1, a constant, on every run by step 2. Since xUxV=xUVx_U x_V = x_{UV}, every WW in the group also has a constant column xW=±1x_W = \pm 1. Now take any word UU. For each added letter in UU, multiply UU by the generator word of that letter. This removes the added letter and adds only base letters, so the result U′U' has base letters only, and xU=±xU′x_U = \pm x_{U'} on the fraction. U′U' is empty exactly when UU is a product of generator words, that is, when UU is in the group. If U′U' is not empty, xU′x_{U'} is a contrast column of the full base factorial, and its entries sum to zero by Theorem 1 of the factorial design page. Apply this to U=EFU = EF, using xExF=xEFx_E x_F = x_{EF}: if EFEF is in the group, xExFx_E x_F is a constant ±1\pm 1; if not, xE⊤xF=∑xEF=0x_E^\top x_F = \sum x_{EF} = 0. The expected contrast ∑xxE(x)E[yx]\sum_x x_E(x) \mathbb E[y_x] under the full model E[yx]=∑SbSxS(x)\mathbb E[y_x] = \sum_S b_S x_S(x) keeps only the terms with xS=±xEx_S = \pm x_E, which are the members of the alias set. □\square

Theorem 2 (what resolution guarantees). In a design of resolution RR, an effect of order aa is not aliased with an effect of order bb when a+b<Ra + b < R. So in resolution III main effects are not aliased with each other, in resolution IV they are not aliased with two-factor interactions, and in resolution V two-factor interactions are not aliased with each other.

Proof. If EE and FF are aliased, EFEF is a defining word, so R≤∣EF∣≤∣E∣+∣F∣=a+bR \le |EF| \le |E| + |F| = a + b. □\square

Theorem 3 (the fold-over). Let a 2k−p2^{k-p} design have at least one defining word of odd length, and add to it its mirror image, the same runs with every sign reversed. The 2k−p+12^{k-p+1} runs form a design whose defining words are exactly the old defining words of even length. So the fold-over of a resolution III design has resolution at least IV.

Proof. In the mirror runs xWx_W becomes (−1)∣W∣xW(-1)^{|W|} x_W. A defining word of even length keeps its constant on both halves and stays a defining word. A defining word of odd length has the constant +c+c on one half and −c-c on the other, so its column now sums to zero. A word outside the old group has a column that sums to zero on each half (Theorem 1). So the new defining words are the old words of even length. They form a subgroup of index 2 in the old group, because a word of odd length exists, which matches the doubled run count. □\square

Codes. Write each defining word as a 0/1 vector of length kk. The group is then a linear code of dimension pp, and the resolution is its minimum distance. With level +1+1 written as bit 0 and level −1-1 as bit 1, the runs are the codewords of the dual code, and the orthogonal array page shows why this makes the design an array of strength R−1R - 1.

What is cited, not proved. Two designs with the same resolution can differ. Fries and Hunter (1980) defined minimum aberration: among designs with the same kk and pp, prefer the lexicographically smallest wordlength pattern, which keeps the fewest short words. The test file finds the minimum by an exhaustive search over all generator pairs for the 27−22^{7-2} case below; the general tables are cited.

Cost. Building the defining group takes 2p2^p word products, and the analysis is Yates's algorithm on NN responses: Nlog⁡2NN \log_2 N additions.

Classic examples

A half fraction that reverses a sign. Take the 232^3 pilot plant data of the factorial design page and run only the half with I=ABCI = ABC (C=ABC = AB): runs a,b,c,abca, b, c, abc with yields 72,54,52,8072, 54, 52, 80. The design has resolution III, with aliases A=BCA = BC, B=ACB = AC, C=ABC = AB. The estimates are

contrast estimates value full-factorial values
AA A+BCA + BC 23 23+023 + 0
BB B+ACB + AC 5 −5+10-5 + 10
CC C+ABC + AB 3 1.5+1.51.5 + 1.5

The fraction reports B=+5B = +5, but the true main effect is −5-5: the large ACAC interaction reversed the sign. The other half, I=−ABCI = -ABC (runs (1),ab,ac,bc(1), ab, ac, bc, yields 60,68,83,4560, 68, 83, 45), gives A−BC=23A - BC = 23, B−AC=−15B - AC = -15 and C−AB=0C - AB = 0. Half the sum and half the difference of the two halves give back B=−5B = -5, AC=10AC = 10, C=1.5C = 1.5 and AB=1.5AB = 1.5. The test file checks every number.

A 24−12^{4-1} design of resolution IV. D=ABCD = ABC, so I=ABCDI = ABCD. Main effects are aliased with three-factor interactions (A=BCDA = BCD), and the two-factor interactions come in pairs: AB=CDAB = CD, AC=BDAC = BD, AD=BCAD = BC. Eight runs study four factors.

A 25−12^{5-1} design of resolution V. E=ABCDE = ABCD, so I=ABCDEI = ABCDE. All 5 main effects and all 10 two-factor interactions are in different alias sets, so 16 runs estimate all of them.

The saturated 27−42^{7-4} design. D=ABD = AB, E=ACE = AC, F=BCF = BC, G=ABCG = ABC give 7 factors in 8 runs. The group has 15 defining words with wordlength pattern (A3,…,A7)=(7,7,0,0,1)(A_3, \dots, A_7) = (7, 7, 0, 0, 1), and each main effect is aliased with three two-factor interactions, for example A=BD=CE=FGA = BD = CE = FG. As 0/1 vectors the 16 words of the group are the [7, 4] Hamming code, whose weights are 0,3,4,70, 3, 4, 7, and the 8 runs form its dual, the [7, 3] simplex code. Its fold-over has 16 runs and resolution IV (Theorem 3), which the test file checks column by column.

Minimum aberration for 27−22^{7-2}. F=ABCDF = ABCD, G=ABDEG = ABDE give the words CEFGCEFG, ABCDFABCDF, ABDEGABDEG and the pattern (0,1,2,0,0)(0, 1, 2, 0, 0). F=ABCF = ABC, G=ADEG = ADE give ABCFABCF, ADEGADEG, BCDEFGBCDEFG and the pattern (0,2,0,1,0)(0, 2, 0, 1, 0). Both have resolution IV, but each word of length 4 aliases three pairs of two-factor interactions, so the first design aliases 3 pairs and the second 6. The exhaustive search in the test file confirms that (0,1,2,0,0)(0, 1, 2, 0, 0) is the smallest pattern.

Variations

  • Single-factor fold-over. Reverse the signs of one factor only in the second half. In a design of resolution III, this frees that factor's main effect and all its two-factor interactions from aliasing with other main effects and two-factor interactions (Exercise 4).
  • Blocking. A fraction can itself be split into blocks by confounding a further word with blocks; the block word must not be aliased with an effect of interest.
  • More than two levels. For ss a prime power, regular sk−ps^{k-p} fractions use generators over the field with ss elements. A Latin square design of order 3 is a 33−13^{3-1} fraction with rows, columns and treatments as the factors.
  • Non-regular fractions. Plackett-Burman designs have run counts that are multiples of 4 but not powers of 2. Their effects are partly aliased, with correlations other than 00 and ±1\pm 1.
  • Unreplicated analysis. Without replicates, judge the effects on a normal or half-normal probability plot (Daniel, 1959), or estimate the noise from the smaller effects.
  • Response surface work. A resolution V fraction plus center and axial runs is a central composite design for response surface methodology.

Pitfalls

  • A contrast estimates a sum of aliased effects. Interactions can hide a main effect or reverse its sign, as in the pilot plant half fraction.
  • Read the aliases from the whole defining group, not from the generators alone. For E=ABCE = ABC, F=BCDF = BCD, the product ABCE⋅BCDF=ADEFABCE \cdot BCDF = ADEF is also a defining word, so AD=EFAD = EF.
  • Resolution alone does not rank designs. Use the wordlength pattern, and check that the interactions you care about are in alias sets of their own.
  • Effect sparsity and hierarchy are assumptions. When a result looks strange, run the fold-over before you act on it.
  • An unreplicated fraction has no error degrees of freedom; the probability plot is a judgement, not a test of fixed size.
  • Losing a run breaks the orthogonality, as for a full factorial.

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.

fractional_factorial_design.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/fractional-factorial-design/. The authors are listed in prov/2RTF2Q.jsonl.
"""Regular two-level fractional factorial designs 2^(k-p).

Factors are capital letters. The first k - p letters are the base factors, which run
through a full 2^(k-p) factorial in standard order (A changes fastest). Each of the p
added factors is set to the product of a word of base factors, for example D = ABC.
An effect is a word (a set of letters); its column is the product of the factor columns.

The defining relation is the group of words generated by the p words "generator word
times added letter" (for D = ABC, the word ABCD), with the product of two words being
their symmetric difference. Two effects are aliased, so that their columns in the
fraction are equal or opposite, exactly when their product lies in the defining
relation. The resolution is the length of the shortest word, and the wordlength
pattern (A_3, A_4, ...) counts the words of each length; minimum aberration means
the lexicographically smallest pattern.
"""

from itertools import product
from string import ascii_uppercase


def word(s: str) -> frozenset[str]:
    """The set of letters of a word; 'I' (the identity) is the empty set."""
    return frozenset() if s == "I" else frozenset(s)


def name(w: frozenset[str]) -> str:
    return "".join(sorted(w)) or "I"


def design(k: int, generators: dict[str, str]) -> list[tuple[int, ...]]:
    """The 2^(k-p) runs as tuples of +-1, one entry per factor A, B, ..., in letter order."""
    letters = ascii_uppercase[:k]
    base = [c for c in letters if c not in generators]
    if len(base) != k - len(generators):
        raise ValueError("the generators must name added factors among the first k letters")
    runs = []
    for levels in product((-1, 1), repeat=len(base)):
        value = dict(zip(reversed(base), levels))  # A changes fastest: standard order
        for added, w in generators.items():
            if not set(w) <= set(base):
                raise ValueError("a generator word must use base factors only")
            v = 1
            for c in w:
                v *= value[c]
            value[added] = v
        runs.append(tuple(value[c] for c in letters))
    return runs


def defining_relation(generators: dict[str, str]) -> list[frozenset[str]]:
    """All 2^p - 1 words of the defining contrast subgroup, I excluded."""
    gens = [word(w) | {added} for added, w in generators.items()]
    group = {frozenset()}
    for g in gens:  # each word holds its own added letter, so the p words are independent
        group |= {h ^ g for h in group}
    return sorted(group - {frozenset()}, key=lambda w: (len(w), name(w)))


def alias_set(effect: str, relation: list[frozenset[str]]) -> list[str]:
    """The effects aliased with the given one: its products with every defining word."""
    e = word(effect)
    return [name(e ^ w) for w in relation]


def resolution(relation: list[frozenset[str]]) -> int:
    return min(len(w) for w in relation)


def wordlength_pattern(relation: list[frozenset[str]], k: int) -> tuple[int, ...]:
    """(A_3, A_4, ..., A_k): the number of defining words of each length."""
    return tuple(sum(len(w) == j for w in relation) for j in range(3, k + 1))


def column(runs: list[tuple[int, ...]], effect: str) -> list[int]:
    """The contrast column of an effect: the product of its factor columns."""
    idx = [ascii_uppercase.index(c) for c in word(effect)]
    out = []
    for r in runs:
        v = 1
        for i in idx:
            v *= r[i]
        out.append(v)
    return out


def estimate(runs: list[tuple[int, ...]], y: list[float], effect: str) -> float:
    """The usual effect estimate: mean response at + minus mean response at -."""
    col = column(runs, effect)
    return 2.0 * sum(c * v for c, v in zip(col, y)) / len(y)
test_fractional_factorial_design.py 174 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/fractional-factorial-design/. The authors are listed in prov/2RTF2Q.jsonl.

import random
from itertools import combinations, product
from string import ascii_uppercase

import pytest

from fractional_factorial_design import (
    alias_set, column, defining_relation, design, estimate, name, resolution, word,
    wordlength_pattern,
)


def all_effects(k: int) -> list[str]:
    letters = ascii_uppercase[:k]
    return [name(frozenset(c)) for r in range(1, k + 1) for c in combinations(letters, r)]


def brute_force_aliases(runs: list[tuple[int, ...]], k: int) -> dict[str, set[str]]:
    """Group the effects whose columns in the fraction are equal or opposite."""
    cols = {e: tuple(column(runs, e)) for e in ["I"] + all_effects(k)}
    out = {}
    for e, c in cols.items():
        neg = tuple(-v for v in c)
        out[e] = {f for f, d in cols.items() if f != e and (d == c or d == neg)}
    return out


CASES = [
    (4, {"D": "ABC"}),
    (5, {"E": "ABCD"}),
    (5, {"D": "AB", "E": "AC"}),
    (6, {"E": "ABC", "F": "BCD"}),
    (7, {"D": "AB", "E": "AC", "F": "BC", "G": "ABC"}),
    (7, {"F": "ABCD", "G": "ABDE"}),
]


@pytest.mark.parametrize("k, gens", CASES)
def test_alias_structure_against_column_products(k: int, gens: dict[str, str]) -> None:
    runs = design(k, gens)
    assert len(runs) == 2 ** (k - len(gens))
    relation = defining_relation(gens)
    assert len(relation) == 2 ** len(gens) - 1
    brute = brute_force_aliases(runs, k)
    # the defining words are the effects aliased with the mean
    assert brute["I"] == {name(w) for w in relation}
    for e in all_effects(k):
        assert set(alias_set(e, relation)) - {"I"} == brute[e] - {"I"}
        assert ("I" in alias_set(e, relation)) == ("I" in brute[e])


@pytest.mark.parametrize("k, gens", CASES)
def test_columns_of_distinct_alias_sets_are_orthogonal(k: int, gens: dict[str, str]) -> None:
    runs = design(k, gens)
    relation = defining_relation(gens)
    for e, f in combinations(all_effects(k), 2):
        dot = sum(a * b for a, b in zip(column(runs, e), column(runs, f)))
        aliased = (word(e) ^ word(f)) in relation
        assert abs(dot) == (len(runs) if aliased else 0)


def test_resolution_and_patterns() -> None:
    assert resolution(defining_relation({"D": "ABC"})) == 4
    assert resolution(defining_relation({"E": "ABCD"})) == 5
    assert resolution(defining_relation({"D": "AB", "E": "AC", "F": "BC", "G": "ABC"})) == 3
    rel = defining_relation({"E": "ABC", "F": "BCD"})
    assert [name(w) for w in rel] == ["ABCE", "ADEF", "BCDF"]
    assert wordlength_pattern(rel, 6) == (0, 3, 0, 0)


def test_minimum_aberration_two_to_the_seven_minus_two() -> None:
    # Search every choice of two generator words on A..E (each of length >= 2).
    words = ["".join(c) for r in range(2, 6) for c in combinations("ABCDE", r)]
    best = None
    for w1, w2 in combinations(words, 2):
        pattern = wordlength_pattern(defining_relation({"F": w1, "G": w2}), 7)
        best = pattern if best is None or pattern < best else best
    assert best == (0, 1, 2, 0, 0)
    assert wordlength_pattern(defining_relation({"F": "ABCD", "G": "ABDE"}), 7) == best
    assert wordlength_pattern(defining_relation({"F": "ABC", "G": "ADE"}), 7) == (0, 2, 0, 1, 0)


def test_half_fraction_estimates_sums_of_aliased_effects() -> None:
    rng = random.Random(1)
    full = design(4, {})
    y_full = [rng.uniform(0.0, 100.0) for _ in full]
    half_idx = [i for i, r in enumerate(full) if r[0] * r[1] * r[2] * r[3] == 1]
    runs = [full[i] for i in half_idx]
    y = [y_full[i] for i in half_idx]
    assert sorted(runs) == sorted(design(4, {"D": "ABC"}))
    rel = defining_relation({"D": "ABC"})
    for e in all_effects(4):
        partner = alias_set(e, rel)[0]
        if partner == "I":
            continue
        assert abs(estimate(runs, y, e) - (estimate(full, y_full, e) + estimate(full, y_full, partner))) < 1e-9


def test_foldover_clears_main_effects() -> None:
    runs = design(7, {"D": "AB", "E": "AC", "F": "BC", "G": "ABC"})
    folded = runs + [tuple(-v for v in r) for r in runs]
    for main in "ABCDEFG":
        for two in combinations("ABCDEFG", 2):
            dot = sum(a * b for a, b in zip(column(folded, main), column(folded, "".join(two))))
            assert dot == 0
    # before the foldover, A is aliased with BD (D = AB)
    assert abs(sum(a * b for a, b in zip(column(runs, "A"), column(runs, "BD")))) == 8


PILOT = [60, 72, 54, 68, 52, 83, 45, 80]  # the 2^3 example of factorial-design, standard order


def test_example_half_fractions_of_the_pilot_plant() -> None:
    full = design(3, {})
    assert defining_relation({"C": "AB"}) == [word("ABC")]
    assert resolution(defining_relation({"C": "AB"})) == 3
    plus = [i for i, r in enumerate(full) if r[0] * r[1] * r[2] == 1]
    minus = [i for i, r in enumerate(full) if r[0] * r[1] * r[2] == -1]
    assert [PILOT[i] for i in plus] == [72, 54, 52, 80] and [PILOT[i] for i in minus] == [60, 68, 83, 45]
    assert sorted(full[i] for i in plus) == sorted(design(3, {"C": "AB"}))
    est_plus = {e: estimate([full[i] for i in plus], [PILOT[i] for i in plus], e) for e in "ABC"}
    est_minus = {e: estimate([full[i] for i in minus], [PILOT[i] for i in minus], e) for e in "ABC"}
    assert est_plus == {"A": 23.0, "B": 5.0, "C": 3.0}      # A + BC, B + AC, C + AB
    assert est_minus == {"A": 23.0, "B": -15.0, "C": 0.0}   # A - BC, B - AC, C - AB
    true = {e: estimate(full, PILOT, e) for e in ["A", "B", "C", "AB", "AC", "BC"]}
    assert true == {"A": 23.0, "B": -5.0, "C": 1.5, "AB": 1.5, "AC": 10.0, "BC": 0.0}
    # the fold-over: half sum and half difference separate the aliases
    assert (est_plus["B"] + est_minus["B"]) / 2 == true["B"] and (est_plus["B"] - est_minus["B"]) / 2 == true["AC"]
    assert (est_plus["C"] + est_minus["C"]) / 2 == true["C"] and (est_plus["C"] - est_minus["C"]) / 2 == true["AB"]


def test_saturated_seven_factor_design() -> None:
    gens = {"D": "AB", "E": "AC", "F": "BC", "G": "ABC"}
    rel = defining_relation(gens)
    assert len(rel) == 15 and wordlength_pattern(rel, 7) == (7, 7, 0, 0, 1)
    # each main effect is aliased with three two-factor interactions
    for main in "ABCDEFG":
        twos = [a for a in alias_set(main, rel) if len(a) == 2]
        assert len(twos) == 3
    assert sorted(a for a in alias_set("A", rel) if len(a) == 2) == ["BD", "CE", "FG"]
    # as 0/1 vectors the group is a [7, 4] code with weights 0, 3, 4, 7 (the Hamming code), and the
    # runs, with +1 written as bit 0 and -1 as bit 1, are its dual: the [7, 3] simplex code
    letters = "ABCDEFG"
    vec = lambda w: tuple(int(c in w) for c in letters)
    group = [vec(w) for w in rel] + [(0,) * 7]
    assert sorted(sum(v) for v in group) == [0] + [3] * 7 + [4] * 7 + [7]
    runs = [tuple(0 if v == 1 else 1 for v in r) for r in design(7, gens)]
    assert len(set(runs)) == 8 and sorted(sum(r) for r in runs) == [0] + [4] * 7
    assert all(sum(a * b for a, b in zip(r, g)) % 2 == 0 for r in runs for g in group)
    assert all(tuple((a + b) % 2 for a, b in zip(r, s)) in runs for r in runs for s in runs)


def aliased_two_factor_pairs(rel: list[frozenset[str]], k: int) -> int:
    twos = [frozenset(c) for c in combinations(ascii_uppercase[:k], 2)]
    return sum((a ^ b) in rel for a, b in combinations(twos, 2))


def test_aberration_counts_aliased_two_factor_interactions() -> None:
    good = defining_relation({"F": "ABCD", "G": "ABDE"})
    bad = defining_relation({"F": "ABC", "G": "ADE"})
    assert [name(w) for w in good] == ["CEFG", "ABCDF", "ABDEG"]
    assert [name(w) for w in bad] == ["ABCF", "ADEG", "BCDEFG"]
    assert resolution(good) == resolution(bad) == 4
    assert aliased_two_factor_pairs(good, 7) == 3 and aliased_two_factor_pairs(bad, 7) == 6


def test_errors() -> None:
    with pytest.raises(ValueError):
        design(6, {"D": "AB", "E": "AC", "F": "DE"})  # F uses added factors
    with pytest.raises(ValueError):
        design(4, {"D": "AE"})

Exercises

  1. Write the 8 runs of the 24−12^{4-1} design with I=−ABCDI = -ABCD and give the signs in its alias sets.
  2. For the 26−22^{6-2} design with E=ABCE = ABC and F=BCDF = BCD, list the alias sets of all 15 two-factor interactions. Which of them are not aliased with any other two-factor interaction?
  3. Show that a regular 2k−p2^{k-p} design of resolution V must have N≥1+k+k(k−1)/2N \ge 1 + k + k(k-1)/2 runs.
  4. In a design of resolution III, prove that a single-factor fold-over on factor AA makes AA and every two-factor interaction that contains AA orthogonal to all other main effects and two-factor interactions.
  5. Show that the 16 words of the defining group of the saturated 27−42^{7-4} design have the weight distribution 1,0,0,7,7,0,0,11, 0, 0, 7, 7, 0, 0, 1, the weight distribution of the [7, 4] Hamming code.

References

  1. D. J. Finney, The fractional replication of factorial arrangements, Annals of Eugenics 12(1), 291-301, the half and quarter replicates of 2^k designs defined by interactions set equal to the mean, and their aliases (the issue is dated 1943 by the publisher and is often cited as 1945)
  2. Arthur Fries and William G. Hunter, Minimum aberration 2^(k-p) designs, Technometrics 22(4), 1980, the definition of aberration from the wordlength pattern and the tables of minimum aberration designs (general locator)
  3. George E. P. Box, J. Stuart Hunter and William G. Hunter, Statistics for Experimenters, second edition, Wiley, 2005, Chapter 6 (fractional factorial designs), starting on p. 235; Section 6.10 (fold-over designs), starting on p. 257
  4. Douglas C. Montgomery, Design and Analysis of Experiments, tenth edition, Wiley, 2019, the chapter on two-level fractional factorial designs (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)
WritingW2 basic
  • three classic examples