Home · Statistics · Correlation & Regression · Cubic Regression Calculator

Cubic Regression Calculator

Cubic (third-degree polynomial) regression of y on x: fits ŷ = a + b·x + c·x² + d·x³ by least squares; the headline result is the cubic coefficient d.

Your figures

Example result — edit the figures to make it yours

-0.1111

Coefficients (constant first)5.142857, -2.924603, 1.321429, -0.111111
Leading coefficient (x^3)-0.111111
R-squared0.932171
Pairs (n)7

What this calculator does

Cubic (third-degree polynomial) regression of y on x: fits ŷ = a + b·x + c·x² + d·x³ by least squares; the headline result is the cubic coefficient d. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

ŷ = a + b·x + c·x² + d·x³, fitted by least squares; headline = d

The fit minimises the sum of squared residuals over the four coefficients.

A cubic can capture two bends (an S or N shape) in the relationship.

With few points a cubic can pass almost exactly through the data while meaning nothing — keep the point count well above the coefficient count.

Worked example

With the example inputs this page opens with, the result is -0.1111. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — the worked example in full
FigureValue
Result-0.1111
Coefficients (constant first)5.142857, -2.924603, 1.321429, -0.111111
Leading coefficient (x^3)-0.111111
R-squared0.932171
Pairs (n)7

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

What does the cubic term add over a quadratic?

A second bend: the curve can rise, flatten or fall, then change direction again. Processes with an inflection — adoption curves, dose responses — are the natural home of cubic fits.

My cubic coefficient is small. Does the term matter?

Judge it by the fitted curve and residuals, not the raw coefficient, whose size depends on the scale of x. Here d ≈ −0.111 bends the tail of the curve down noticeably across x = 1…7.

How does the Cubic Regression Calculator work?

Cubic (third-degree polynomial) regression of y on x: fits ŷ = a + b·x + c·x² + d·x³ by least squares; the headline result is the cubic coefficient d. X values · y values → Cubic coefficient d. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Cubic Regression Calculator need?

X values · y values → Cubic coefficient d. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.