Skip to content

Box–Behnken response-surface design

doe_box_behnken_design

Lists the runs of a Box-Behnken design for 3 to 5 factors, coded and in natural units.

Runs
On the server
Level
Checked against a reference: NIST/SEMATECH e-Handbook tables (published data) and pyDOE3 1.6.2
Ask your assistant

What it is

Returns the runs of a Box–Behnken design for 3 to 5 factors, coded and in natural units, three levels per factor. Use when planning a quadratic response-surface experiment that avoids the corners of the factor space. Not for designs with points beyond your range or a factorial core: use `doe_central_composite_design`; for screening, use `doe_factorial_design`. Refuses fewer than 3 or more than 5 factors and no centre point. A measurement's unit is required, never assumed: any unit of the kit's table, returned in its canonical spelling; a unit group takes one unit, never converted.

Field: Statistics and design.

What it does

You give

  • factors (required): The factors, in the order of the design's columns.
  • centrePoints (required): Centre points, at least 1. Must be at least 0 and at most 50.

No request is recorded for this tool.

Limits

  • Research statistics and experimental-design arithmetic on the data, margins, prevalence and settings you supply.
  • Not for diagnosis or treatment decisions and not a regulatory analysis.
  • It does not choose a design, a margin, a cut-off or a sample size for you.
  • Designs are constructions from the factors, and any generators, you state.
  • Only the factorial design offers a randomised run order: complete randomisation of every run from your seed, with no blocking.
  • The other designs come in standard order only.
  • A centre point is the arithmetic midpoint of the natural levels, not the geometric centre.
  • Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.

It will not answer when

  • fewer than 3 or more than 5 factors: six and seven use Box and Behnken's (1960) own blocks, not read.
  • 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).
  • two factors share a name.
  • a factor's low equals its high.
Every input, with its units2 inputs
  • factors (required): The factors, in the order of the design's columns.
  • centrePoints (required): Centre points, at least 1. Must be at least 0 and at most 50.
Every refusal, with its code5 refusals
CodeWhen
OUT_OF_RANGEfewer than 3 or more than 5 factors: six and seven use Box and Behnken's (1960) own blocks, not read.
CENTRE_POINTS_REQUIREDno centre point: without one the full quadratic model is singular (the intercept is aliased with Σx²; Drybench's cases ruling of 10 November 2026).
DUPLICATE_NAMEtwo factors share a name.
LEVELS_EQUALa factor's low equals its high.
LEVELS_NOT_ASCENDINGa factor's low is above its high; they are never swapped.

The calculation

The method's equations, constants and worked example.

Box–Behnken designs for 3 to 5 factors in coded and natural unitsdoe-box-behnken@1.0.1

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

SymbolMeaning
n_ccentre points
kfactors
i, jfactor positions in the order given, counted from 1
x_icoded value of factor i

Source 1.

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

SymbolMeaning
lowfactor's stated low (in the caller's unit), as-given
highfactor's stated high (in the caller's unit), as-given

Source 1.

Equation 3

full quadratic model terms = 1 + 2k + k(k − 1)/2

SymbolMeaning
kfactors

Source 1.

Equation 4

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

SymbolMeaning
kfactors

A definition, not a model: the equation states what the quantity means. A different convention gives a different number.

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

  1. n-runs = 13, from factors, centrePoints; by equation 1; gives runs.
  2. terms = 10, from factors; by equation 3; gives modelTerms.

Answer

runs = 13

modelTerms = 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.

Sources

  1. NIST/SEMATECH e-Handbook of Statistical Methods, section 5.3.3 (How do you select an experimental design?)

    Used for: Box–Behnken designs for 3 to 5 factors in coded and natural units. At: 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); section 5.3.3.6.3, Table 3.26 (low 10, centre 15, high 20); section 5.3.3.6, the quadratic model.

    Read in full, 10 November 2026

How it is checked

Level

Checked against a reference.

Checked 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.

Cases

No case set is linked to this version.

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.

Changes to its methods1 change
  • 14 November 2026, doe-box-behnken@1.0.1: 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.