Download presentation
Presentation is loading. Please wait.
Published byKaija Parviainen Modified over 5 years ago
1
In practice,the method of least squares is widely used
In practice,the method of least squares is widely used. This is the mathematical method with the help of which a Trend Line is fitted to the data in such a way that the two conditions are satisfied ie. 1 πβππ =0 2 (πβππ) 2 is minimum Method Of Least Square
2
How to detremine constants βaβand βbβ
Sums up equation, we get π=ππ+π π Now multiply eqn.by X we get ππ=π π+π π 2 N denotes the number of years. The equation is the summation of equation whereas equation is the summation of X multiplied to equation
3
Substitute the value of b in any one of the equation and we get 26
Substitute the value of b in any one of the equation and we get 26.9=6a+15(1.7) a = thus π¦ π = X By substituting the diff values of X in this trend line, the computed values of Y (i.e. π¦ π ) can be calculated X=0 π π =π.ππ+ π.π π =π.ππ X=1 π π =π.ππ+ π.π π =π.ππ X=2 π π =π.ππ+ π.π π =π.ππ X=3 π π =π.ππ+ π.π π =π.ππ X=4 π π =π.ππ+ π.π π =π.ππ X=5 π π =π.ππ+ π.π π =π.ππ
4
Variable X can be measured from any point of time in origin such as first year. The calculation,ofcourse,becomes simple when the mid point in time is taken as the origin because in that case the negative values in the half of the series balance out the positive values in the second half so that π=0 , the equation (ii) and (iii) can be written as π=ππ a = π π = Y And ππ=π π 2 Or b = ππ π 2 The constant βaβ gives the arithmetic mean of Y and the βbβ shows the rate of change
5
Direct method to fit the Straight Line Trend
Example: fit a straight line to the following data taking X as the independent variable Solution:the straight line to be fitted to the data is Y = a+bX As there are two unknown a and b so we should have two normal equation i.e. Direct method to fit the Straight Line Trend X: 1991 1992 1993 1994 1995 1996 Y: 1 1.8 3.3 4.5 6.3 10
6
π=ππ+π π ππ=π π+π π 2 X Y XY πΏ π π π 1 0.23 1.8 1.93 2 3.3 6.6 4 3.63
1 0.23 1.8 1.93 2 3.3 6.6 4 3.63 3 4.5 13.5 9 5.33 6.3 25.2 16 7.03 5 10 50 25 8.73 πΏ=ππ π=ππ.π πΏπ=ππ.π πΏ π
7
Solving equation (i) and (ii) 26. 9 = 6a+15b 97
Solving equation (i) and (ii) 26.9 = 6a+15b 97.1 = 15a+55b Multiply eqn(i) by (5) and eqn. (ii) by (2) and subtract = 30a + 75b = 30a + 110b 35b = 59 b = = 1.7
8
By substituting the diff values of X in this trend line, the computed values of Y are calculated above. The straight line fitted to above data is represented with the help of a graph
9
Short Cut Method of Least Squares (odd number of items)
There is a short cut method which simplifies the above above procedure of trend computation. But it it can be applied if the number of items is odd. The middle year is taken as the year of origin and X value equal to zero is given to it. A minus sign is given to the X values prior to the year and a plus sign to those after the origin year. This technique is explained by the following example :
10
Eliminate the trend. What components of the series are thus left over?
Year 2001 2002 2003 2004 2005 2006 2007 production 77 88 94 85 91 98 90 Fit a straight line by least squares method and tabulate the trend value Eliminate the trend. What components of the series are thus left over? What is the monthly increase in the production of sugar Solution: by taking middle year in the case of odd number of years the sum of the X values will be zero. This helps us in modifying the following normal equations. The set of two normal equations is Y = Na+ b π ππ=π π+π π 2
11
Year X Y XY πΏ π π π 2001 -3 77 -231 9 83 2002 -2 88 -176 4 85 2003 -1 94 -94 1 87 2004 89 2005 91 2006 2 98 196 93 2007 3 90 270 95 N=7 π=0 π=623 ππ=56 π 2 =28
12
π=ππ β΄π π=0 ππ=π π 2 β΄π π=0 Substituting the values calculated in the table we get, 623= 7a or a = =89 56= 28b or b = = 2 Now the straight line trend cane be written as π π =89+2π
13
The computed trend values will be
X = -3 π π =ππ+π βπ = 83 X = -2 π π =ππ+π βπ = 85 X = -1 π π =ππ+π βπ = 87 X = 0 π π =ππ+π π = 89 X = 1 π π =ππ+π π = 91 X = 2 π π =ππ+π π = 93 X = 3 π π =ππ+π π = 95
14
(iii) The monthly increase in the production of sugar is 2 12 =0.167
(ii) Components of time series are : (i) secular trend (ii) seasonal variations (iii) cyclical variations and (iv) irregular or random variations. When secular trend is eliminated from the time series data, we are left with seasonal, cyclical and random fluctuations (iii) The monthly increase in the production of sugar is =0.167
16
Thank You
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.