Home > Statistical Methods calculators > Fitting second degree parabola - Curve fitting calculator

Method and examples
Fitting second degree parabola - Curve fitting (Method of Least Squares)
Type your data, for seperator you can use space or tab
OR
Rows :
XY
Find Fitting of a
Also Estimate y for x =
Mode =
Decimal Place =
log(x)/ln(x) Option =
SolutionHelp
Fitting second degree parabola - Curve fitting calculator
1. Fit a straight line y = a + bx using the following data
x54321
y12345

2. Fit a straight line to the following data on production.
Year19961997199819992000
Production4050625860

3. Fit second degree parabola equation y=a+bx+cx2 using the following data.
x12108642
y654321

4. Fit cubic equation y=a+bx+cx2+dx3 using the following data.
x12108642
y654321


Example
1. Calculate Fitting second degree parabola - Curve fitting using Least square method
XY
1-5
2-2
35
416
531
650
773


Solution:
The equation is y=a+bx+cx2 and the normal equations are

y=an+bx+cx2

xy=ax+bx2+cx3

x2y=ax2+bx3+cx4


The values are calculated using the following table
xyx2x3x4xyx2y
1-5111-5-5
2-24816-4-8
35927811545
416166425664256
53125125625155775
6503621612963001800
7734934324015113577
---------------------
x=28y=168x2=140x3=784x4=4676xy=1036x2y=6440


Substituting these values in the normal equations
7a+28b+140c=168

28a+140b+784c=1036

140a+784b+4676c=6440


Solving these 3 equations,
Total Equations are 3

7a+28b+140c=168(1)

28a+140b+784c=1036(2)

140a+784b+4676c=6440(3)



Select the equations (1) and (2), and eliminate the variable a.

7a+28b+140c=168×428a+112b+560c=672
28a+140b+784c=1036×128a+140b+784c=1036

-28b-224c=-364(4)




Select the equations (1) and (3), and eliminate the variable a.

7a+28b+140c=168×20140a+560b+2800c=3360
140a+784b+4676c=6440×1140a+784b+4676c=6440

-224b-1876c=-3080(5)




Select the equations (4) and (5), and eliminate the variable b.

-28b-224c=-364×8-224b-1792c=-2912
-224b-1876c=-3080×1-224b-1876c=-3080

84c=168(6)




Now use back substitution method
From (6)
84c=168

c=16884=2

From (4)
-28b-224c=-364

-28b-224(2)=-364

-28b-448=-364

-28b=-364+448=84

b=84-28=-3

From (1)
7a+28b+140c=168

7a+28(-3)+140(2)=168

7a+196=168

7a=168-196=-28

a=-287=-4

Solution using Elimination method.
a=-4,b=-3,c=2

Now substituting this values in the equation is y=a+bx+cx2, we get

y=-4-3x+2x2




Share this solution or page with your friends.
 
 
Copyright © 2025. All rights reserved. Terms, Privacy
 
 

.