Statistical decision
What does R² tell you about a force–displacement curve?
R² describes how much of the observed variation the fitted curve explains. For a stiffness estimate, also examine the mechanically justified evaluation interval, force errors in N and the residual pattern. Adjusted R² accounts for fitted terms. Predicting new specimens or conditions needs its own validation.
R² describes relative fit, not an allowable force error. Compare fits using the same response, scale, observations and evaluation interval.
Linear fitR² = 0.999338
Residual (N)
Displacement (mm)
Residuals show a U-shaped pattern: positive at the ends and negative in the middle.
Quadratic fitR² = 0.999995
Residual (N)
Displacement (mm)
Residuals lie closer to zero and show less structure here.
Worked example
Twenty force–displacement pairs from one example curve: displacement 0 to 1.9 mm, force in N. A is linear and B quadratic; both ordinary least-squares fits include an intercept. p counts terms excluding the intercept. Twenty curve points are not twenty independent specimens.
- Common data basis
- n = 20; total sum of squares SST = 266,140.118 N²
- Model A
- p = 1; SSE = 176.1168 N²; R² = 0.999338; adjusted R² = 0.999301
- Model B
- p = 2; SSE = 1.2361 N²; R² = 0.999995; adjusted R² = 0.999995
Result: Both R² values are very high. A leaves systematic curvature in the residuals; B describes this example curve with smaller force deviations. The plots use the same data as these scores. This example does not derive a linear stiffness.[1][2]
What the two fit scores measure
For ordinary least squares with an intercept, R² compares residual variation with variation around the response mean. Adding terms can raise the score on the same observations. Adjusted R² accounts for the degrees of freedom used. The response range also affects the score. Follow any applicable test-method requirements for the fitting interval and criteria.
Fit the curve for the engineering question
A linear stiffness estimate needs a mechanically justified linear region. Plot residuals against displacement, fitted force and observation order to look for curvature, changing spread or drift. If the model will predict forces for new specimens or conditions, define criteria for that additional task and assess them with suitable independent data.[1]
For the decision
Choose the evaluation interval for the quantity you need. Judge fit using R², force errors and residuals together.
The Visual Lab compares force deviations and residuals from two fits.
Explore model and measurementAssumptions and calculation method
Here R² = 1 − SSE/SST and adjusted R² = 1 − [SSE/(n − p − 1)]/[SST/(n − 1)]. SSE is the sum of squared fitted residuals; SST uses the same response mean. These calculations require n > p + 1 and SST > 0.
The example compares fitted models. The curve contains stipulated curvature and small fixed perturbations. Scores use unrounded fitted values; displayed numbers are rounded. The CSV contains inputs, both fits and residuals for recomputation. Residual means observed minus fitted force.
Download the example data (CSV; displacement in mm, force and residuals in N)
Sources and scope
NIST explains residual analysis and numerical model checks. The curve and fits are our own synthetic arithmetic example.