Quadratic Regression — Parabola Fitting
Fit y = ax² + bx + c. Vertex, R², linear comparison, residuals, F-test.
Why This Statistical Analysis Matters
Why: Quadratic models capture curvature. Used for projectiles, revenue, dose-response.
How: Enter (x,y) pairs. Get coefficients, vertex, R², F-test vs linear.
- ●x_v = -b/(2a)
- ●R² = 1 - SS_res/SS_tot
- ●F-test: quad vs linear
Quadratic Regression — Parabola Fitting
Fit y = ax² + bx + c to your data. Get vertex, axis of symmetry, R², comparison with linear, residuals, and F-test.
Real-World Scenarios — Click to Load
| x | y | |
|---|---|---|
Calculation Breakdown
Scatter with Parabola & Linear Fit
Residuals Plot
For educational and informational purposes only. Verify with a qualified professional.
📈 Statistical Insights
Parabola
— Model
-b/(2a)
— Vertex
Variance
— Fit
Key Takeaways
- • Model: y = ax² + bx + c. Vandermonde X: [1, x, x²]. Normal equations: (X'X)β = X'y. Solved via Gaussian elimination.
- • Vertex: x_v = −b/(2a), y_v = c − b²/(4a). Axis of symmetry: x = x_v.
- • Opens: Up if a > 0, down if a < 0. Discriminant Δ = b² − 4ac.
- • Roots: x = (−b ± √Δ)/(2a). Real roots if Δ ≥ 0.
- • R²: 1 − SS_res/SS_tot. Adjusted R² = 1 − (1−R²)(n−1)/(n−3) for 3 parameters.
- • F-test: F = ((SS_res_linear − SS_res_quad)/1) / (SS_res_quad/(n−3)). Tests if quadratic improves fit.
Did You Know?
How Quadratic Regression Works
1. Normal equations
3×3 system: [Σ1, Σx, Σx²; Σx, Σx², Σx³; Σx², Σx³, Σx⁴] β = [Σy, Σxy, Σx²y]. Solve via Gaussian elimination.
2. Vertex and axis
Vertex at x = −b/(2a). Parabola opens up if a > 0, down if a < 0. Axis of symmetry through vertex.
3. Roots
Quadratic formula: x = (−b ± √(b²−4ac))/(2a). Real roots when discriminant ≥ 0.
4. R² and SE
R² = 1 − SS_res/SS_tot. SE = √(SS_res/(n−3)). Compare with linear R² to see improvement.
5. F-test
F = (SS_res_linear − SS_res_quad) / (SS_res_quad/(n−3)). Tests H₀: quadratic term adds nothing. Large F = quadratic helps.
Expert Tips
Minimum sample size
Use at least 4 points for quadratic. More points reduce overfitting.
Check vertex
Vertex marks min or max. For revenue curves, vertex gives optimal price.
Compare with linear
If R²_quad only slightly higher than R²_linear, linear may suffice.
Extrapolation
Parabolas diverge outside data range. Avoid extrapolation.
Formulas Reference
y = ax² + bx + c
Vertex: x_v = −b/(2a), y_v = c − b²/(4a)
Discriminant: Δ = b² − 4ac
Roots: x = (−b ± √Δ)/(2a)
R² = 1 − SS_res/SS_tot
Adjusted R² = 1 − (1−R²)(n−1)/(n−3)
SE = √(SS_res/(n−3))
F = ((SS_res_lin − SS_res_quad)/1) / (SS_res_quad/(n−3))
Frequently Asked Questions
When should I use quadratic vs linear regression?
Use quadratic when the relationship shows curvature (parabola, one hump or valley). Linear for roughly straight relationships.
What does a negative a (x² coefficient) mean?
Parabola opens downward. Vertex is a maximum. Common in revenue vs price, efficiency vs speed.
How do I interpret the vertex?
Vertex is the min (if opens up) or max (if opens down). For revenue curves, vertex gives optimal price.
What is the F-test for?
Tests whether the quadratic term significantly improves fit over linear. Large F and small p-value mean quadratic is justified.
Can I use this for extrapolation?
Cautiously. Parabolas can diverge quickly outside the data range. Prefer interpolation.
Quadratic Regression by the Numbers
Official Data Sources
Applications
| Application | Interpretation |
|---|---|
| Projectile motion | Height vs time: parabola. Vertex = max height. |
| Revenue vs price | Inverted U. Vertex = optimal price. |
| Temperature vs yield | Optimal temp at vertex. |
| Dose-response | Inverted U. Vertex = optimal dose. |
| Age vs performance | Peak performance at vertex. |
| Altitude vs pressure | Pressure decay with altitude. |
| Speed vs fuel | Optimal speed at vertex. |
Disclaimer: Quadratic regression can overfit with few points. Use adjusted R² and F-test to assess whether quadratic improves over linear. Avoid extrapolation.
Related Calculators
Cubic Regression Calculator
Fit a cubic polynomial y = ax³ + bx² + cx + d to data using least squares. R², prediction, residuals, and comparison with linear and quadratic fits.
StatisticsPolynomial Regression Calculator
Fit polynomial of degree 1–6 to data. Compare models with R², adjusted R², AIC/BIC. Visualize fits and residuals.
StatisticsLinear Regression Calculator
Full simple linear regression: y = a + bx. Slope, intercept, R², standard errors, t-tests for coefficients, confidence and prediction intervals, ANOVA table.
StatisticsExponential Regression Calculator
Fit y = ae^(bx) or y = ab^x to data using log-linear regression. R², prediction, doubling/halving time, and residuals.
StatisticsCoefficient of Determination Calculator (R-squared)
Computes R², adjusted R², and related measures of fit from data or summary statistics. Explains how much variance in Y is explained by X.
StatisticsAbsolute Uncertainty Calculator
Computes absolute uncertainty, relative (percentage) uncertainty, and propagates uncertainties through arithmetic operations. Essential for physics...
Statistics