Estimating Demand Function
Estimating Demand Function
Q = 20 + 2Y + P” – 3P
Where Q is the quantity demanded/units of goods sold;
Y is a level of income,
P” is the price of our rival product,
and, P is the price of our own product.
ŷ b0 b1 x
Estimated
Regression Equation
b0 and b1 ŷ b0 b1 x
provide estimates of Sample Statistics
b0 and b1 b0, b1
Estimation Method: Ordinary Least
Square
Y
(OLS)
0 X1 X2 X
We assume that
expected conditional values
of Y associated with
alternative values of X
Y fall on a line.
E(Y |Xi) = 0 + 1Xi
Y1
1
E(Y|X1) 1 = Y1 - E(Y|X1)
0 X1 X
OLS: Line of best fit
min (y i y i ) 2
where:
yi = observed value of the dependent variable
for the ith observation
y^i = estimated value of the dependent variable
for the ith observation
Least Squares Method
Slope for the Estimated Regression
Equation
b1 ( x x )( y y )
i i
(x x )
i
2
Least Squares Method
b0 y b1 x
where:
xi = value of independent variable for ith
observation
yi = value of dependent variable for ith
_ observation
x = mean value for independent variable
_
y = mean value for dependent variable
n = total number of observations
The 4 steps of demand
estimation using regression
1. Specification
2. Estimation
3. Evaluation
4. Analyzing/Forecasting
Specification
280
270
260
Fare
250
240
230
220
210
20 40 60 80 100 120 140 160
Passengers
Scatter plot diagram with possible line of best fit
$ 27 0
26 0
25 0
24 0
23 0
22 0
0 50 100 150
Number of Seats Sold per Flight
Computing the OLS
estimators
Standardi
zed
Unstandardized Coefficien
Coefficients ts
Model B Std. Error Beta t Sig.
1 (Constant) 478.690 88.036 5.437 .000
FARE -1.633 .367 -.766 -4.453 .001
a. Dependent Variable: PASS
Reading the SPSS Output
Qˆ i 478.7 1.63Pi
Evaluation
Standardi
zed
Unstandardized Coefficien
Coefficients ts
Model B Std. Error Beta t Sig.
1 (Constant) 478.690 88.036 5.437 .000
FARE -1.633 .367 -.766 -4.453 .001
a. Dependent Variable: PASS
Sum of Mean
Model Squares df Square F Sig.
1 Regression 6863.624 1 6863.624 19.826 .001a
Residual 4846.816 14 346.201
Total 11710.440 15
a. Predictors: (Constant), FARE
b. Dependent Variable: PASS
Model Summary
Std. Error
Adjusted R of the
Model R R Square Square Estimate
1 .766a .586 .557 18.6065
a. Predictors: (Constant), FARE
Std. Error
Adjusted R of the
Model R R Square Square Estimate
1 .766a .586 .557 18.6065
a. Predictors: (Constant), FARE
Qˆ i 478.7 1.63Pi
At the most basic level, forecasting consists of inserting forecasted
values of the explanatory variable P (fare) into the estimated equation
to obtain forecasted values of the dependent variable Q (passenger
seats sold).
In-Sample Forecast of Airline Sales
Year and Predicted Actual
Quarter Sales (Q*) Sales (Q) Q* - Q (Q* - Q)sq
97-1 64.8 70.44 5.64 31.81
97-2 33.6 45.94 12.34 152.28
97-3 37.8 45.94 8.14 66.26
97-4 83.3 86.77 3.47 12.04
98-1 111.7 103.1 -8.6 73.96
98-2 137.5 111.26 -26.24 688.54
98-3 109.6 111.26 1.66 2.76
98-4 96.8 119.43 22.63 512.12
99-1 59.5 103.1 43.6 1900.96
99-2 83.2 94.94 11.74 137.83
99-3 90.5 78.61 -11.89 141.37
99-4 105.5 86.77 -18.73 350.81
00-1 75.7 70.44 -5.26 27.67
00-2 91.6 86.77 -4.83 23.33
00-3 112.7 86.77 -25.93 672.36
00-4 102.2 94.94 -7.26 52.71
140
120
Passengers
100
80
60
40 Actual
20 Fitted
97.1 97.3 98.1 98.3 99.1 99.3 00.1 00.3
Year/Quarter
Can we make a
good demand forecast?
Our ability to generate accurate forecasts of the dependent variable
depends on two factors:
• Does our model exhibit structural stability, i.e., will the causal
relationship between Q and P expressed in our forecasting equation
hold up over time?
• While the past may be a serviceable guide to the future in the case of
purely physical phenomena, the same principle does not necessarily
hold in the realm of social phenomena (to which economy belongs).
Single Variable Regression Using Excel
HP b0 b1Y
Scatter Diagram: Income and Home Prices
200
180
Home Prices
160
140
120
100
80
50 60 70 80 90 100 110
Income
Excel Output Regression Statistics
ANOVA Multiple R 0.906983447
df SS R Square 0.822618973
9355.71550 Adjusted R
Regression 1 2 Square 0.811532659
2017.36949 Standard Error 11.22878416
Residual 16 8 Observations 18
Total 17 11373.085
Standard
Coefficients Error t Stat