Fit a polynomial of degree 1 to 6 to your data and compare how well each degree fits, with the equation, R², adjusted R², a chart and predictions.
y = b₀ + b₁x + b₂x² + … + bₖxᵏ
Polynomial regression fits a curve made of powers of x (x, x², x³ and so on) to data that a straight line can't follow. The degree is the highest power used, and each extra degree lets the curve bend once more.
Degree 1 is an ordinary straight line, 2 a parabola and 3 an S-bend. Higher degrees can follow almost any wiggle, which is both their power and their danger: past a point they start fitting the noise instead of the pattern.
The practical skill is choosing the degree. Look for the lowest degree after which adjusted R² stops improving and the curve still looks sensible between the data points.
Least squares as in the NIST/SEMATECH e-Handbook, section 4.4.3, and Montgomery, Peck and Vining, chapter 7. See Sources.
The calculator centres and scales x before solving, which keeps high powers numerically stable.
The parabola peaks at 21 °C, short of the real 23 °C, because a year of temperatures is flatter at the ends than a parabola. Degree 4 fixes most of that; degrees 5 and 6 squeeze out a little more but start chasing month-to-month noise. For long-run data, a sine curve is the physically sensible model.
R² always rises with the degree. Adjusted R² and the typical error show when the extra bends stop paying their way.
| Degree | R² | Adjusted R² | RSE (°C) |
|---|---|---|---|
| 1 | 0.05 | -0.045 | 5.708 |
| 2 | 0.8908 | 0.8665 | 2.04 |
| 3 | 0.9387 | 0.9158 | 1.621 |
| 4 | 0.9875 | 0.9804 | 0.782 |
| 5 | 0.9981 | 0.9965 | 0.332 |
| 6 | 0.9988 | 0.9974 | 0.285 |
Start low. Increase it while adjusted R² improves noticeably and the curve stays sensible. Stop when the gains become tiny.
At least k + 1, but realistically several times that so the fit can be judged.
It’s the ordinary straight-line fit, the natural baseline to compare curves against.
Yes, in the sense that it’s linear in the coefficients. It uses the same least-squares machinery with x, x², x³ … as predictors.
Splines join several low-degree polynomials smoothly, so they bend where needed without the wild swings of one high-degree polynomial.
Add a polynomial trendline (up to order 6) to a scatter chart, or use =LINEST(y, x^{1,2,…,k}).
Because the extra coefficient improved the fit by less than you’d expect from adding a random variable. It’s a sign to stop.
Yes: the quadratic regression calculator finds the vertex, and the cubic one the turning and inflection points.
Related Tools
Linear relationship strength.
Linear correlation coefficient.
Rank correlation.
Regression fit quality.
Parabolic curve fit.
Third-degree polynomial fit.