Professional Documents
Culture Documents
CH 02
CH 02
CH 02
Walter R. Paczkowski
Rutgers University
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 1
Chapter Contents
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 3
2.1
An Economic
Model
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 4
2.1
An Economic
Model
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 5
2.1
An Economic Figure 2.1a Probability distribution of food expenditure y given
Model income x = $1000
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 6
2.1
An Economic
Model
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 7
2.1
An Economic Figure 2.1b Probability distributions of food expenditures y
Model given incomes x = $1000 and x = $2000
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 8
2.1
An Economic
Model
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 9
2.1
An Economic
Model
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 10
2.1
An Economic
Model
It is called E y 1not
( y | x)regression
simple because
2x it is easy,
but because there is only one explanatory variable
on the right-hand side of the equation
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 11
2.1
An Economic Figure 2.2 The economic model: a linear relationship between
Model average per person food expenditure and income
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 12
2.1
An Economic
Model
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 13
2.2
An Econometric Model
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 14
2.2
An Econometric
Model
Figure 2.3 The probability density function for y at two levels of income
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 15
2.2
An Econometric
Model
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 16
2.2
An Econometric
Model
ASSUMPTIONS OF THE SIMPLE LINEAR REGRESSION MODEL - I
Assumption 1:
The mean value of y, for each value of x, is
given by the linear regression
E ( y | x) β1 β2 x
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 17
2.2
An Econometric
Model
ASSUMPTIONS OF THE SIMPLE LINEAR REGRESSION MODEL - I
Assumption 2:
For each value of x, the values of y are
distributed about their mean value, following
probability distributions that all have the same
variance
var( y | x) σ 2
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 18
2.2
An Econometric
Model
ASSUMPTIONS OF THE SIMPLE LINEAR REGRESSION MODEL - I
Assumption 3:
The sample values of y are all uncorrelated,
and have zero covariance, implying that there
is no linear association among them
cov( yi , y j ) 0
This assumption can be made stronger by
assuming that the values of y are all
statistically independent
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 19
2.2
An Econometric
Model
ASSUMPTIONS OF THE SIMPLE LINEAR REGRESSION MODEL - I
Assumption 4:
The variable x is not random, and must take at
least two different values
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 20
2.2
An Econometric
Model
ASSUMPTIONS OF THE SIMPLE LINEAR REGRESSION MODEL - I
Assumption 5:
(optional) The values of y are normally
distributed about their mean for each value of x
y ~ N (β1 β2 x,σ ) 2
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 21
2.2
An Econometric
Model
2.2.1
Introducing the
Error Term
The random error term is defined as
Eq. 2.3 e y E y | x y β1 β2 x
– Rearranging gives
Eq. 2.4 y β1 β 2 x e
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 22
2.2
An Econometric
Model
2.2.1
Introducing the
Error Term
E (e | x) E ( y | x) β1 β2 x 0
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 23
2.2
An Econometric
Model
Figure 2.4 Probability density functions for e and y
2.2.1
Introducing the
Error Term
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 24
2.2
An Econometric
Model
ASSUMPTIONS OF THE SIMPLE LINEAR REGRESSION MODEL - II
2.2.1
Introducing the
Error Term
Assumption SR1:
The value of y, for each value of x, is:
y β1 β2 x e
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 25
2.2
An Econometric
Model
ASSUMPTIONS OF THE SIMPLE LINEAR REGRESSION MODEL - II
2.2.1
Introducing the
Error Term
Assumption SR2:
The expected value of the random error e is:
E (e) 0
E ( y) β1 β2 x
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 26
2.2
An Econometric
Model
ASSUMPTIONS OF THE SIMPLE LINEAR REGRESSION MODEL - II
2.2.1
Introducing the
Error Term
Assumption SR3:
The variance of the random error e is:
var(e) σ2 var( y)
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 27
2.2
An Econometric
Model
ASSUMPTIONS OF THE SIMPLE LINEAR REGRESSION MODEL - II
2.2.1
Introducing the
Error Term
Assumption SR4:
The covariance between any pair of random
errors, ei and ej is:
cov(ei , e j ) cov( yi , y j ) 0
2.2.1
Introducing the
Error Term
Assumption SR5:
The variable x is not random, and must take at
least two different values
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 29
2.2
An Econometric
Model
ASSUMPTIONS OF THE SIMPLE LINEAR REGRESSION MODEL - II
2.2.1
Introducing the
Error Term
Assumption SR6:
(optional) The values of e are normally
distributed about their mean if the values of y
are normally distributed, and vice versa
e ~N (0, σ2 )
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 30
2.2
An Econometric
Model
Figure 2.5 The relationship among y, e and the true regression line
2.2.1
Introducing the
Error Term
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 31
2.3
Estimating the Regression Parameters
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 32
2.3
Estimating the
Regression Table 2.1 Food Expenditure and Income Data
Parameters
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 33
2.3
Estimating the
Regression Figure 2.6 Data for food expenditure example
Parameters
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 34
2.3
Estimating the
Regression
Parameters
2.3.1
The Least Squares
Principle
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 35
2.3
Estimating the
Regression Figure 2.7 The relationship among y, ê and the fitted regression line
Parameters
2.3.1
The Least Squares
Principle
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 36
2.3
Estimating the
Regression
Parameters
2.3.1
The Least Squares
Principle
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 37
2.3
Estimating the
Regression
Parameters
2.3.1
The Least Squares
Principle
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 38
2.3
Estimating the
Regression THE LEAST SQUARES ESTIMATORS
Parameters
2.3.1
The Least Squares
Principle
b2
( x x )( y y )
i i
(x x)
Eq. 2.7
2
i
Eq. 2.8 b1 y b2 x
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 39
2.3
Estimating the
Regression
Parameters
2.3.2
Estimates for the
Food Expenditure
Function
( x x )( y y ) 18671.2684
b2 i
i
10.2096
(x x) i
2
1828.7876
yˆ i 83.42 10.21xi
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 40
2.3
Estimating the
Regression Figure 2.8 The fitted regression line
Parameters
2.3.2
Estimates for the
Food Expenditure
Function
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 41
2.3
Estimating the
Regression
Parameters
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 42
2.3
Estimating the
Regression
Parameters
2.3.3a
Elasticities Income elasticity is a useful way to characterize
the responsiveness of consumer expenditure to
changes in income. The elasticity of a variable y
with respect to another variable x is:
percentage change in y y x
percentage change in x x y
2.3.3a
Elasticities The elasticity of mean expenditure with respect to
income is:
E ( y ) E ( y ) E ( y ) x x
Eq. 2.9 β2
x x x E ( y) E ( y)
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 44
2.3
Estimating the
Regression
Parameters
2.3.3b
Prediction
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 45
2.3
Estimating the
Regression Figure 2.9 EViews Regression Output
Parameters
2.3.3c
Computer Output
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 46
2.3
Estimating the
Regression
Parameters
2.3.4
Other Economic
Models
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 47
2.4
Assessing the Least Squares Fit
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 48
2.4
Assessing the
Least Squares Fit
2.4.1
The Estimator b2 The estimator b2 can be rewritten as:
N
Eq. 2.10 b2 wi yi
i 1
where
xi x
wi
i
Eq. 2.11
( x x ) 2
Eq. 2.12 b2 β2 wi ei
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 50
2.4
Assessing the
Least Squares Fit
2.4.2
The Expected
Values of b1 and b2
We will show that if our model assumptions hold,
then E(b2) = β2, which means that the estimator is
unbiased. We can find the expected value of b2
using the fact that the expected value of a sum is
the sum of the expected values:
E (b2 ) E (b2 wi ei ) E (β 2 w1e1 w2e2 ... wN eN )
E (β 2 ) E ( w1e1 ) E ( w2 e2 ) ... E ( wN eN )
Eq. 2.13 E (β 2 ) E ( wi ei )
β 2 wi E (ei )
β2
using E (ei ) 0 and E(wi ei ) wi E(ei )
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 51
2.4
Assessing the
Least Squares Fit
2.4.2
The Expected
Values of b1 and b2
The property of unbiasedness is about the average
values of b1 and b2 if many samples of the same size
are drawn from the same population
– If we took the averages of estimates from many
samples, these averages would approach the true
parameter values b1 and b2
– Unbiasedness does not say that an estimate from
any one sample is close to the true parameter value,
and thus we cannot say that an estimate is unbiased
– We can say that the least squares estimation
procedure (or the least squares estimator) is
unbiased
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 52
2.4
Assessing the
Least Squares Fit
Table 2.2 Estimates from 10 Samples
2.4.3
Repeated
Sampling
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 53
2.4
Assessing the
Least Squares Fit
Figure 2.10 Two possible probability density functions for b2
2.4.3
Repeated The variance of b2 is defined as var(b2 ) E[b2 E (b2 )]2
Sampling
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 54
2.4
Assessing the
Least Squares Fit
2.4.4
The Variances and
Covariances of b1
If the regression model assumptions SR1-SR5 are
and b2
correct (assumption SR6 is not required), then the
variances and covariance of b1 and b2 are:
σ2
var(b2 )
xi x
Eq. 2.15 2
x
Eq. 2.16 cov(b1 , b2 ) σ 2
xi x
2
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 55
2.4
Assessing the MAJOR POINTS ABOUT THE VARIANCES AND COVARIANCES
Least Squares Fit OF b1 AND b2
2.4.4
The Variances and 1. The larger the variance term σ2 , the greater the uncertainty
Covariances of b1
and b2
there is in the statistical model, and the larger the variances
and covariance of the least squares estimators.
3. The larger the sample size N, the smaller the variances and
covariance of the least squares estimators.
The larger the term x , the larger the variance of the least
2
4. i
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 57
2.5
The Gauss-Markov Theorem
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 58
2.5
The Gauss-Markov
Theorem
GAUSS-MARKOV THEOREM
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 59
2.5
The Gauss-Markov
Theorem MAJOR POINTS ABOUT THE GAUSS-MARKOV THEOREM
2. The estimators b1 and b2 are best within their class because they
have the minimum variance. When comparing two linear and
unbiased estimators, we always want to use the one with the
smaller variance, since that estimation rule gives us the higher
probability of obtaining an estimate that is close to the true
parameter value.
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 60
2.5
The Gauss-Markov
Theorem MAJOR POINTS ABOUT THE GAUSS-MARKOV THEOREM
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 61
2.6
The Probability Distributions of the
Least Squares Estimators
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 62
2.6
The Probability
Distributions of the
Least Squares
Estimators
σ 2 xi2
Eq. 2.17 b1 ~ N β1 ,
N x x 2
i
σ2
Eq. 2.18 b2 ~ N β 2 ,
x x
2
i
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 63
2.6
The Probability
Distributions of the
Least Squares
A CENTRAL LIMIT THEOREM
Estimators
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 64
2.7
Estimating the Variance of the Error
Term
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 65
2.7
Estimating the
Variance of the
Error Term
σ̂ 2
i
e 2
N
where the error terms are ei yi β1 β2 xi
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 66
2.7
Estimating the
Variance of the
Error Term
σ2
i
ˆ
e 2
N
There is a simple modification that produces an
unbiased estimator, and that is:
Eq. 2.19 ˆ 2 i
e 2
N 2
so that:
E σ̂ 2 σ 2
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 67
2.7
Estimating the
Variance of the
Error Term
2.7.1
Estimating the
Variance and
Replace the unknown error variance σ2 in Eq. 2.14
Covariance of the
Least Squares – Eq. 2.16 by ˆ 2 to obtain:
Estimators
σ̂ 2
var(b2 )
xi x
Eq. 2.21 2
x
Eq. 2.22 cov(b1 , b2 ) σˆ 2
xi x
2
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 68
2.7
Estimating the
Variance of the
Error Term
2.7.1
Estimating the
Variance and
Covariance of the
Least Squares
Estimators
The square roots of the estimated variances are the
“standard errors” of b1 and b2:
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 69
2.7
Estimating the
Variance of the Table 2.3 Least Squares Residuals
Error Term
2.7.2
Calculations for the
Food Expenditure
Data
σ̂ 2
i
ˆ
e 2
304505.2
8013.29
N 2 38
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 70
2.7
Estimating the
Variance of the
Error Term
2.7.2
Calculations for the
Food Expenditure
Data
The estimated variances and covariances for a
regression are arrayed in a rectangular array, or
matrix, with variances on the diagonal and
covariances in the “off-diagonal” positions.
var(b1 ) cov(b1 , b2 )
cov(b1 , b2 ) var(b2 )
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 71
2.7
Estimating the
Variance of the
Error Term
2.7.2
Calculations for the
Food Expenditure
Data
C Income
C 1884.442 -85.90316
Income -85.90316 4.381752
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 72
2.7
Estimating the
Variance of the
Error Term
2.7.3
Interpreting the
Standard Errors
The standard errors of b1 and b2 are measures of
the sampling variability of the least squares
estimates b1 and b2 in repeated samples.
– The estimators are random variables. As such,
they have probability distributions, means, and
variances.
– In particular, if assumption SR6 holds, and the
random error terms ei are normally distributed,
then:
b2 ~ N β2 , var(b2 ) σ 2
x x
i
2
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 73
2.7
Estimating the
Variance of the
Error Term
2.7.3
Interpreting the
Standard Errors
The estimator variance, var(b2), or its square
root, σb2 var b2 which we might call the true
standard deviation of b2, measures the sampling
variation of the estimates b2
– The bigger b2 is the more variation in the least
squares estimates b2 we see from sample to
sample. If b2 is large then the estimates might
change a great deal from sample to sample
– If b2 is small relative to the parameter b2,we
know that the least squares estimate will fall
near b2 with high probability
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 74
2.7
Estimating the
Variance of the
Error Term
2.7.3
Interpreting the
Standard Errors
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 75
2.7
Estimating the
Variance of the
Error Term
se(b2 ) var(b2 )
σ̂ 2
x x
2
i
2.7.3
Interpreting the
Standard Errors
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 77
2.8
Estimating Nonlinear Relationships
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 78
2.8
Estimating
Nonlinear THE WORLD IS NOT LINEAR
Relationships
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 80
2.8
Estimating
Nonlinear
Relationships
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 81
2.8
Estimating
Nonlinear
Relationships
2.8.1
Quadratic
Functions
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 82
2.8
Estimating
Nonlinear Figure 2.13 A quadratic function
Relationships
2.8.1
Quadratic
Functions
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 83
2.8
Estimating
Nonlinear
Relationships
2.8.2
Using a Quadratic
Model
A quadratic model for house prices includes the
squared value of SQFT, giving:
Eq. 2.27
ˆ
d PRICE 2αˆ SQFT
2
dSQFT
– If α̂ 2 0 , then larger houses will have larger
slope, and a larger estimated price per
additional square foot
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 84
2.8
Estimating
Nonlinear Figure 2.14 A fitted quadratic relationship
Relationships
2.8.2
Using a Quadratic
Model
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 85
2.8
Estimating
Nonlinear
Relationships
2.8.2
Using a Quadratic
Model
For 1080 houses sold in Baton Rouge, LA during
mid-2005, the estimated quadratic equation is:
PRICE 55776.56 0.0154SQFT 2
– The estimated slope is:
slope 2 0.0154 SQFT
– The elasticity is:
SQFT
ˆ slope
PRICE
SQFT
2α 2 SQFT
ˆ
PRICE
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 86
2.8
Estimating
Nonlinear
Relationships
2.8.2
Using a Quadratic
Model
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 87
2.8
Estimating
Nonlinear
Relationships
2.8.2
Using a Quadratic
Model
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 88
2.8
Estimating
Nonlinear
Relationships
2.8.3
A Log-Linear
Function
The log-linear equation ln(y) = a + bx has a
logarithmic term on the left-hand side of the
equation and an untransformed (linear) variable on
the right-hand side
– Both its slope and elasticity change at each
point and are the same sign as b
• The slope is:
dy dx by
– The elasticity, the percentage change in y given
a 1% increase in x, at a point on this curve is:
slope x y bx
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 89
2.8
Estimating
Nonlinear
Relationships
2.8.3
A Log-Linear
Function
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 90
2.8
Estimating
Nonlinear
Relationships
2.8.4
Using a Log-Linear
Model
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 91
2.8
Estimating
Nonlinear Figure 2.16 (a) Histogram of PRICE (b) Histogram of ln(PRICE)
Relationships
2.8.4
Using a Log-Linear
Model
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 92
2.8
Estimating
Nonlinear
Relationships
2.8.4
Using a Log-Linear
Model
PRICE exp ln PRICE exp 10.8386 0.0004113SQFT
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 93
2.8
Estimating
Nonlinear Figure 2.17 The fitted log-linear model
Relationships
2.8.4
Using a Log-Linear
Model
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 94
2.8
Estimating
Nonlinear
Relationships
2.8.4
Using a Log-Linear
Model
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 95
2.8
Estimating
Nonlinear
Relationships
2.8.4
Using a Log-Linear
Model
The estimated elasticity is:
ˆ γ̂2 SQFT 0.0004113SQFT
– For a house with 2000-square-feet, the
estimated elasticity is 0.823:
• A 1% increase in house size is estimated to
increase selling price by 0.823%
– For a house with 4000 square feet, the
estimated elasticity is 1.645:
• A 1% increase in house size is estimated to
increase selling price by 1.645%
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 96
2.8
Estimating
Nonlinear
Relationships
2.8.4
Using a Log-Linear
Model
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 97
2.8
Estimating
Nonlinear
Relationships
2.8.5
Choosing a
Functional Form
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 98
2.8
Estimating
Nonlinear
Relationships
2.8.5
Choosing a
Functional Form
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 99
2.9
Regression with Indicator Variables
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 100
2.9
Regression with
Indicator Variables
PRICE β1 β2UTOWN e
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 101
2.9
Regression with
Indicator Variables Figure 2.18 Distributions of house prices
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 102
2.9
Regression with
Indicator Variables
215.7325
215.7325 61.5091
61.5091UTOWN
UTOWN
277.2416
277.2416 UTOWN 1 1
ififUTOWN
215.7325 UTOWN 0 0
215.7325 ififUTOWN
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 103
2.9
Regression with
Indicator Variables
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 104
Key Words
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 105
Keywords
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 106
Appendices
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 107
2A Derivation of the Least Squares Estimates
2B Deviation from the Mean Form of b2
2C b2 is a Linear Estimator
2D Derivation of Theoretical Expression for b2
2E Deriving the Variance of b2
2F Proof of the Gauss-Markov Theorem
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 108
2A
Derivation of the
Least Squares
Estimates
S
2 Nβ1 2 yi 2 xi β 2
Eq. 2A.2 β1
S
2 xi2 β 2 2 xi yi 2 xi β1
β 2
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 109
2A
Derivation of the
Least Squares Figure 2A.1 The sum of squares function and the minimizing values b 1 and b2
Estimates
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 110
2A
Derivation of the
Least Squares
Estimates
Eq. 2A.4
x b x b x y
i 1
2
i 2 i i
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 111
2A
Derivation of the
Least Squares
Estimates
N xi yi xi yi
b2
N x xi
Eq. 2A.5 2
2
i
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 112
2B
Deviation from the
Mean Form of b2
1
xi2 2 x N xi Nx 2
Eq. 2B.1 N
xi2 2 Nx 2 Nx 2
xi2 Nx 2
Also note that:
ix x 2
i
x 2
N x 2
xi2 x xi
Eq. 2B.2
x
x 2 i
2
i
N
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 113
2B
Deviation from the
Mean Form of b2
Finally, we have:
x x y y x y
i i i i Nx y
Eq. 2B.3
xi yi
x y i i
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 114
2B
Deviation from the
Mean Form of b2
x x y y
b2 i i
x x i
2
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 115
2B
Deviation from the
Mean Form of b2
x x 0
i
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 116
2C
b2 is a Linear
Estimator
x x
2
i
x x y y x x
i i i
x x
2
i
x x y
i i
x x
2
i
xi x
2 i
y
xi x
wi yi
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 117
2D
Derivation of
Theoretical
Expression for b2
b2 w y i i
w β β x e
i 1 2 i i
wβ β w x we
i 1 2 i i i i
β we
2 i i
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 118
2D
Derivation of
Theoretical
Expression for b2
β w x β
2 i i 2
x x 0
i
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 119
2D
Derivation of
Theoretical
Expression for b2
x x xi x xi x
2
i
xi x xi x xi x
xi x xi
x x x
so that: w x x x i i
i i 2
i
x x x
i i
x x x i i
1
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 120
2E
Deriving the
Variance of b2
b2 β2 wi ei
and that:
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 121
2E
Deriving the
Variance of b2
var(b2 ) E β 2 wi ei β 2
2
E wi ei
2
E wi ei 2 wi w j ei e j
2 2
i j
wi2 E ei2 2 wi w j E ei e j
i j
σ 2 wi2
σ2
x x
2
i
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 122
2E
Deriving the
Variance of b2
cov ei , e j E ei E ei e j E e j E ei e j 0
xi x x x 1
2 2
wi
2
2
i
xi x x x x x 2 2
2 2
i
i
σ2
x x
2
i
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 124
2F
Proof of the
Gauss-Markov
Theorem
b2* ki yi wi ci yi wi ci β1 β 2 xi ei
wi ci β1 wi ci β 2 xi wi ci ei
Eq. 2F.1
β1 wi β1 ci β 2 wi xi β 2 ci xi wi ci ei
β1 ci β 2 β 2 ci xi wi ci ei
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 125
2F
Proof of the
Gauss-Markov
Theorem
Now:
Eq. 2F.2
E b2* β1 ci β 2 β 2 ci xi wi ci E ei
β1 ci β 2 β 2 ci xi
Eq. 2F.3
ci 0 and c x i i 0
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 126
2F
Proof of the
Gauss-Markov
Theorem
wi ci var ei
2
w c
2
σ 2
i i
σ w σ c
2 2
i
2 2
i
var b σ c
2
2 2
i
var b2
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 127
2G
Monte Carlo
Simulation
2G.1
The Regression
Function
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 130
2G
Monte Carlo
Simulation
2G.2
The Random Error To be consistent with assumptions SR2–SR4 the
random errors should have mean zero, a constant
variance and be uncorrelated with one another
– We can generate random numbers
– Of course the computer-generated numbers
cannot be truly random, because they are
generated by a computer code
– The random numbers created by computer
software are ‘‘pseudorandom,’’ in that they
behave like random numbers
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 131
2G
Monte Carlo
Simulation Figure 2G.1 The true probability density functions of the data
2G.3
Theoretically True
Values
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 132
2G
Monte Carlo
Simulation Figure 2G.2 The true probability density functions of the estimator b2
2G.3
Theoretically True
Values
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 133
2G
Monte Carlo
Simulation
2G.4
Creating a Sample
of Data
σˆ 51.5857
Variance-Covariance Matrix
b1 b2
b1 665.2699 -39.9162
b2 -39.9162 2.6611
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 134
2G
Monte Carlo
Simulation
2G.5
Monte Carlo
Objectives
What do we hope to achieve with a Monte Carlo
experiment?
– We would like to verify that under SR1–SR5
the least squares estimators are unbiased
– We would like to verify that under SR1–SR5
the least squares estimators have sampling
variances given by Eq. 2.14 and Eq. 2.16
– We would like to verify that the estimator of the
error variance Eq. 2.19 is unbiased
– Because we have assumed the random errors
are normal, SR6, we expect the least squares
estimates to have a normal distribution.
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 135
2G
Monte Carlo
Simulation Table 2G.1 Summary of 1,000 Monte Carlo Samples
2G.6
Monte Carlo
Results
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 136
2G
Monte Carlo
Simulation Figure 2G.3 The sampling distribution of b2 in 1000 Monte Carlo samples
2G.6
Monte Carlo
Results
Principles of Econometrics, 4th Edition Chapter 2: The Simple Linear Regression Model Page 137