Box–Behnken designs for 3 to 5 factors in coded and natural units, version 1.0.1
doe-box-behnken@1.0.1: this version's equations with their symbols, each constant's value, their sources and whether each was read, a worked example where the record holds one, its level and what it was checked against, the number of cases, and what was not checked. This version's record is not rewritten; a correction is added under Changes.
What this page can and cannot show
Level: Checked against a reference; Three factors against NIST as printed; four and five against pyDOE3 only; Box and Behnken not read. Reference kind: an outside program, pyDOE3, 1.6.2; a published dataset, NIST/SEMATECH e-Handbook 5.3.3.6; pyDOE3, e-Handbook as read 10 November 2026; pyDOE3 1.6.2; our own exact-arithmetic script and a hand-worked case.
Not fully recorded, and not independently reviewed. Items marked "Not recorded" are missing from this project's records for the version named. Apart from any worked example shown, the cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed these methods or checks.
Every version of this method · Every method · What the levels mean
Version 1.0.1
Level: Checked against a reference; Three factors against NIST as printed; four and five against pyDOE3 only; Box and Behnken not read. Reference kind: an outside program, pyDOE3, 1.6.2; a published dataset, NIST/SEMATECH e-Handbook 5.3.3.6; pyDOE3, e-Handbook as read 10 November 2026; pyDOE3 1.6.2; our own exact-arithmetic script and a hand-worked case. doe-box-behnken@1.0.1
Built, not hosted. Generated from a snapshot of the library's records taken on 2026-11-25, as committed on 2026-11-25. A later snapshot replaces this one, so these records and this page can change.
Verification statement: Three factors against NIST e-Handbook 5.3.3.6.3 Tables 3.24 and 3.26 as printed; four and five factors against pyDOE3 1.6.2 and Table 3.28's run counts; the name for four and five factors rests on NIST's Table 3.28 until Box and Behnken 1960 is read (sale gate, Q-24)
The runs of a three-level design for 3 to 5 factors: for each pair of factors in order, a 2² factorial at ±1 with the other factors at 0, then the stated centre points, coded and in natural units, with the quadratic model's term count.
- How results are reported: none: coded values exact; natural values as exact as double precision allows
- Uncertainty: A design has no uncertainty: it is a construction.
- Reference, as its record states it: NIST/SEMATECH e-Handbook tables (published data) and pyDOE3 1.6.2
- Level confirmed by this project's ruling of 14 November 2026
What this page can and cannot show
What was checked
88 cases in 4 files, linked by this exact version.
Run through the tool at build against an outside program, pyDOE3, 1.6.2; a published dataset, NIST/SEMATECH e-Handbook 5.3.3.6; pyDOE3, e-Handbook as read 10 November 2026; pyDOE3 1.6.2; our own exact-arithmetic script and a hand-worked case: 66 agree within the tolerance the file states, 22 refuse as the case expects, 0 differ, 0 were not run.
File 1, 11 cases
- Where the expected values came from: an outside program, pyDOE3 1.6.2
- Recorded on: 2026-11-10
- Reference: pyDOE3, 1.6.2; licence BSD-3-Clause
- Tolerance as the file states it: coded and natural values 1e-12 absolute (each factor's half-range at most 20); counts, points, statuses and codes exact
File 2, 2 cases
- Where the expected values came from: a published dataset, NIST/SEMATECH e-Handbook 5.3.3.6; pyDOE3 e-Handbook as read 10 November 2026; pyDOE3 1.6.2
- Recorded on: 2026-11-10
- Reference: NIST/SEMATECH e-Handbook 5.3.3.6; pyDOE3, e-Handbook as read 10 November 2026; pyDOE3 1.6.2; licence To be checked
- Tolerance as the file states it: coded and natural values 1e-12 absolute (each factor's half-range at most 20); counts, points, statuses and codes exact
File 3, 35 cases
- Where the expected values came from: our own exact-arithmetic script and a hand-worked case
- Recorded on: 2026-11-14
- Reference: second implementation (Python 3.13, standard library), checked with Python fractions, 2026-11-14; licence PSF-2.0
- Tolerance as the file states it: exact: coded and natural values (each natural value the double nearest its exact rational), counts, points and statuses
File 4, 40 cases
- Where the expected values came from: our own exact-arithmetic script and a hand-worked case
- Recorded on: 2026-11-14
- Reference: second implementation (Python 3.13, standard library), checked with Python fractions, 2026-11-14; licence PSF-2.0
- Tolerance as the file states it: exact: coded and natural values (each natural value the double nearest its exact rational), counts, points and statuses
Apart from the worked example, the cases and their values are not printed here. This shows agreement with this project's recorded cases. It does not show that a method suits your work, and it is not a qualification.
What was not checked
Box and Behnken 1960 is not read: six and seven factors are refused; blocking; randomised run order; the choice of centre points, which is the caller's.
Definition or model
A closed form: the result follows from the inputs by the equations alone.
Equations
Equation 1
runs = 4·k(k − 1)/2 + n_c: for each pair of factors (i, j), i < j, in lexicographic order ((1, 2), (1, 3), …, (k − 1, k)), the four runs (x_i, x_j) = (−1, −1), (+1, −1), (−1, +1), (+1, +1), every other factor 0, point 'edge'
then n_c centre runs, all 0, point 'centre'. Run numbers count from 1
list positions count from 0
| Symbol | Meaning and unit |
|---|---|
| n_c | centre points |
| k | factors |
| i, j | factor positions in the order given, counted from 1 |
| x_i | coded value of factor i |
Source: NIST/SEMATECH e-Handbook of Statistical Methods, section 5.3.3 (How do you select an experimental design?), section 5.3.3.6.3, Table 3.24 (the three-factor design, printed in this order) and Table 3.28 (run counts 15, 27, 46 for 3, 4, 5 factors, which include 3, 3 and 6 centre points); 5.3.3.6.2 (treatments at the midpoints of the edges and at the centre), the online e-Handbook as served on the read date (page bytes pinned); read in full on 2026-11-10 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 0fd7d0fdeafc. Free to read (US Government work, not subject to copyright in the United States), checked 2026-11-11. No erratum found (searched the e-Handbook pages read: no errata notice or revision note on them), 2026-11-11.
Equation 2
natural = the stated low at coded −1 and the stated high at coded +1, exactly
otherwise (low + high)/2 + coded × (high − low)/2, in the factor's stated unit
| Symbol | Meaning and unit |
|---|---|
| low | factor's stated low (in the caller's unit), as-given |
| high | factor's stated high (in the caller's unit), as-given |
Source: NIST/SEMATECH e-Handbook of Statistical Methods, section 5.3.3 (How do you select an experimental design?), section 5.3.3.6.3, Table 3.26 (low 10, centre 15, high 20), the online e-Handbook as served on the read date (page bytes pinned); read in full on 2026-11-10 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 0fd7d0fdeafc. Free to read (US Government work, not subject to copyright in the United States), checked 2026-11-11. No erratum found (searched the e-Handbook pages read: no errata notice or revision note on them), 2026-11-11.
Equation 3
full quadratic model terms = 1 + 2k + k(k − 1)/2
| Symbol | Meaning and unit |
|---|---|
| k | factors |
Source: NIST/SEMATECH e-Handbook of Statistical Methods, section 5.3.3 (How do you select an experimental design?), section 5.3.3.6, the quadratic model, the online e-Handbook as served on the read date (page bytes pinned); read in full on 2026-11-10 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 0cec7dbb5daf. Free to read (US Government work, not subject to copyright in the United States), checked 2026-11-11. No erratum found (searched the e-Handbook pages read: no errata notice or revision note on them), 2026-11-11.
Equation 4
Definition: the order in which the tool checks a call, the suite's convention, stated so that a call meeting two rules has one answer.
a call is checked in this order, and the first rule it meets answers: (1) the kit's schema and argument checks, all invalid input (an unknown or misspelt argument, a type, a unit, UNITS_DIFFER
more than 50 centre points OUT_OF_RANGE)
(2) DUPLICATE_NAME
(3) each factor in the order given: LEVELS_EQUAL, then LEVELS_NOT_ASCENDING
(4) refused: fewer than 3 or more than 5 factors OUT_OF_RANGE, then CENTRE_POINTS_REQUIRED
| Symbol | Meaning and unit |
|---|---|
| k | factors |
Constants
Constants: none used.
Worked example
Worked example: one case of doe-box-behnken@1.0.1, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.
Inputs
- factors[0].name = X1
- factors[0].low = 20 degC
- factors[0].high = 40 degC
- factors[1].name = X2
- factors[1].low = 5 min
- factors[1].high = 15 min
- factors[2].name = X3
- factors[2].low = 1 mM
- factors[2].high = 3 mM
- centrePoints = 1
Steps
- n-runs = 13, from factors, centrePoints; by equation 1; gives runs.
- terms = 10, from factors; by equation 3; gives modelTerms.
Answer
runs= 13modelTerms= 10
Where these values came from: an outside program, pyDOE3 1.6.2; pyDOE3 1.6.2 bbdesign(3, center=1), rows in the tool's order (pairs in order, the first of the pair fastest).
At build the tool returned this answer within the tolerance the file states: coded and natural values 1e-12 absolute (each factor's half-range at most 20); counts, points, statuses and codes exact.
Who worked this case: not recorded.
What it refuses, and its input ranges
OUT_OF_RANGE: fewer than 3 or more than 5 factors: six and seven use Box and Behnken's (1960) own blocks, not read Next: Ask for three, four or five factors, or use `doe_central_composite_design` for more.CENTRE_POINTS_REQUIRED: no centre point: without one the full quadratic model is singular (the intercept is aliased with Σx²; Drybench's cases ruling of 10 November 2026) Next: Ask for at least one centre point.DUPLICATE_NAME(invalid input): two factors share a nameLEVELS_EQUAL(invalid input): a factor's low equals its highLEVELS_NOT_ASCENDING(invalid input): a factor's low is above its high; they are never swapped
Changes
2026-11-14-doe-box-behnken@1.0.1-1
2026-11-14 · doe-box-behnken@1.0.1 · Corrections to our methods
- What was wrong: The centre point's natural value was computed as (low + high)/2, which overflows when the two levels are both near the largest double (low 1e308, high 1.7e308): the call failed instead of answering.
- Affected: Calls to doe_box_behnken_design with a factor whose low and high sum beyond the largest finite double, in 1.0.0. No call whose levels sum within the double range is affected.
- What changed: In 1.0.1 the centre is low/2 + high/2 where low + high overflows (1.35e308 for these levels), the correctly rounded midpoint. Every other value is unchanged, bit for bit; no published case moved.
- How it was found: A second implementation written from the record by a separate agent, in the raising run of 14 November 2026 (finding F-15).
- Cases added: stored reference values: the agent's overflow case and four more at the ends of the double range, each checked in exact rationals.
Tools that use it
Cite this version
Box–Behnken designs for 3 to 5 factors in coded and natural units. Drybench; doe-box-behnken@1.0.1; https://www.drybench.com/methods/m/doe-box-behnken/1.0.1 (accessed [date]).