Curve Fitting Calculator
Choose a curve type and enter the x and y values of your points.
Numbers separated by commas.
The same number of numbers as the x values.
Try
Result
You entered
R²
Show the work
Least-squares quadratic fit
Choose , and so that the sum of the squared vertical gaps between the points and the curve is as small as possible. That leads to three linear equations, the normal equations.
Using
Sums for the normal equations
With points the sums are needed in exact fractions.
Solving the normal equations
Eliminating in exact fractions gives the coefficients of the best-fitting parabola.
Coefficient of determination
is the share of the spread in that the curve explains; means every point lies on the curve.
Result
The best quadratic fit is .