Skip to content

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.

What the residuals revealResidual = observed − fitted force; both plots use the same axes.

Linear fitR² = 0.999338

Residual (N)

Residuals: Linear fitDisplacement 0 to 1.9 mm; residual -8 to 8 N. Residual equals observed minus fitted force. Residuals show a U-shaped pattern: positive at the ends and negative in the middle. Both plots use the same axes.0 mm; 5.877 N0.1 mm; 3.678 N0.2 mm; 2.28 N0.3 mm; 1.081 N0.4 mm; -0.717 N0.5 mm; -0.916 N0.6 mm; -2.315 N0.7 mm; -2.513 N0.8 mm; -3.112 N0.9 mm; -3.511 N1 mm; -2.909 N1.1 mm; -3.508 N1.2 mm; -2.507 N1.3 mm; -2.105 N1.4 mm; -1.504 N1.5 mm; 0.097 N1.6 mm; 0.699 N1.7 mm; 2.3 N1.8 mm; 4.102 N1.9 mm; 5.503 N

Displacement (mm)

Residuals show a U-shaped pattern: positive at the ends and negative in the middle.

Quadratic fitR² = 0.999995

Residual (N)

Residuals: Quadratic fitDisplacement 0 to 1.9 mm; residual -8 to 8 N. Residual equals observed minus fitted force. Residuals lie closer to zero and show less structure here. Both plots use the same axes.0 mm; 0.188 N0.1 mm; -0.214 N0.2 mm; -0.016 N0.3 mm; 0.183 N0.4 mm; -0.418 N0.5 mm; 0.381 N0.6 mm; -0.219 N0.7 mm; 0.181 N0.8 mm; -0.018 N0.9 mm; -0.217 N1 mm; 0.384 N1.1 mm; -0.414 N1.2 mm; 0.188 N1.3 mm; -0.009 N1.4 mm; -0.206 N1.5 mm; 0.397 N1.6 mm; -0.199 N1.7 mm; 0.005 N1.8 mm; 0.209 N1.9 mm; -0.186 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 measurement
Assumptions 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.