▚DATAJIN

Polynomial regression calculator

Polynomial regression fits a curve of the form Y = b₀ + b₁X + b₂X² + … to data that bend instead of following a straight line. A degree of 2 gives a parabola (one bend), 3 gives a cubic (two bends), and so on.

No sign-up, nothing to install. Calculations run in your browser; the worksheets, results and charts you create are stored by AI Walay to improve DATAJIN.

When to use it

  • Scatter plots that show a clear curve, such as growth that levels off or a U-shaped response.
  • Finding an optimum, such as the temperature or dose with the highest yield (quadratic).

Assumptions

  • Residuals are independent, roughly normal and have constant variance.
  • Use the lowest degree that fits: high degrees chase noise and behave badly outside the data range.

How to run it in DATAJIN

  1. Put X in one column and Y in the next.
  2. Open Analyze and choose Polynomial regression.
  3. Select X then Y, set the degree and click Run.

Example: open the Auto MPG dataset (fuel economy (mpg) against horsepower, which curves) and follow the steps above.

What you get

  • Coefficient of each term with SE, t and p-value
  • R² and RMSE

How to interpret the result

Compare R² and RMSE across degrees: move to a higher degree only if it clearly improves the fit and the highest-order term is significant. Never extrapolate a polynomial far beyond your data.

Frequently asked questions

What degree should I choose?

Start with 2. Increase only when the scatter plot clearly shows more bends and the new top term is significant. Degrees above 3 are rarely justified.

Polynomial or nonlinear regression?

If theory gives you a model (exponential decay, dose–response, Michaelis–Menten), use nonlinear regression: its parameters have real meaning. Polynomials are a flexible description, not a mechanism.