You are on page 1of 6

Forecasting Using Linear regression

Y = a+bx (straight line equation)


Where
Y = Dependent variable
X = Independent variable
a= constant (Y-intercept)
b=Constant (slope of the straight line)

• Linear regression is a model that uses least squares method to identify the relationship
between an independent variable and one or more dependent variables.
• In simple regression there is one independent variable and in multiple regression there
are more than one independent variables.
• In simple regression the dependent variable is a function of one independent variable
and therefore the theoretical relationship is the straight line.

Where

Also

Co –efficient of correlation

1) Café coffee produces commercial coffee cups that are sold all over the world. The company is
operating at near full capacity for over a year. Plant manager thinks the sales growth will
continue and he wants to develop long range forecast to help the plant facility requirement for
the next 3 years. Sales records for the past 10 years have been compiled.
Year 1 2 3 4 5 6 7 8 9 10
Annual sales 1000 1300 1800 2000 2000 2000 2200 2600 2900 3200
(000’s of units)

Solution:
X -> Year ; Y-> Annual Sales (000’s of units)

X Y XY X2
1 1,000 1,000 1
2 1,300 2,600 4
3 1,800 5,400 9
4 2,000 8,000 16
5 2,000 10,000 25
6 2,000 12,000 36
7 2,200 15,400 49
8 2,600 20,800 64
9 2,900 26,100 81
10 3,200 32,000 100
55 21,000 1,33,300 385

Y = a+bx

Y11 = 913.33 + 215.75 (11) = 3286.67 (000’s of units)


Y12 = 913.33 + 215.75 (12) = 3502.42 (000’s of units)
Y13 = 913.33 + 215.75 (13) = 3718.18 (000’s of units)

For 11, 12, 13 years the forecasted values are 3287, 3502 & 3718 respectively.

2) Jack the general manager of precession engineering corporation thinks that his firms
engineering services supplied to high-way construction firm are directly related to the amount
of highway construction contracts released in his geographic area. Jack asked Mr.Malya one of
his engineers to perform a simple linear regression analysis on historical data.
a) Develop a regression equation for predicting the level of demand.
b) Use the regression equation to predict the level of demand for the next four quarters for
which the amount of contracts released are 260, 290, 300 & 270 (thousands)
c) Determine how closely demand is related to the amount of construction released.

Year Quarter Sales (000’s) Total amt of contract released (000’s)


1 Q1 8 150
Q2 10 170
Q3 15 190
Q4 09 170
2 Q1 12 180
Q2 13 190
Q3 12 200
Q4 16 220

Solution:
Linear regression equation; Y= a+bX
Y- Sales; X- Total amt of contract released.
Y X XY Y2 X2
8 150 1200 64 22500
10 170 1700 100 28900
15 190 2850 225 36100
9 170 1530 81 28900
12 180 2160 144 32400
13 190 2470 169 36100
12 200 2400 144 40000
16 220 3520 256 48400
95 1470 17830 1183 273300

a) Regression equation for predicting the level of demand


Y = -9.671 + 0.117x

b) Level of demand for next 4 quarters


Y31 = -9.671 + 0.117(260) = 20.815 thousand = 20,815 units
Y32 = -9.671 + 0.117(290) = 24.333 thousand = 24,333 units
Y33 = - 9.671 + 0.117(300) = 25,506 thousand = 25,506 units
Y34 = -9.671 + 0.117(270) = 21.988 thousand = 21,988 units

c) Determination of how class the demand is related to amount of construction revealed.

Co-efficient of correlation (r)


It explain the relative importance of the relationship between the ‘Y’ and ‘X’
Sign of ‘r’ shows the direction of the relationship and the absolute value of ‘r’ shows the
strength of relationship.
In problem; r=0.89, this means that there is strong positive relationship between the Number of
contracts released and sales.
Co-efficient of determination (r2)
It explains how much of the total variation in the dependent variance (y) defined is explained by
(x) independent variable.

In problems; r2=0.79 – 80%. This means that amount of contracts released (x) explain 80% of
variation in sales of precision instruments Remaining 20% of the variation can be attributed to
other causal factors.

3) The sales of products for the next 10 weeks are below


Week 1 2 3 4 5 6 7 8 9 10
Sales 700 724 720 728 740 742 758 750 770 775
(units)
Determine the equation for trend line and predict sales for 11th 12th week.

Solution:
X-Weeks; Y-Sales.
X Y XY X2
1 700 700 1
2 724 1448 4
3 720 2160 9
4 728 2912 16
5 740 3700 25
6 742 4452 36
7 758 5306 49
8 750 6000 64
9 770 6930 81
10 775 7750 100
55 7407 41358 385

Y = a+bx

11th week; y11 = 699.4+7.509(11) = 782 units


12th week; y12 = 699.4 + 7.509 (12) = 789.5 units
4) The sales of the product and its advertising expenditure for the past 6 years are as follows.
Sales 2 3 2.5 2 2 3.5
(lakhs)Rs
Advertising 1 3 4 2 1 7
(lakhs)
Determine the sales for the next 2 years if the advertising expenditure is Rs 6 & 7 lakhs also
determine to what extent advertising expenditure can boost the sales.
Solution:
X→ Advertising expenditure; Y → Sales
X Y XY X2 Y2
1 2 2 1 4
3 3 9 9 9
4 2.5 10 16 6.25
2 2 4 4 4
1 2 2 1 4
7 3.5 24.5 49 12.25
18 15 51.5 80 39.5

Y = a+bx

When X = 6 lakhs; Y = 1.75+0.25 (6) =3.25 lakhs


When X = 7 lakhs; Y = 1.75+0.25 (7) = 3.5 lakhs

r= 0.901; this means that there is strong & positive relationship between sales & advertising
expenditure.
r2 = 0.8125; this means that the variation in the sales can be attributed to an extent of 81.25% to
the variation in advertising expenditure.

5) A manufacturer of tricycles in the age of 2 to 4 years commissioned a market research to


understand the factors that influence the demand for products after some detailed studies the
market research firm concluded that the demand is simple linear function of no. of newly
marriage couples on this assumption. Build a causal model for forecasting the demand for
tricycle if the no. of new marriage is 150 and 200.
New marriages 200 235 210 197 225 240 217 225
Demand for tricycles 165 184 180 145 190 169 180 170
Solution:
X → New marriages Y→ Demand for tricycles

X Y XY X2
200 165 33,000 40,000
235 184 43,240 55,225
210 180 37,800 44,100
197 145 28,565 38,809
225 190 42,750 50,625
240 169 40,560 57,600
217 180 39,060 47,089
225 170 38,250 50,625
1749 1383 3,03,225 3,84,073

Y = a+bx

When X = 150; Y = 61.28 +0.51(150) =137.84 138


When X = 200; Y = 61.28 +0.51(200) = 163.36 163

You might also like