Least Square Method
Least Square Method
Least Square Method
In this method, an algebraic equation is fitted to the given data points. This equation may be
Linear or Non-Linear depends upon the pattern of time series graph.
NOTE: If we are using Linear Equation, then we say that Linear Fitted Least-Square Method
and if we are using the Quadratic Equation then we say that Quadratic Fitted Least-Square
Method.
Ŷ = a + b X --------------- (1)
∑Y = na + b ∑X
and ∑XY = a ∑X + b ∑X2
Year 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011
Price 7.5 7.8 8.2 8.2 8.4 8.5 8.7 9.1 9.3 9.7 9.9
Find a least Square (Linear Fitted) Method to compute the trends values and also find them.
Solution
Ŷ = a + b X --------------- (1)
∑Y = na + b ∑X ---------------- (a)
and ∑XY = a ∑X + b ∑X2 --------- (b)
Year 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010
Price 7.5 7.8 8.2 8.2 8.4 8.5 8.7 9.1 9.3 9.7
Find a least Square (Linear Fitted) Method to compute the trends values and also find them.
Solution
Ŷ = a + b X + c X2 ----------------- (1)
∑Y = na + b∑X + c∑X2
∑XY = a∑X + b∑X2 + c ∑X3
∑X2Y = a∑X2 + b∑X3 + c∑X4
EXP: Fit a Second degree (Quadratic) Fitted Least-Square Method (Curve) for the given data:
Solution
YEAR Y X XY X2Y X2 X3 X4
2001 13 -2 -26 52 4 -8 16
2002 24 -1 -24 24 1 -1 1
2003 39 0 0 0 0 0 0
2004 65 +1 65 65 1 +1 1
2005 106 +2 212 424 4 +8 16
∑Y= 247 ∑X = 0 ∑XY=227 ∑X2Y=565 ∑X2=10 ∑X3 = 0 ∑X4=34
Ŷ = a + b X + c X2 ----------------- (1)
(a) implies that, 247 = 5a + b(0) + c(10) => 247 = 5a + 10c -------- (*)
(b) implies that, 227 = a(0) + b(10) + c(0) => 227 = 10b => b = 227/10 = 22.7
(c) implies that, 565 = a(10) + 22.7(0) + c(34) => 565 = 10a + 34c ------- (**)