curve.fit

Quartic

A fourth-degree polynomial. Use it as an empirical curve when lower-degree polynomials leave a pattern in the residuals.

Fit the example dataStart with your own data

Example: a simulated nonlinear sensor calibration, 21 points with y uncertainties, opened as a new copy you can edit.

Parameters

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

Tips

  • A quartic has five parameters, so it needs at least five points, and more to estimate the uncertainty scale from the residuals.
  • Polynomial coefficients are usually strongly correlated; the model uncertainty band shows how well the curve itself is determined.
  • Avoid extrapolating: a high-degree polynomial can turn sharply just outside the fitted range.

Related models