Calculator: Quadratic regression

Enter the labelled inputs to calculate: Coefficient a; Coefficient b; Coefficient c; Coefficient of determination R².

Coefficient a
1
Coefficient b
2
Coefficient c
1
Coefficient of determination R²
1

How the calculation works

ŷ=ax²+bx+c; argmin Σ(yᵢ−ŷᵢ)²

Separate list values with spaces or semicolons and use a decimal point. Lists must contain 1–2000 finite numbers. Population formulas use the full weight sum, not a sample correction.

Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

Frequently asked questions

How is the result calculated?

ŷ=ax²+bx+c; argmin Σ(yᵢ−ŷᵢ)²

What assumptions apply?

Separate list values with spaces or semicolons and use a decimal point. Lists must contain 1–2000 finite numbers. Population formulas use the full weight sum, not a sample correction.

How precise are the displayed results?

Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

How we verified this calculator

The calculator is checked against 3 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Values (spaces or semicolons; decimal point) X = 1 2 3 4 5
Values (spaces or semicolons; decimal point) Y = 2.1 3.9 9.2 15.8 25.1
Coefficient a: 1.164285714
Coefficient b: -1.195714286
Coefficient c: 2
Coefficient of determination R²: 0.9992971358
2
Values (spaces or semicolons; decimal point) X = -2 -1 0 1 2 3
Values (spaces or semicolons; decimal point) Y = 9 2 1 3 10 18
Coefficient a: 1.910714286
Coefficient b: 0.1178571429
Coefficient c: 1.057142857
Coefficient of determination R²: 0.988040655
3
Values (spaces or semicolons; decimal point) X = 0 1 2 3
Values (spaces or semicolons; decimal point) Y = 1 3 9 19
Coefficient a: 2
Coefficient b: 3.552713679e-15
Coefficient c: 1
Coefficient of determination R²: 1

How we test our calculators →

Also try:

Back to category →