Define the decision before the matrix
A factorial experiment asks how selected factors jointly affect a defined response. It does not automatically establish a biologically optimal, economically superior or acceptable operating condition. This continuation of the two-factor teaching example uses product mass Y in g after a common procedure and a dimensionless quality index Q. The requirement Q ≥ 0.90 is an invented teaching condition. A and B are dimensionless factors with no assigned temperature, pH or feed settings. Every numerical observation is synthetic; no cultivation experiment is claimed.
The specific question is whether changing A has a different mass effect at low and high B, and which combination deserves follow-up while meeting the quality condition. All four combinations are examined. The original four observations are retained as treatment means, while additional runs introduce an explicit block and replication structure. The reader can therefore perform the main calculations by hand and then reproduce them from the CSV file.
A real project would first define the endpoint. Product mass after a common cultivation time answers a different question from mass obtained whenever each culture reaches its own stopping criterion. Longer cultivation can increase titre while reducing calendar productivity. A quality index requires an explained assay, scale and direction before analysis. These choices belong in the protocol before results become available. Switching the primary response afterwards makes it difficult to distinguish discovery from selecting an unusually favourable result.
Coding, experimental units and the permitted region
The codes −1 and +1 identify the two investigated levels. For a continuous physical factor with centre x₀ and half-range Δx, A = (x − x₀)/Δx. Moving from −1 to +1 therefore spans two coded units. This explains the factor of two between a regression coefficient and a main effect. Coding improves numerical comparability; it does not remove physical limits or turn a categorical choice into a continuously adjustable variable.
An experimental unit is an independently initiated and evaluated reactor run in this example. Two analyses of the same sample are not two reactor replicates. The eight runs in each block contain both levels of every factor equally often. Their order is permuted within the block using a documented random seed. Standard treatment order must therefore be distinguished from execution order in the file. NIST describes complete factorial structure and orthogonal model columns in its guidance on two-level full factorial designs.
For real bioreactors, establish whether A and B can actually be adjusted independently. Changing a dissolved-oxygen setpoint may cause a cascade to alter both gas composition and agitation. The assigned factor then represents a control strategy rather than only the resulting oxygen concentration. Record the assigned level, achieved process conditions and interventions separately. A statistical model cannot retrospectively create experimental separation that the operating arrangement never provided.
The expanded dataset
The file contains 24 runs: three blocks, four factor combinations per block and two independent teaching-case replicates per combination. Block 1 has a constructed mass offset of −2 g, block 2 an offset of zero and block 3 an offset of +2 g. Within every block-treatment combination, the two mass observations are exactly 1 g below and above their common expectation. This regularity is deliberate so that every calculation can be checked. It is not an empirical model of biological variability and cannot support a real sample-size calculation.
The table summarises all three blocks. Model fitting uses the 24 individual rows, preserving information that would be lost in a sheet of treatment means. Q is not interpreted as a fraction of mass; it is a separate response that requires its own assessment.
| A | B | Mean Y / g | Mean Q | Q condition |
|---|---|---|---|---|
| -1 | -1 | 22 | 0.970 | met |
| 1 | -1 | 30 | 0.950 | met |
| -1 | 1 | 28 | 0.960 | met |
| 1 | 1 | 44 | 0.820 | not met |
All masses refer to the same endpoint. Sampling loss, final-volume differences and downstream recovery are excluded from this isolated statistical case. In a real investigation, those quantities might themselves be part of the treatment effect. They should then be measured and explained alongside the primary response instead of being removed by an unjustified numerical normalisation.
Calculate main effects and interaction
The average A effect is mean mass at A = +1 minus mean mass at A = −1: EA = (30 + 44)/2 − (22 + 28)/2 = 12 g. For B, EB = (28 + 44)/2 − (22 + 30)/2 = 10 g. Each averages over the levels of the other factor and the balanced block structure. Neither is a universal slope per physical temperature or concentration unit.
The simple A effects differ: at B = −1 the difference is 30 − 22 = 8 g, whereas at B = +1 it is 44 − 28 = 16 g. The difference between those simple effects is 8 g. Under conventional two-level coding, however, the AB effect is mean response at AB = +1 minus mean response at AB = −1: EAB = (22 + 44)/2 − (30 + 28)/2 = 4 g. The regression coefficient bAB is half that effect, or 2 g. The values 8, 4 and 2 describe distinct and mutually consistent definitions.
Interaction means that a statement about A must specify the B level at which it applies. It does not establish a molecular mechanism. Faster formation, altered product stability and changed recovery could generate similar response patterns. Discriminating between mechanisms requires suitable additional observations. The NIST discussion of interaction plots helps distinguish interactions a design can resolve from the theoretical number of interactions that might exist.
Model matrix, rank and residual information
Each model row is [1, A, B, AB, I₁, I₃]. I₁ and I₃ equal one in blocks 1 and 3 respectively and zero otherwise. Block 2 is the reference. The model is Ŷ = b₀ + bAA + bBB + bABAB + d₁I₁ + d₃I₃. Least squares minimises the sum of squared differences between observations and predictions. Every treatment appears in each block, so the model matrix has rank six and its six coefficients can be estimated separately.
The fitted equation is Ŷ = 31 + 6A + 5B + 2AB − 2I₁ + 2I₃, in g. With 24 observations and six estimated parameters, 18 residual degrees of freedom remain. Residuals in this constructed file are exactly ±1 g. Therefore SSE = 24 g², MSE = 24/18 = 1.3333 g² and the residual standard deviation is 1.1547 g. Rank depends on independent model columns, not the number of column headings.
The original four corner points provide a useful comparison. Intercept, A, B and AB have rank four with four observations. That model interpolates every mass exactly but leaves no residual degrees of freedom. An R² of one would not demonstrate predictive quality. Even the expanded corner experiment cannot distinguish separate A² and B² curvature because A² = B² = 1 at every corner. Repeating the same corners improves precision for the estimable effects; it does not provide the missing information needed to separate those quadratic terms.
Read intervals with their assumptions
For the specified additive block model, estimated coefficient covariance is MSE·(XᵀX)⁻¹. The diagonal elements for A, B and AB are each 1/24 before multiplication by MSE. An effect is twice its coefficient, so its standard error is 2·√(1.3333/24) = 0.4714 g. Using t0.975;18 ≈ 2.1009 gives an interval half-width of 0.9904 g.
| Effect | Estimate / g | Interval / g |
|---|---|---|
| A | 12.00 | 11.01 to 12.99 |
| B | 10.00 | 9.01 to 10.99 |
| AB | 4.00 | 3.01 to 4.99 |
These intervals demonstrate a conditional calculation. Their usual probability interpretation requires a suitable model, independent errors and a defensible common error variance; exact t inference additionally assumes normally distributed errors. Deliberately regular synthetic residuals do not establish those assumptions. Real residuals should be examined against execution order, block, response level and factor position. A small residual standard deviation does not rule out measurement problems or culture dependence.
An effect interval is not a prediction interval for the next batch. A new individual observation adds its own residual variation, and a previously unobserved day may add new block variation. The fixed block formulation accounts only for differences between these three observed blocks. It does not automatically describe the population of future production days. Connecting the analysis to measurement uncertainty and independent comparisons avoids presenting analytical repeatability as established process stability.
Make a joint mass and quality decision
A = +1, B = +1 produces the largest mean mass, 44 g, but its Q of 0.820 clearly misses the teaching condition. Declaring that corner the winner and relegating quality to a later comment would be incorrect. Among the three tested combinations meeting the condition, A = +1, B = −1 gives the highest mean mass, 30 g. This conclusion is restricted to the investigated corners and the specified quality index.
Multiplying 44 g by 0.820 does not produce an acceptable-product mass in this example. Q would have to be an explicitly defined recoverable mass fraction for that interpretation, which it is not. Likewise, a mean Q does not establish that individual future batches will meet a condition. A real programme would define the assay's meaning, measurement uncertainty, batch variation and acceptable decision risk before release.
The useful next step has two parts: independently confirm the promising corner and investigate whether a better mass-quality compromise exists within the permitted region. A centre point can indicate overall curvature but cannot separate A² from B². Suitable axial points add the missing information. The transition is worked through using a separate second dataset in response surfaces and confirmation.
Questions with checkable answers
| Question | Answer and implication |
|---|---|
| What happens to the A effect if AB is removed? | In the balanced corner design, the estimated average effect remains 12 g. However, the additive model no longer describes both simple A effects correctly: its average hides the 8 g and 16 g differences. |
| Why does a third measurement of one sample not simply increase n? | It shares the reactor run with the other measurements. It may improve analytical estimation but does not create another independent cultivation history. |
| What is lost if each block contains only one treatment? | If A = −1 occurs only in block 1 and A = +1 only in block 2, factor and block are confounded. Those observations alone cannot separate their effects. |
| Does the AB interval establish a mechanism? | No. It describes uncertainty in a statistical contrast under the selected model. A biological mechanism requires additional observations designed to distinguish competing explanations. |
| Why can more decimal places not replace axial points? | More precise observations at the same locations do not alter the dependence between A² and B² columns. Identifiability concerns design, not display resolution. |
Define the response as a precise comparison question
A factorial effect always concerns a particular response under specified comparison conditions. “Improve fermentation” has too many possible meanings. Total product mass at a defined endpoint, volumetric productivity over a common interval and yield on consumed substrate can rank conditions differently. If a factor changes process duration, decide beforehand whether to compare equal elapsed time or a defined biological endpoint. Selecting the interval afterwards can unintentionally favour the preferred treatment.
In the teaching case, Y is explicitly a constructed product mass in grams per experimental unit. The four combinations averaged across blocks give 22, 30, 28 and 44 g. The A main effect of 12 g is the equally weighted mean of A differences across the two B levels. It does not imply that every increase in A produces exactly 12 g. The difference is 8 g at B = −1 and 16 g at B = +1. For a later facility intended to operate only at B = −1, the simple 8 g difference is initially the more direct comparison.
Equal weighting is itself a substantive choice. If a later campaign uses B = −1 for 80% of runs and B = +1 for 20%, the corresponding modelled A difference is 0.8 × 8 + 0.2 × 16 = 9.6 g. This is not a different fit to the experiment but a different target population or operating mixture. Report both estimated conditional differences and the weighting used for the decision.
A half design loses specific distinctions
An algebraic exercise adds an abstract factor C. A complete two-level design needs eight distinct combinations. Keeping only the half with C = AB makes ABC = +1 in every executed row. Model columns A and BC are then identical, as are B and AC, and C and AB. Those four combinations alone cannot separate the respective contributions. Software cannot reconstruct the missing information through an attractive plot.
Suppose the unknown system has a pure A coefficient of 3 g and a BC coefficient of 2 g. In this particular half design, their shared column appears with a coefficient of 5 g. Calling that an A coefficient of 5 g requires the additional assumption that BC is negligible. This is structural confounding, rather than simply a wider confidence interval. Additional analytical repeats of the same four combinations do not change the column identity.
The complementary half, C = −AB, provides a discriminating augmentation. The relationship between A and BC changes there, allowing both contributions to be estimated using the combined runs when other model assumptions and conditions are appropriate. The NIST overview of fractional factorial designs introduces this planning approach. In bioprocess work, an economical screening design therefore needs an explicit list of aliased effects and a justified follow-up design before one factor is identified as the cause.
Distinguish settings from achieved conditions
A factor may be defined as an intended setting or as actually measured exposure; these are not automatically identical. A temperature level does not fully describe its time course. Nominally identical feed settings can deliver different masses after different calibrations. Preserve planned level and actual execution separately so deviations remain visible.
If treatment A pushes oxygen control to its actuator limit, measured DO exposure can be a consequence of treatment. Adding it afterwards as an ordinary independent regression variable changes the question: part of the treatment's pathway may be statistically removed. Whether such adjustment is appropriate depends on the causal question. An initial technical comparison should therefore report complete trajectories and limits rather than silently switch between a setting effect and an exposure effect.
Selected factor levels must also define a jointly executable region. Three individually allowable maxima do not necessarily form an allowable combined setting. A volume or power limit can make one planned cube corner infeasible. Adjust the design before execution and examine estimability of the requested terms. Removing a corner after the experiment can destroy orthogonality and make the original simple difference formulas unsuitable.
Consider a run that technically fails to reach its assigned feed level and gives substantially lower product mass. Which value belongs in the primary analysis? The answer follows the predefined objective and deviation policy. Do not silently reassign the run to another level or discard it solely for its unfavourable outcome. Preserve original assignment, actual exposure, technical findings and sensitivity analysis together.
An outcome record that supports a decision
A useful outcome record distinguishes observation, model and decision. Observations are individual Y and Q values with experimental unit, block and execution status. The model explicitly contains A, B, AB and the selected block terms. The decision considers the predefined quality condition alongside product mass and whether the selected combination can be examined at the next scale.
For the four teaching-case corners, Y × Q is 21.34, 28.50, 26.88 and 36.08 g of purely arithmetically quality-weighted product. This multiplication does not make the fourth combination, with Q = 0.82, acceptable. If Q ≥ 0.90 is a hard requirement, increased quantity cannot compensate for violating it. Moreover, YQ has the claimed mass interpretation only if Q genuinely represents a multiplicative usable mass fraction.
The resulting recommendation is therefore more precise than simply “high A and high B”. It identifies the acceptable reference, the quantity potential of the unacceptable combination, the unresolved quality mechanism and the next region to investigate. The response-surface chapter addresses this conflict through intermediate levels. That follow-up asks a different, narrower question than the original screening comparison and can appropriately use a different design.
Working case: a missing corner changes the question
For an independent algebraic exercise, retain only three combination means: 22 g at (−1,−1), 30 g at (+1,−1) and 28 g at (−1,+1). Initially treat the fourth value at (+1,+1) as unknown. Three points determine an additive model Y = b₀ + b₁A + b₂B exactly, giving b₀ = 29, b₁ = 4 and b₂ = 3. It predicts 36 g at the missing corner.
The actual constructed fourth mean is 44 g. Its 8 g discrepancy reveals the information supplied by the fourth combination. With only three points, the additive fit has zero residual error despite a substantially wrong prediction at the missing corner. Perfect fit to too few points therefore does not establish adequate model structure. Additional information is needed to distinguish interaction from additive contributions.
The complete bilinear model also changes the intercept from 29 to 31 g. No new centre observation caused this change; in both models, the centre is initially a prediction. The relationship between intercept and a simple overall mean depends on design and model. A software output labelled “Intercept” should not automatically be described as measured baseline performance.
A teaching group can perform the exercise without regression software. One participant sets up the three equations, another predicts the missing corner and a third supplies the actual fourth value. Together they identify the previously untestable statement. Then ask whether extra analytical repeats at the same three corners would provide the missing interaction information. They would not: they can improve existing mean estimates without creating a new combination.
Actual process investigations should therefore examine failed combinations early. Failure specifically at a demanding combined maximum is itself decision-relevant. Silently removing it can suggest a well-described admissible region even though the most important boundary was unobserved. Report the original plan, executed plan and remaining estimable statements separately.
Data, calculations and next steps
The CSV contains factor codes, block assignment, replication, execution order and both responses. The Python script uses only the standard library, regenerates the synthetic files and checks the model calculation. No software is required by the website. Readers can change the case locally: for example, increase only the mass of one treatment within one block and examine the resulting residual pattern. Record every altered input so that a modified result is not confused with the reference case described here.
- 24 individual observations as CSV
- Reproducible Python calculation
- Data dictionary and assumptions
- Full numerical results
Continue to blocking and replication for dependencies between samples, reactors and days. The NIST explanation of lack-of-fit testing describes the replication information required. Recommendations here are decisions within a teaching model; an actual process change needs biological, analytical and engineering confirmation.
Terms in this chapter
42 terms explained in the glossary
- Adjustment
- Assay (reported content)
- Bioreactor
- Blocking
- Coefficient of determination
- Confidence interval
- Confounding
- Covariance
- CSV file
- Degrees of freedom
- Dissolved oxygen measurement
- Downstream processing (DSP)
- Experimental factor
- Experimental unit
- Exposure
- Factor level
- Fermentation and fermenter
- Independent replication
- Least squares
- Main effect
- Mass fraction
- Mean square error
- Measurement uncertainty
- Model matrix
- Orthogonal design
- Parameter identifiability
- pH measurement
- Prediction interval
- Product recovery
- Product titre
- Production campaign
- Residual sum of squares
- Response variable
- Sensitivity analysis
- Setpoint
- Standard deviation
- Standard error
- Statistical interaction
- Statistical residual
- Substrate
- Variance
- Volumetric productivity