curve.fit

Cubic

A third-degree polynomial. Use it as an empirical curve for smooth data with up to two turns, such as a calibration curve that a quadratic cannot follow.

Start with your own data

Parameters

Coefficient of x³.
Coefficient of x².
Coefficient of x.
Value of y at x = 0.

Tips

  • Use the lowest degree that leaves no pattern in the residuals.
  • Polynomial coefficients are usually strongly correlated, so a coefficient can have a large uncertainty even when the curve itself is well determined. The model uncertainty band shows how well the curve is determined.
  • Avoid extrapolating: a polynomial can turn sharply just outside the fitted range.
  • With no uncertainties selected, the goodness of fit is R², because the model is linear in its parameters.

Related models