Polynomial Regression Calculator

Fit a least-squares polynomial of degree one through six and calculate predicted values.

Result
—

How to calculate

Fit the polynomial that minimizes the sum of squared residuals. Use the resulting coefficients to predict Y and compare the fitted and observed values.

Worked example

Use X values -2, -1, 0, 1, 2 · Matched Y values 13, 6, 3, 4, 9 · Degree (1 through 6) 2. The result is ŷ = 2x^2 − x + 3.

Input and result notes

Enter matched X and Y lists in the same order. The fit needs at least one more distinct X value than its degree.

Omni's statistics reference

Related calculators