Class 6
Class 6
E-Class on 11/04/2020
By Ms.Komal Chhikara
Learning Goals:
This is also known as straight line method. This method is most commonly used in research to
estimate the trend of time series data, as it is mathematically designed to satisfy two conditions.
They are:
The straight line method gives a line of best fit on the given data. The straight line which can
satisfy the above conditions and make use of regression equation is given by:
Yc = a+ bX
where X represents time variable, Y. is the dependent variable for which trend values are to be
calculated, a and b are the constants of the straight line to be found by the method of least
squares. Constant a is the Y-intercept.
The values of constant, ‘a’ and ‘b’ are determined by the following two normal equations.
∑𝑌 = 𝑛𝑎 + 𝑏∑𝑌 − − − − − (1)
The process of finding values of constants a and b can be made simple by using a shortcut
method, that is, by taking the origin year in such a way that it gives the toal of ‘x’ (∑x) equal to
‘zero’. This becomes possible if we take the median year as origin period. Thus, the negative
values in the first half of the series balance out the positive values in the second half. Thus, the
earlier normal equation shall be changed as follows, with reference to ∑x = 0.
Therefore, the values of two constants are obtained by the following formulae:
∑𝑦 ∑ 𝑥𝑦
𝑎= and 𝑏 =
𝑁 𝑥2
It is to be noted that when the number of time units involved is even, the point of origin will have
to be chosen between the two middle time units.
Merits:
(i) This is a mathematical method of measuring trend and is free from subjectivity.
(ii) It provides the line of ‘best fit’ because it is this line from where the sum of positive and
negative deviation is Zero and sum of the square of deviation is least,
(iii) It enables to compute the trend values for the whole time period.
(iv) The trend equation obtained by using least square method can be used to estimate or predict
the values of the variable for any given time period‘t’ in future and the predicted values are
reliable.
Demerits:
(i) This method is time consuming as the tedious calculations are involved under this method.
(ii) All the calculation needs to be re-done in case of adding/changing of even a single
observation.
(iii) Future prediction made by this method is based on long term variations and completely
ignore the cyclical, seasonal and irregular fluctuations.
Illustration : Fit a straight line trend by the method of least square from the following data and
find the trend values.
Solution
We have n = 5, n is odd
a= Σy/n = 460/5 = 92
b= Σxy/ Σ𝑥 2 = 100/10 = 10
⇒ Yc (1958) = 92 + 10(−2) = 92 − 20 = 72
⇒ Yc (1959) = 92 + 10(−1) = 92 − 10 = 82
⇒ Yc (1960) = 92 + 10(0) = 92 − 0 = 92
⇒ Yc (1962) = 92 + 10(2) = 92 + 20
Thus we have,
Illustration. The sales of a commodity (in ‘000 of Rs.) are given below:
(i) Using the method of least squares fit a straight line trend equation to the data.
(iii) Obtain the trend value for the year 2014-2020 and show that the sum of difference between
actual and trend value is equal to zero.
(iv) What are the expected sales for the year 2025.
Solution:
In the given problem n= No. of year covered = 7 (odd). By taking 2017 (i.e. the middle year) as
origin and X unit as one year, we get the following:
a= ∑Y/n = 616/7=88
(i) Hence the equation of the straight line trend is: Yc= 88 + 2.5X with origin :
2017; X units: one year and Y units : Annual sales (in ‘000 of Rs.).
ii) The average annual change in the sales = b = 2.5 X 1000 = Rs. 2,500
(iii) The trend value for the year 2014-2020 are obtained by substituting X - -3, -2, -1, 0, 1, 2, 3
in straight line trend equation. These have been shown in the second last column of the above
table. The last column shows that the sum of difference between actual and trend value is equal
to zero.
Thus the expected sales for the year 2025 are Rs. 1, 08,000.
Illustration: The decision making body of a fertilizer firm producing fertilizer wants to predict
future sales trend for the year 2006 and 2008 based on the analyses of its past sales pattern. The
sales of the firm for the last 7 years, for this purpose are given below:
Solution: To find the straight line equation ( Yc= a + bx) for the given time series data, we have
to substitute the values of already arrived expression, that is:
∑𝒚 ∑ 𝒙𝒚
𝒂= and 𝒃 =
𝑵 𝒙𝟐
In order to make the total of x = ‘zero’, we must take median year (i.e. 2001) as origin. Study the
following table carefully to understand the procedure for fitting the straight line.
∑𝒚 ∑ 𝒙𝒚
𝒂= = 609/7= 87 and 𝒃 = = 117/28= 4.18
𝑵 𝒙𝟐
From the above equation, we can also find the monthly increase in sales as follows:
The reason for this is that the trend values increased by a constant amount ‘b’ every year. Hence
the annual increase in sales in 4:18 thousand tons.
Estimation of sales for 2006, ‘x’ would be 5 (because for 2004 ‘x’ was 3)