0% found this document useful (0 votes)
27 views

Applied Econometrics: Introduction To Matrix

This document discusses linear regression models in matrix form. It begins by presenting the basic linear regression model as y = Xβ + ε. It then derives the Ordinary Least Squares (OLS) estimator for β as β^ = (X'X)^-1X'y. It discusses properties of the OLS estimator including that it is unbiased, best (has minimum variance among linear unbiased estimators), and consistent under classical assumptions. It also derives the variance of the OLS estimator and presents the estimator for the error variance σ^2.

Uploaded by

RIZKI HANIDA -
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Applied Econometrics: Introduction To Matrix

This document discusses linear regression models in matrix form. It begins by presenting the basic linear regression model as y = Xβ + ε. It then derives the Ordinary Least Squares (OLS) estimator for β as β^ = (X'X)^-1X'y. It discusses properties of the OLS estimator including that it is unbiased, best (has minimum variance among linear unbiased estimators), and consistent under classical assumptions. It also derives the variance of the OLS estimator and presents the estimator for the error variance σ^2.

Uploaded by

RIZKI HANIDA -
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 18

Applied Econometrics

Introduction to Matrix

Abdul Hakim
FE UII
Linear Regression Model

• A linear model in matrix is written as follows:

y  Xβ  ε
• Assumptions:

2
Linear Regression Model

• OLS: Minimize ' 

'   ( y  X )' ( y  X )
 ( y'' X' )( y  X )
 ( y' y  y' X  ' X' y  ' X' X )
 y' y  ' X' y'' X' y  ' X' X
 y' y  2' X' y  ' X' X

3
Linear Regression Model

• OLS: Minimize ' 

 ('  )
 2 X' y  2X' Xˆ  0
  ˆ
 X' Xˆ  X' y
 ( X' X) 1 X' Xˆ  ( X' X) 1 X' y
 Iˆ  ( X' X) 1 X' y
 ˆ  ( X' X) 1 X' y

4
Linear Regression Model
• Varians ̂
Var (ˆ )  E(ˆ   )(ˆ   )'
 E[( X' X) 1 X' y  ][( X' X) 1 X' y   ]'
 E[( X' X) 1 X' ( X   )  ][( X' X) 1 X' ( X   )  ]'
 E[( X' X) 1 X' X  ( X' X) 1 X'    ][( X' X ) 1 X' X  ( X' X) 1 X'   ]'
 E[I  ( X' X) 1 X'   ][I  ( X' X ) 1 X'   ]'
 E[  ( X' X ) 1 X'   ][  ( X' X) 1 X'   ]'
 E[( X' X) 1 X'  ][( X' X) 1 X'  ]'
 E[( X' X) 1 X'  ][' X( X' X ) 1 ]
 E[( X' X) 1 X' ' X( X' X ) 1 ]
 ( X' X) 1 X' XE(' )( X' X) 1
 I 2 ( X' X) 1
  2 ( X' X ) 1 .

5
Gauss Markov Theorem
▧ If a model meets the classical assumptions, OLS
application on it provides BLUE (Best-Linear-
Unbiased Estimators).
▧ Best means that the estimators have minimum
variance compared to those resulted from other
linear echnique
▧ Unbiased means the mean of estimators equals the
parameter.

6
Unbiasedness

ˆ  ( X' X) 1 X' y
 ( X' X) 1 X' ( X   )
 ( X' X) 1 X' X  ( X' X) 1 X' 
E(ˆ )  E( X' X) 1 X' X  E( X' X) 1 X' 
 ( X' X) 1 X' XE( )  ( X' X) 1 X' E( )
 I  ( X' X) 1 (0)


7
Best
~ ˆ
 D
• Say there is a non OLS estimator, namely where   Dy
is kxT and fixed.
~
E( )  E(ˆ )  E( Dy )
   DE( y )
   DX
  iff DX  0.
~
   ˆ  Dy
 ˆ  D( X   )
 ˆ  DX  D
 ˆ  D

because DX = 0.

8
Best

~ ~ ~
Var ( )  E(   )(   )'
 E(ˆ  D   )(ˆ  D   )'
 E(ˆ    D )(ˆ    D )'
 E[(ˆ   )  D ][(ˆ   )  D]'
 E[(ˆ   )  D ][(ˆ   )' ' D' ]
 E[(ˆ   )(ˆ   )' (ˆ   )' D' D(ˆ   )' D' D' ]
 E[(ˆ   )(ˆ   )' D' D' ] sin ce DX  0
 E[(ˆ   )(ˆ   )' ]  E(' DD' )
  2 ( X' X) 1   2 D' D

9
Best
▧ Since DD’ is positive semi-definite matrix ( DD '
is kxk),
~
Var( β )  Var( βˆ )
▧ In another word, ̂is best (has the minimum variance)
compared to estimators resulted from other linear techniques.

10
Best
▧ Notes
o Gauss-Markov applies to linear unbiased estimators. This
means that it is possible that there are non-linear unbiased
estimators that have lower variance than that of resulted
from the OLS.
o Gauss-Markov applies to linear unbiased estimators. This
means that it is possible that there are biased estimators
that have lower MSE (mean squared errors) than that of
resulted from the OLS.

11
Best
E(ˆ   )(ˆ   )'  E(ˆ  Eˆ  Eˆ   )(ˆ  Eˆ  Eˆ   )'
 E[(ˆ  Eˆ )  (Eˆ   )][(ˆ  Eˆ )  (Eˆ   )]'
 E[(ˆ  Eˆ )  (Eˆ   )][(ˆ  Eˆ )' (Eˆ   )' ]
 E[(ˆ  Eˆ )(ˆ  Eˆ )' (ˆ  Eˆ )(Eˆ   )' (Eˆ   )(ˆ  Eˆ )' (Eˆ   )(Eˆ   )' ]
 E(ˆ  Eˆ )(ˆ  Eˆ )'0  0  E[Eˆ   )(Eˆ   )' ]
 E[(ˆ  Eˆ )(ˆ  Eˆ )' ]  E[(Eˆ   )(Eˆ   )' ]
 MSE(ˆ )  Variance (ˆ )  Bias 2

12
Consistency of ̂
to 
▧ Consistency can be defined as the fulfillment of the following
three conditions:

13
Consistency of ̂
to 
▧ It has bee proven that ˆ 
E()

Var (ˆ )   2 ( X' X ) 1


1 1
lim  2 ( X' X) 1   2 lim ( X' X) 1
T  T T
1 1
  2 lim . lim( X' X) 1
T T
1
  2 (0). lim( X' X) 1
T
0

▧ Therefore, if is normally distributed, ̂ consistence to . .


is 

14
Consistency of ̂
to 
▧ Another definition of consistency: ̂is a consistence estimator of
if 

▧ recall that ˆ    ( X' X) 1 X,' so:


p lim ˆ  p lim   p lim( X' X) 1 X' 
T 

   p lim( X' X) 1 p lim( X'  )


   p lim( T 1 X' X) 1 p lim( T 1 X'  )
   lim( T 1 X' X) 1 p lim( T 1 X'  )
   Q 1 .0

15
1 1
E(T X'  )  0, dan lim E(T X'  )  0.
1
▧ Note: p lim( T X'  )  since
0
Estimator of 2

e  y  Xˆ  ( I  P )y  (I  P )( X   )  (I  P )  .
e' e  y' (I  P )y  ' (I  P ).

16
Estimator of 2

E(e' e)  E(' (I  P )
 E(tr ' (I  P ) ) ( scalar  tr(scalar)
 E(tr(I  P )' ) (tr AB  tr BA )
 tr[(I  P )E(' )]
  2 tr(I  P )
  2 [tr It  tr P]
  2 [T  trX( X' X) 1 X' ]
  2 [T  tr( X' X) 1 X' X]
  2 T  trI k
  2 (T  k )

17
2
Consistency of sto 2
e' e  ' ( I  P )
e' e
s2  , so (T  k )s 2  e' e  ' (I  P )  '   ' X( X' X) 1 X' 
Tk

p lim( T  k )s 2  p lim( ' (I  P ) )


p lim s 2  p lim( T  k ) 1 (' (I  P ) )
 p lim T 1 (' (I  P ) )
 p lim T 1'   p lim T 1' P
 p lim T 1'   p lim T 1' X( X' X) 1 X' 
 p lim T 1'   p lim( T 1' X)p lim( T 1 X' X) 1 p lim( T 1 X'  )
  2  0'.Q 1 .0
 2 .

18

You might also like