Unit - 5 Forecasting
Unit - 5 Forecasting
Unit - 5 Forecasting
Forecasting is a basic tool to help managerial decision making. For example keeping inventory without knowing
that what the sales will be, buying equipment and machinery having no knowledge about the demand for the
product.
Forecasting can be obtained using variety of techniques which falls into two categories, qualitative techniques or
model and quantitative techniques or model. Qualitative models are used based on personal judgment and
involves quality like inclusions and experience as the base of forecast and are subjective by their nature. On the
other hand quantitative models are objective in nature and they employ numerical information as the basis of
forecasting.
Quantitative models include time series and casual model. The time series model attempt to predict the future
value using the historical data and the casual model are used where one variable is related to and therefore
dependent upon the value of same other variable.
Year(X) Sales(Y)
1999 82
2000 80
2001 90
2002 92
2003 83
2004 94
2005 99
2006 92
Year(X) Sales(Y) X XY X2 Y- (Y - )2
1999 82 0 0 0 82 0 0
2000 80 1 80 1 84 -4 16
2001 90 2 180 4 86 4 16
2002 92 3 276 9 88 4 16
2003 83 4 332 16 90 -7 49
2004 94 5 470 25 92 2 4
2005 99 6 594 36 94 5 25
2006 92 7 644 49 96 -4 16
712 28 2576 140 0 142
n=8
Y = 89
X = 322
∑Y = na + b∑X
∑XY = a∑X + b∑X2
712 = 8a + 28b …1
2576 = 28a + 140b …2
Multiply equation 1 by 5 and subtract equation 2 from it.
3560 = 40a + 140b
2576 = 28a + 140b
------------------------
984 = 12a
a = 82
Put a = 82 in equation 1
b=2
Y = 82 + 2X
Y2007 = 98
Y2008 = 100
To simplify the method of finding a and b, we need to change the decision of choosing X. If n is odd, then the
transformation is
X=
And if n is even, then the transformation is
X=
( )
Example
Fit a linear trend to the following data by least square method. Verify that ∑(Y-Ye) = 0. Also estimate the production
for the year 1999.
Year(X) Y
1990 18
1992 21
1994 23
1996 27
1998 16
Year(X) Y X XY X2 Y-
1990 18 -2 -36 4 20.6 -2.6
1992 21 -1 -21 1 20.8 0.2
1994 23 0 0 0 21 2
1996 27 1 27 1 21.2 5.8
1998 16 2 32 4 21.4 -5.4
105 0 2 10 0
∑Y = na + b∑X
105 = 5a + 0b
5a = 105
a = 21
Y = 21 + 0.2X
Y1999 = 21.5
Example
From the following data, find linear trend equation. Estimate the sales for year 1993 and find out sum of square of
deviation and also show sum of deviation is 0.
Year(X) Y
1994 550
1995 560
1996 555
1997 585
1998 540
1999 525
2000 545
2001 585
Year(X) Y X XY X2 Y- (Y - )2
1994 550 -7 -3850 49 554.155 -4.155 17.264
1995 560 -5 -2800 25 554.575 5.425 29.431
1996 555 -3 -1665 9 554.995 0.005 0.000025
1997 585 -1 -585 1 555.415 29.585 875.272
1998 540 1 540 1 555.835 -15.835 250.747
1999 525 3 1575 9 556.255 -31.255 976.875
2000 545 5 2725 25 556.675 -11.675 136.306
2001 585 7 4095 49 557.095 27.905 778.689
4445 0 35 168 0 3064.5838
∑Y = na + b∑X
4445 = 8a + 0b
8a = 4445
a = 555.625
Y = 555.625 + 0.21X
Y1993 = 553.735
Goodness of fit
To determine how well the regression line obtain fits the given data points, we consider 3 components of
variations. The sum of square of the deviation of the different observations from their arithmetic mean is called
the total variation. It is given by ∑( − ) . It shows extent to which the arithmetic mean fails to describe the
data, this is made up of two parts (1) The variation that is explained by the line of relationship called explained
variance which is given by ∑( − ) (2) The variation which is not explained by the line is called unexplained
variance which is given by ∑( − ) . The former is calculated as the sum of square of deviation of difference
points on the line from the arithmetic mean, whereas the latter is found by adding the square of deviation of
different observations from corresponding points on the line. Thus
Total variation = ∑( − ) = Sum of square of total (SST)
Explained variation = ∑( − ) = Sum of regression (SSR)
Unexplained variation = ∑( − ) = Sum of error (SSE)
A fit is good if, SSE is small and SSR is large. The ratio of explained variation to total variation is called coefficient
of determination which is given by = . On the other hand the ratio of unexplained variation to total
variation is called coefficient of non-determination which is given by 1 − = . It tells what proportion of
the total variation in Y which is not explained by X.
= 140
=6
= 36
∑
b=∑ = 11.25
a= − = 72.5
YC = 72.5 + 11.25x
Y10 = 185
SST = 4928
SSR = 4050
SSE = 878
R2 = 0.82
1-R2 = 0.18
This implies that the number of salesman employed explains about 82% of variation in the number if car booked. All
other factors combined can explain at most 18% of the variation, thus we may say that the linear relationship
between x and y is strong. The forecast of the booking of 185 cars, when 10 salespersons are employed is known as
point estimate of the variable Y. Such a point estimate is actually the expected value or mean of the distribution of
the possible value of Y. To measure the regression estimates, we need to compute standard error of estimate
∑( ) ∑ ∑ ∑
= or or = 10.48
Example
Given the following data, develop the estimating equation best described by this data. If an employee score 83 on the
aptitude test and had a prior experience of 7. What performance would be expected? Also test the goodness of fit.
Performance Evaluation Aptitude Test Score Prior Experience
28 74 5
33 87 11
21 69 4
40 69 9
38 81 7
46 97 10
Multiply equation 4 with 624 and subtract equation 5 after multiplying it by 236.
351312 = 389376b1 + 147264b2
446040 = 871548b1 + 147264b2
94728 = 482172b1
b1 = 0.197 = 0.2 (approx.)
b2 = 1.8
a = 4.6
Y = 4.6 + 0.2X1 + 1.8X2
SST = 401.34
SSR = 226.94
SSE = 165.08
R2 = 0.57
1-R2 = 0.43
Standard error of estimate
Example
Using the following data fit the desired regression equation. Estimate the sales Y, if X1 = 13000 and X2 = 7000. Also
check goodness of fit.
Y X1 X2
72 12 5
76 11 8
78 15 6
70 10 5
68 11 3
80 16 9
82 14 12
65 8 4
62 8 3
90 18 10
Multiply equation 1 with 123 and subtract equation 2 after multiplying it by 10.
91389 = 1230a + 15129b1 + 7995b2
93820 = 1230a + 16150b1 + 8690b2
2431 = 1021b1 + 695b2 …5
Multiply equation 4 with 695 and subtract equation 5 after multiplying it by 865.
1462975 = 483025b1 + 601175b2
2102815 = 883165b1 + 601175b2
639840 = 400140b1
b1 = 1.6
b2 = 1.15
a = 47.15
Y = 47.15 + 1.6X1 + 1.15X2
When X1 = 13 and X2 = 7, Y = 76
SST = 656.1
SSR = 631.5325
SSE = 25.5625
R2 = 0.96
1-R2 = 0.04
Example
The price of commodity during year 2001-06 are given below fit a second degree parabola and estimate the price for
the year 2007.
Year Price
2001 100
2002 107
2003 128
2004 140
2005 181
2006 192
Year(t) Y X X2 X3 X4 XY X2Y
2001 2 -4 16 -64 256 -8 32
2002 6 -3 9 -27 81 -18 54
2003 7 -2 4 -8 16 -14 28
2004 8 -1 1 -1 1 -8 8
2005 10 0 0 0 0 0 0
2006 11 1 1 1 1 11 11
2007 11 2 4 8 16 22 44
2008 10 3 9 27 81 30 90
2009 9 4 16 64 256 36 144
74 0 60 0 708 51 411
74 = 9a + 60c …1
51 = 60b …2
411 = 60a + 708c …3
b = 0.85
Year Y X X2 X3 X4 XY X2Y
2001 238.3 -7 49 -343 2401 -1668.1 11676.7
2011 252 -5 25 -125 625 -1260 6300
2021 251.2 -3 9 -27 81 -753.6 2260.8
2031 278.9 -1 1 -1 1 -278.9 278.9
2041 318.5 1 1 1 1 318.5 318.5
2051 361 3 9 27 81 1083 3249
2061 439.1 5 25 125 625 2195.5 10977.5
2071 547.9 7 49 343 2401 3835.3 26847.1
2686.9 0 168 0 6216 3471.7 61908.5
2686.9 = 8a + 168c …1
3471.7 = 168b …2
61908.5 = 168a + 6216c …3
b = 20.66
2686.9 = 8a …1
3471.7 = 168b …2
a = 335.8625