Skip to content

Central composite response-surface design

doe_central_composite_design

Lists the runs of a circumscribed, inscribed or face-centred central composite design.

Runs
On the server
Level
Checked against a reference: kind not recorded
Ask your assistant

What it is

Returns the runs of a central composite design, circumscribed, inscribed or face-centred, coded and in natural units. Use when planning an experiment to fit a quadratic response surface; the factorial part is full or a fraction from your generators. Not for a screening design: use `doe_factorial_design`; for three levels without points beyond your range, use `doe_box_behnken_design`. Refuses fewer than 2 or more than 10 factors, a factorial part over 256 runs (a full one over 8 factors), no centre point, and a factorial part below resolution V. 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.
  • factorial (required): 'full' (the 2^k factorial part) or 'fractional' (a two-level fraction from your generators, resolution V or more).
  • alphaRule (required): 'rotatable' (α = F^(1/4)), 'face-centred' (α = 1) or 'stated' (your α).
  • variant (required): 'circumscribed' (axial points beyond your range), 'inscribed' (axial points at your range ends) or 'face-centred' (α = 1).
  • centrePoints (required): Centre points, at least 1. Must be at least 0 and at most 50.
  • generators: Fractional only: one generator per added factor. Optional.

and 1 more, listed below

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 2 or more than 10 factors; a factorial part of more than 256 runs (a full factorial part above 8 factors; 9 factors need at least one generator and 10 at least two), checked after the factorial part's own refusals and RESOLUTION_BELOW_V, so that the reply stays inside the reply cap with a tenth to spare (F-16 of the raising run, Drybench, 14 November 2026; the worst case at the cap, measured over every design option, is on the technical page); a natural value beyond the largest finite double (the reason names the factor; narrow its range or lower α).
  • no centre point: the full quadratic model is singular when α² = k, and otherwise has no run at the centre to anchor the intercept; refused as a design rule (Drybench judgement, response-surface levels ruling of 10 November 2026).
  • the face-centred variant without the face-centred α rule, the face-centred rule with another variant, or a stated α of exactly 1 with the circumscribed or inscribed variant (that design is the face-centred one).
  • a stated α below 1: the axial points would fall inside the factorial cube, which no variant read covers.
Every input, with its units7 inputs
  • factors (required): The factors, in the order of the design's columns.
  • factorial (required): 'full' (the 2^k factorial part) or 'fractional' (a two-level fraction from your generators, resolution V or more).
  • alphaRule (required): 'rotatable' (α = F^(1/4)), 'face-centred' (α = 1) or 'stated' (your α).
  • variant (required): 'circumscribed' (axial points beyond your range), 'inscribed' (axial points at your range ends) or 'face-centred' (α = 1).
  • centrePoints (required): Centre points, at least 1. Must be at least 0 and at most 50.
  • generators: Fractional only: one generator per added factor. Optional.
  • alpha: The stated rule only: α in coded units, above 1 and at most 10 (α = 1 is the face-centred design). Must be above 0 and at most 10. Optional.
Every refusal, with its code11 refusals
CodeWhen
OUT_OF_RANGEfewer than 2 or more than 10 factors; a factorial part of more than 256 runs (a full factorial part above 8 factors; 9 factors need at least one generator and 10 at least two), checked after the factorial part's own refusals and RESOLUTION_BELOW_V, so that the reply stays inside the reply cap with a tenth to spare (F-16 of the raising run, Drybench, 14 November 2026; the worst case at the cap, measured over every design option, is on the technical page); a natural value beyond the largest finite double (the reason names the factor; narrow its range or lower α).
CENTRE_POINTS_REQUIREDno centre point: the full quadratic model is singular when α² = k, and otherwise has no run at the centre to anchor the intercept; refused as a design rule (Drybench judgement, response-surface levels ruling of 10 November 2026).
ALPHA_VARIANT_CONFLICTthe face-centred variant without the face-centred α rule, the face-centred rule with another variant, or a stated α of exactly 1 with the circumscribed or inscribed variant (that design is the face-centred one).
ALPHA_BELOW_ONEa stated α below 1: the axial points would fall inside the factorial cube, which no variant read covers.
RESOLUTION_BELOW_Va fractional factorial part of resolution below V.
GENERATOR_INVALIDa generator the factorial engine refuses (an unknown or repeated factor, a one-letter word, a word using an added factor).
GENERATORS_DEPENDENTtwo added factors with the same word.
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.
RANGE_BEYOND_LIMITa factor's stated low or high outside its own stated physical limit.

The calculation

The method's equations, constants and worked example.

Central composite designs (circumscribed, inscribed, face-centred) in coded and natural unitsdoe-central-composite@1.1.0

Equation 1

runs = F + 2k + n_c, in this order: the F factorial runs (±1, standard order, from the factorial engine

F = 2^k full or 2^(k − p) for a fraction), point 'factorial'

then the 2k axial runs factor by factor, −α before +α on that factor and 0 on the others, point 'axial'

then the n_c centre runs, all 0, point 'centre'. Run numbers count from 1

list positions and flag paths (result.design[i].natural[j]) count from 0, so run r is at position r − 1

SymbolMeaning
Ffactorial runs: 2^k, or 2^(k − p) for a fraction
pgenerators of the fractional factorial part
kfactors
n_ccentre points

Source 1.

Equation 2

α=F^(1/4)

for a full factorial α = (2^k)^(1/4). Computed as Math.pow(F, 0.25) in double precision (ECMAScript

V8 in Node 22), not as the correctly rounded fourth root and not as sqrt(sqrt(F)): for F = 4, 8, 64 and 128 it sits one unit in the last place from the correctly rounded root (F = 4: 1.414213562373095, where √2 rounds to 1.4142135623730951)

for F = 16, 32 and 256 it is the correctly rounded root

SymbolMeaning
αaxial distance, coded units

Source 1.

Equation 3

the inscribed coded values are computed as each circumscribed coded value times s, s = 1/α rounded to double, each product rounded once: factorial ±s, axial ±α·s (exactly ±1 for every rotatable α of this version and whenever that product rounds to 1), and the natural value takes the stated low or high exactly only where the coded value is exactly ±1

circumscribed: factorial ±1, axial ±α

inscribed: the circumscribed design divided by α (axial at ±1, factorial ±1/α)

face-centred: α = 1

SymbolMeaning
αaxial distance, coded units

Source 1.

Equation 4

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

AXIAL_BEYOND_LIMIT marks an axial run whose natural value is below a stated minimum, or above a stated maximum, by more than the rounding bound 2·n·ε·M (ε = 2^−52, the double's machine epsilon, Number.EPSILON

n = 4 operations, M the largest of |low|, |high| and |limit|)

a value equal to the limit within that bound is not flagged

a natural value beyond the largest finite double (an axial point of a range near 1e308) is refused, OUT_OF_RANGE

SymbolMeaning
lowfactor's stated low (in the caller's unit), as-given
highfactor's stated high (in the caller's unit), as-given
codedthe run's coded value for the factor
naturalthe run's value for the factor (in the caller's unit), as-given

Source 1.

Equation 5

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

SymbolMeaning
kfactors

Source 1.

Equation 6

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 count, a unit, UNITS_DIFFER

α not above 0 or above 10, and 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) each factor in the order given: RANGE_BEYOND_LIMIT

(5) the stated rule without α MISSING_ARGUMENT

α given with the rotatable or face-centred rule INVALID_OPTION

a fractional part without generators MISSING_ARGUMENT

generators with a full part INVALID_OPTION

(6) refused: the number of factors OUT_OF_RANGE

CENTRE_POINTS_REQUIRED

the face-centred variant and rule not together ALPHA_VARIANT_CONFLICT

with a stated α, ALPHA_BELOW_ONE, then α exactly 1 ALPHA_VARIANT_CONFLICT

(7) the factorial part's own refusals in doe-factorial's order (a fraction of fewer than three factors OUT_OF_RANGE, GENERATOR_INVALID, GENERATORS_DEPENDENT)

(8) RESOLUTION_BELOW_V

(9) more than 256 factorial runs OUT_OF_RANGE

(10) a natural value beyond the largest finite double OUT_OF_RANGE, naming the factor of the first such value in run order

SymbolMeaning
kfactors

Conventions

  • factorial = full: The factorial part is the full 2^k in standard order (the first factor fastest).
  • factorial = fractional: The factorial part is the two-level fraction from your stated generators, of resolution V or more, in standard order of its base.
  • alphaRule = rotatable: α = F^(1/4), F the factorial runs: the rotatable axial distance in coded units (NIST 5.3.3.6.1).
  • alphaRule = face-centred: α = 1: the axial points at the centres of the faces.
  • alphaRule = stated: α is the value you state, in coded units (unit 1), above 1 and at most 10.
  • variant = circumscribed: Factorial points at ±1 coded (your low and high), axial points at ±α, outside your range when α > 1.
  • variant = inscribed: The circumscribed design divided by α: axial points at your low and high, factorial points at ±1/α inside them. The reported α is the ratio of axial to factorial distance; in the coded matrix the axial points are at ±1.
  • variant = face-centred: α = 1: axial points at your low and high on each axis, three levels per factor.

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-central-composite@1.1.0, 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 = temperature
  • factors[0].low = 30 degC
  • factors[0].high = 40 degC
  • factors[0].physicalMax = 41 degC
  • factors[1].name = time
  • factors[1].low = 10 min
  • factors[1].high = 20 min
  • factorial = full
  • alphaRule = rotatable
  • variant = circumscribed
  • centrePoints = 2

Steps

  1. alpha = 1.4142136, from factors; by equation 2; gives alpha.
  2. n-runs = 10, from factors, centrePoints; by equation 1; gives runs.
  3. terms = 6, from factors; by equation 5; gives modelTerms.

The working, as the case writes it:

alpha = (2^2)^(1/4) = sqrt 2

the +alpha temperature point is 35 + sqrt(2) x 5 = 42.071 degC, above the stated 41 degC

it is reported with the flag, not moved

Answer

alpha = 1.4142136

runs = 10

modelTerms = 6

Where these values came from: our own exact-arithmetic script and a hand-worked case; worked by hand.

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); alpha 1e-12 absolute; 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: Central composite designs (circumscribed, inscribed, face-centred) in coded and natural units. At: section 5.3.3.6.1: an embedded factorial or fractional factorial with centre points, augmented with 2k star points; section 5.3.3.6.1, α for rotatability; Table 3.23; section 5.3.3.6.1, Table 3.22 (CCC, CCI, CCF); section 5.3.3.6.3, Table 3.25 (low 10, high 20: CCC star points 6.6 and 23.4, centre 15); section 5.3.3.6, the quadratic model (intercept, k linear, k(k − 1)/2 interactions, k pure quadratic).

    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

The orthogonal-blocking α (no source read); a stated α below 1; blocking; randomised run order; NIST Table 3.25's inscribed run 7 (misprinted 12 12 18 for 12 18 18; not asserted, taken from pyDOE3 in that case); the choice of α, variant, centre points and generators, which is the caller's.

Changes to its methods1 change
  • 14 November 2026, doe-central-composite@1.1.0: In 1.1.0 a factorial part of more than 256 runs is refused, OUT_OF_RANGE; the worst reply at the new cap, over every design option, is 1,845,936 bytes, 88.0 % of the cap. Natural values use an overflow-free form where the plain one is not finite, and a natural value beyond the largest finite double is refused, OUT_OF_RANGE. Every value the tool returned before is unchanged, bit for bit; no published case moved.