Skip to content

Advertisement
Advertisement unavailable offline
The page content remains available.

Polynomial regression calculator

Fit a second- or third-degree curve to paired X and Y observations.

R²: —

Fill in the fields above — the result is computed on this page.

Pairs
—
Degree
—
b₀
—
b₁
—
b₂
—
b₃
—
Adjusted R²
—
RMSE
—
SSE
—

Fit and residuals

Row X Y Ŷ Residual
Fill in the fields above — the result is computed on this page.
What do these numbers mean?
  • Compare models using residuals and out-of-sample data as well.
  • A higher degree may fit noise rather than the underlying relationship.

Extrapolation outside the X range can quickly become unrealistic. The calculator supports one predictor and degree 2 or 3; it does not establish causality.

How do I use this page?
  1. Paste X and Y pairs in matching order.
  2. Choose degree 2 or 3.
  3. Review coefficients, R², RMSE and residuals.

What this page does not do: Extrapolation outside the X range can quickly become unrealistic. The calculator supports one predictor and degree 2 or 3; it does not establish causality.

Further reading

Theory — what is polynomial regression?

Polynomial regression extends the linear model with additional powers of X. A quadratic model has the form ŷ = b₀ + b₁x + b₂x², while a cubic version adds a b₃x³ term. Coefficients are found using least squares, and the fit quality is summarised by R², which shows how much of Y's variability the model explains. Choosing a higher degree increases the risk of overfitting, so the decision should rely on validation data rather than training R² alone.

Frequently asked questions

When should I choose degree 3?
When the relationship and validation evidence support it and a quadratic model leaves systematic residuals.
Does a high R² guarantee useful predictions?
No. A high in-sample R² can coexist with overfitting and poor predictions outside the observed range.

See also

← All calculators

Advertisement
Advertisement unavailable offline
The page content remains available.
Offline app and draw notifications

My saved selections

Selections saved only in this browser. Numbers are shown exactly as saved; this is not a lottery ticket.

Open the My saved selections hub
Restore with preview

Restore in the hub: review the file and confirm first. Both old backups and the complete selections + journal backup are supported. Nothing is uploaded.