2.1 Forecasting
2.1 Forecasting
1 FORECASTING DEMAND
PRACTICAL PROBLEMS
Three methods for describing trend are:
1. Moving average
2. Hand fitting, and
3. Least squares.
Question 1: MOVING AVERAGE: Shipments (in tons) of welded tube by an aluminum producer are
shown below:
Year 1 2 3 4 5 6 7 8 9 10 11
Tons 2 3 6 10 8 7 12 14 14 18 19
1 2 - -
2 3 11 3.7
3 6 19 6.3
4 10 24 8.0
5 8 25 8.3
6 7 27 9.0
Question 2: HAND FITTING OR HIGH/LOW METHOD: Use a hand fit line for the data given
belowand forecast tons for year 12
Year [X] 1 2 3 4 5 6 7 8 9 10 11
Tons [Y] 2 3 6 10 8 7 12 14 14 18 19
Answer 2: Select points some distance apart. A straight line connecting the values for years 3 and 8
might be a good free hand representation of the data. From this we can determine the slope and
intercept:
∆Y Y2−Y1 14 − 6
𝐒𝐥𝐨𝐩𝐞: b = = = 1.6 tons
∆X X2−X1 8−3
Intercept: a = 0.5 tons (Note: This is the estimated Y Value at X = 0 from graph.)
Equation: Yc = 0.5 + 1.6X (X = year, Y = tons)
For year 12: Yc = 0.5 + 1.6 (12) = 19.7 tons.
Question 3: LEAST SQUARES – INDIRECT METHOD: An investigation into the demand for color
TV sets in 5 towns has resulted in the following data:
Fit a linear regression of Y on X and estimate the demand for CTV sets for two towns with a
population of 10 lakhs and 20 lakhs.
X Y X2 XY
5 9 25 45
7 13 49 91
8 11 64 88
11 15 121 165
14 19 196 166
∑X = 45 ∑Y = 67 ∑X2 = 455 ∑XY = 655
X Y X2 XY
2001 -3 80 9 -240
2002 -2 90 4 -180
2003 -1 92 1 -92
2004 0 83 0 0
2005 +1 94 1 +94
2006 +2 99 4 +198
2007 +3 92 9 +276
n=7 ∑X = 0 ∑Y = 630 ∑X2 = 28 ∑XY = +56
Regression equation of Y on X
𝑌 = 𝑎 + 𝑏𝑋
To find the values of a and b
∑y 630
a= = = 90
𝑛 7
∑𝑥𝑦 56
𝑏= 2
= = 2
∑𝑥 28
Hence regression equation comes to Y = 90 + 2X. with the help of this equation we can project the
trend values for the next three years, i.e. 2008, 2009 and 2010.
Y2008 = 90 + 2(4) = 90 + 8 = 98(000) units
Y2009 = 90 + 2(5) = 90 + 10 = 100(000) units
Y2010 = 90 + 2(6) = 90 + 12 = 102(000) units.
X Y X2 XY
2004 3 -2 4 -6
2005 14 -1 1 -14
2006 36 0 0 0
2007 4 1 1 4
2008 33 2 4 66
n=5 ∑X = 90 ∑Y = 0 ∑X2 = 10 ∑XY = +50
Regression equation of Y on X: Y = a + bX
Regression equation of Y on X
∑𝑦 90
𝑎= = = 18
𝑛 5
∑𝑥𝑦 905
𝑏= = =5
∑𝑥 2 10
X Y X2 XY
9 12 81 108
5 20 25 100
8 15 64 120
5 10 25 50
3 5 9 15
30 62 204 393
Regression equation of Y on X
Y = a + bX
ΣY = na + bΣX
ΣXY = aΣX + bΣX2
Thus,
[1] 62 5a + b × 30
2004 1 18
2005 2 23
2006 4 32
2007 3 28
2008 10 38
2009 4 29
Estimate the Annual Sales when Expenditure on Advertising is ₹5 Crore.
Answer 8:
Years Expend. on Annual Sales
Advt.
X Y X2 XY
2004 1 18 1 18
2005 2 23 4 46
2006 4 32 16 128
2007 3 28 9 84
2008 10 38 100 380
2009 4 29 16 116
N=6 ∑X=24 ∑Y=168 ∑X2=146 ∑XY=772
24 ̅ 168
𝒀
̅=
𝑿 = 4 𝑎𝑛𝑑 = 28
6 6
Regression equation of Y on X: Y = a + bX
̅̅̅̅
∑𝑋𝑌 − 𝑛𝑿𝒀 772 − 6 × 4 × 28
𝑏 = = = 2
2
∑𝑋 − 𝑛𝑿̅ 2 146 − 6 × 42
𝑎=𝒀̅ − 𝑏𝑿 ̅ = 28 – 2 × 4 = 20
Y X 𝑋2 XY
2002 90 -3 9 -270
2003 100 -2 4 -200
2004 102 -1 1 -102
2005 9 0 0 0
2006 104 1 1 104
2007 109 2 4 218
2008 102 3 + 306
n=7 ∑Y = 700 ∑X = 0 ∑𝑋 2 = 28 ∑XY = 56
Regression equation of Y on X
𝑌 = 𝑎 + 𝑏𝑋
For calculation the values of a and b
∑𝑌 700
𝑎 = = = 100
𝑛 7
∑𝑋𝑌 56
𝑏 = = 2
∑𝑋 2 28
Hence, regression equation is a + bX or 100+ 2X. With the help of this equation, the trend value for
2010 can be calculated as follows
𝑌2010 = 100 + 2(5) = 110 𝑢𝑛𝑖𝑡𝑠.
2004 13
Answer: Let ‘X’ represent year and ‘T’ represent export. In order to use the normal equations for the
least square line, we need ∑X, ∑Y, ∑XY and ∑𝑋 2 . To simplify the calculation arrange X in such a way
that ∑X = 0.
Therefore, we call the year 2008 as 0, 2007 as -1 and 2009 as +1 and likewise for the other years in the
data. The rearrangement is hown in the table as follows;
X Y 𝑿𝟐 XY
-4 13 16 -52
-3 20 9 -60
-2 20 4 -40
-1 28 1 -28
0 30 0 0
1 32 1 32
2 33 4 66
3 38 9 114
4 43 16 172
∑X = 0 ∑Y = 257 ∑𝑋 2 = 60 ∑XY = 204
The normal equations are:
∑Y = 𝑎0 N + 𝑎1 ∑X
∑XY = 𝑎0 X + 𝑎1 ∑𝑋 2
∑X = 0 and ∑Y = 𝑎0 N and ∑XY = 𝑎1 ∑𝑋 2
Therefore,
∑Y 257
𝑎0 = = = 28.56
𝑁 9
∑XY 204
𝑎1 = = = 3.4
∑𝑋 2 60