Back to List

Creating and Questioning a Quadratic Model: Diagnostics Beyond Just R²

Construct a full quadratic model for the response surface according to the hierarchy and diagnose the model fit using ANOVA, lack of fit, residual, and Actual by Predicted.

Advanced
|
43min
|
Verified (2026-08-14)
quadratic modelmodel hierarchyANOVAparameter estimateslack of fitresidualActual by PredictedJMP
Progress0/28 (0%)

We filled the CCD table with response values and fitted a full quadratic model. If R² is 0.98, can we now find the optimal conditions? A high proportion of explained variance is just a starting point; it does not check for missing curvature, sequence effects, extrapolation, or selection bias.

The question for this section is:


How do you determine if a quadratic model adequately describes the data?
quadratic termA term that expresses the deflection of a factor, such as x²
quadratic hierarchyKeep low-order terms related to quadratic and interaction together
residualObserved response minus model prediction
model fitComprehensive judgment on whether it is usable without bias within the scope of purpose

First, link candidate models to the design

A two-factor full quadratic model has six terms.

ŷ = β₀ + β₁x + β₂y + β₁₁x² + β₂₂y² + β₁₂xy

The list of terms is not invented after looking at the results to find the best combination of p-values. It is pre-specified based on the design objective and scientific question, and then we check whether the design can estimate those terms. The first thing to check is whether the row with the attached response values deviates from the original design rows.

Maintain the quadratic hierarchy

If x² is kept in the model, then x should also be kept; if xy is kept, then the main effects of x and y should also be kept. Deleting terms simply because the p-value of the lower-order term is large can change the meaning of the higher-order term depending on the coordinate origin and coding.

U24 · Figure 01
Missing curvatures are returned as curves in the residuals.
Actual by PredictedResidual by Predicted
Place Actual by Predicted and residual side by side in the same data. Even high explanation ratios cannot erase structural residuals.

Compare three candidate models on the same data

Suppose we created a composite response as follows:

Y = 82 + 5x − 3y − 6x² − 4.2y² + 3xy + error

Candidate ModelIncluded TermsExpected Issues
linear1, x, yCurvature and xy will remain in the residuals
quadratic without interaction1, x, y, x², y²The xy structure may remain
full quadraticAll six termsFits the current generating function, but check for overfitting and range in real data

In a teaching fixture with zero noise, the full quadratic recovers the true coefficients. However, in real data, each coefficient estimate has an SE and CI, and the information content is not uniform across the design region.

ANOVA partitions variance but does not automatically approve a model

The Model F and p-value of ANOVA look at whether "this candidate model explains the signal better than a model with only an intercept." Each Parameter Estimate represents the coded effect with other terms fixed. The following questions remain to be answered separately:

  • Is there a selection bias in choosing the terms to fit the data?
  • Was pure error estimated using repeat points?
  • Have blocks, run order, and measurement batches been included in the model?
  • Does the variance and shape of the residuals vary depending on the conditions?
  • Are the locations for which you want to make predictions actually within the design region?

R² and adjusted R² summarize the proportion of variance explained, but they do not answer these questions.

Lack of fit and residuals provide different warnings

If there are repeated conditions, the residual SS can be partitioned into pure error and lack-of-fit SS. If the LOF is larger than the pure error, it is possible that the current model has missed the structure beyond the repeated variation. Conversely, a large LOF p-value does not prove that the model is correct. In small samples, the power may be low.

In residual plots, look for the following:

  • Does a U-shape or S-shape remain depending on the predicted value?
  • Does the spread widen in a fan shape as the response increases?
  • Is there a drift along the run order?
  • Does one point excessively pull the model?
Do not automate term deletion all at once

Iteratively deleting from the largest p-value does not reflect the selection process in the final p-value and prediction uncertainty. Maintain the prior model, hierarchy, and domain importance, and review the reduced model by comparing it with the full model and with new confirmation data.

Actual by Predicted reads the identity diagonal

The closer the points are to the diagonal, the closer the observed and fitted predictions are. However, fitting well at the design points is different from predicting new conditions well. If the repeated center points fall in the same direction, or if only the boundary points deviate significantly, consider the structure separately.

In-Silico Lab: Re-examine missing terms with residuals

  1. In the full quadratic model, examine the number of coefficients, R², RMSE, and LOF SS.
  2. Change to a linear model and increase the curvature to see how the residuals and SSE change.
  3. In quadratic-no-interaction, increase the true xy coefficients.
  4. Change the noise and seed to see how much the small sample diagnostics fluctuate.
In-Silico Lab · U24

Change the candidate model and look at the structure of the residuals.

Compare SSE, LOF, and residuals by fitting linear, square term, and full quadratic models to the same CCD synthetic data.

If this is your first time: What should I press?
  1. 1. Read the question firstIn the Lab title, check the one thing you will compare this time.
  2. 2. Change just one conditionInitially, change only one of the inputs: n, effect, or spread.
  3. 3. new composite specimen pressureNew synthetic data is created. The same conditions may vary depending on the sample.
  4. 4. Pictures and calculation results CompareWrite in one sentence what moves and what stays the same before and after the change.

If it gets stuckresetGo back to see the default results and change just one condition. This Lab is not a correct answer tester but a pattern observation tool.

Synthetic observations of the same settings

run 10.11run 20.11run 3-0.12run 4-0.12run 5-0.22run 60.24

calculation result

number of model terms6
R²0.9984
RMSE0.280
LOF SS0.163

Even if R² is high, check the residual curve/order pattern and lack of fit. Without loop points, pure error and LOF cannot be separated.

educational synthetic modelbjs-response-surface-sequence-v1. One row is one independent simulation or design run unless otherwise indicated. It cannot be used for actual research, quality, or regulatory decisions.

The Lab's 13 rows comprise 8 CCF coordinates and 5 center points. Model fitting is calculated using least squares and is not a substitute for using the menu or actual JMP values.

Read JMP output as a set

ANOVA / Parameter Estimates

The terms of the prior quadratic model and the overall uncertainty are viewed together.

Lack of Fit

The remaining structure is checked based on the repetition point pure error.

Residual / Actual by Predicted

Missing curvature, heteroscedasticity, order, and outliers are not compressed into one screen.

ANOVA and Parameter Estimates show the signal and coefficients, Lack of Fit shows the discrepancy compared to the replicate points, and Residual and Actual by Predicted show the shape. None of these are a single gate. If you have made a model change, leave a receipt with the initial model, the reason for the change, and the diagnostics before and after.

Example of a result statement

A pre-specified full quadratic model was fitted to the 13-run CCF data. The hierarchy was maintained, and pure error was estimated using the replicate center points. There were no obvious curvature or fan patterns in the Actual by Predicted and residual-by-predicted plots, and LOF was not significant in the current sample. This supports the adequacy of the candidate model within the study range, but does not replace a confirmation experiment under new conditions.

End of the section

  • The second-order model connects the design to the prior questions.
  • It adheres to the quadratic hierarchy.
  • Neither R², p-value, nor lack of fit alone is a criterion for acceptance.
  • Residuals serve as a map for identifying curvature, heteroscedasticity, order, and points of influence.
  • Record the reduction and selection process, as well as the confirmation data.
A quadratic model is not accepted with a single high R². Look at the hierarchy, lack of fit, residual, repetition points, and prediction purpose together and reinforce the model or design if it is insufficient.

In the next section, we will read the candidate model that has passed the diagnosis using contour plots, Profiler, and desirability, and then proceed to the confirmation experiment.

Official Supplementary Materials

This article and the Lab are synthetic materials for educational purposes and should not be used as evidence for actual research, process, quality, or regulatory decisions.

💬 Questions & Comments

0 comments

You can post without signing in. Guest comments cannot be edited or deleted by their author.

0/2000

Loading...