Home > Statistical Methods calculators > Fitting a straight line - Curve fitting calculator

 Solve any problem (step by step solutions) Input table (Matrix, Statistics)
Mode :
SolutionHelp
Solution will be displayed step by step (In 2 parts)
Solution
Problem: Fit a straight line {{1996,1997,1998,1999,2000},{40,50,62,58,60}} [ Calculator, Method and examples ]

Solution:
Your problem -> Fit a straight line {{1996,1997,1998,1999,2000},{40,50,62,58,60}}

Straight line equation is y = a + bx.

The normal equations are
sum y = an + b sum x

sum xy = a sum x + b sum x^2

 X y x = X - 1998 x^2 x*y 1996 40 -2 4 -80 1997 50 -1 1 -50 1998 62 0 0 0 1999 58 1 1 58 2000 60 2 4 120 --- --- --- --- --- 9990 270 0 10 48

Substituting these values in the normal equations
270=5a+0b

48=0a+10b

Solving these two equations using Elimination method,
5a=270

a=54

and 10b=48

Solution provided by AtoZmath.com
Any wrong solution, solution improvement, feedback then Submit Here
Want to know about AtoZmath.com and me