APLICACIONES ECONOMÉTRICAS LIC. EN ECONOMIA PRÁCTICA 16/5/03
description
Transcript of APLICACIONES ECONOMÉTRICAS LIC. EN ECONOMIA PRÁCTICA 16/5/03
APLICACIONES APLICACIONES ECONOMÉTRICASECONOMÉTRICASLIC. EN ECONOMIALIC. EN ECONOMIAPRÁCTICA 16/5/03 PRÁCTICA 16/5/03
VIOLACIÓN DE LAS VIOLACIÓN DE LAS HIPÓTESIS BÁSICAS EN HIPÓTESIS BÁSICAS EN
M.C.O.: M.C.O.: CONTRASTES DE CONTRASTES DE
ESPECIFICACIÓN ERRÓNEAESPECIFICACIÓN ERRÓNEA
RATS/EVIEWS
1.1 1.1 HIPÓTESIS BASICAS EN M.C.O.HIPÓTESIS BASICAS EN M.C.O. ::
RATS/EVIEWS
H I P O T E S I S : C O N T R A S T E S : C O N S E C U E N C I A SV I O L A C I Ó N :
a ) N o r m a l i d a d d e : - T e s t d e B e r a - J a r q u e ( B J ) L o s e s t i m a d o r e s d e l o sc o e f i c i e n t e s ˆ s o ni n s e s g a d o s , p r o c e s o d ei n f e r e n c i a v á l i d o p a r a Tr e l a t i v a m e n t e g r a n d e s( p . e . 50 )
b ) P e r t u r b a c i o n e s e s f é r i c a s :h o m o s c e d a s t i c i d a d y n oa u t o c o r r e l a c i ó n
jjiCov
tiVar
i ,0],[
,...,1i , 2][
- H e t e r o s c e d a s t i c i d a d :T e s t d e W h i t e- A u t o c o r r e l a c i ó n : T e s tD u r b i n - W a t s o n ( D W ) yT e s t L M d e B r e u s c h -G o d f r e y
L o s e s t i m a d o r e s m . c . o . ˆ s o n i n s e s g a d o s
a u n q u e i n e f i c i e n t e s ,p r o c e s o d e i n f e r e n c i ai n v a l i d a d o .
c ) M o d e l o l i n e a l y e s t a b l ee n e l t i e m p o :
Xy
- T e s t R E S E T d e R a m s e y- T e s t C U S U M d ee s t a b i l i d a d e s t r u c t u r a l
E s t i m a d o r e s p o r M C Os e s g a d o s ei n c o n s i s t e n t e s
4.4. CONTRASTES DE CONTRASTES DE ESPECIFICACIÓN ERRÓNEAESPECIFICACIÓN ERRÓNEA
USANDOUSANDO RATSRATS v5.0 v5.0
RATS
Instrucción STATISTICS: STATISTICS nombre_resíduos
• Muestra un resumen de los momentos muestrales de los datos de una serie, y algunos contrastes de hipótesis iniciales que te den una idea sobre la distribución de la que proviene la muestra.
– Opciones:
RATS
Test de Bera-Jarque (Test de Bera-Jarque (BJBJ) de normalidad) de normalidad
*a) Test BJ de normalidad:
STAT EPSILON
Programa LINREG_INV3.PRG:
SALIDA:
RATS
Statistics on Series EPSILON
Quarterly Data From 1980:01 To 2002:04
Observations 92
Sample Mean -0.00000000 Variance 885981.028857
Standard Error 941.26565265 SE of Sample Mean 98.133728
t-Statistic -0.00000 Signif Level (Mean=0) 1.00000000
Skewness -0.75342 Signif Level (Sk=0) 0.00370691
Kurtosis 0.56865 Signif Level (Ku=0) 0.28400146
Jarque-Bera 9.94340 Signif Level (JB=0) 0.00693134
RATS
Test de White de heteroscedasticidadTest de White de heteroscedasticidad
*b) Test de White de heteroscedasticidad
SET TREND_2 = TREND**2
SET PNB_2 = PNB**2
SET TI_R_2 = TI_R**2
SET TRENDxPNB = TREND*PNB
SET TRENDxTI_R = TREND*TI_R
SET PNBxTI_R = PNB*TI_R
SET EPSILON_2 = EPSILON**2
*Regresión auxiliar:
LINREG EPSILON_2 /
#CONSTANT TREND PNB TI_R TREND_2 PNB_2 TI_R_2 TRENDxPNB$
TRENDxTI_R PNBxTI_R
*Estadístico y contraste:
DISPLAY 'WHITE TEST:'
COMPUTE WHITE=%NOBS*%RSQUARED
CDF CHISQUARED WHITE %NREG
Programa LINREG_INV3.PRG:
SALIDA:
RATS
Linear Regression - Estimation by Least SquaresDependent Variable EPSILON_2Quarterly Data From 1980:01 To 2002:04Usable Observations 92 Degrees of Freedom 82Centered R**2 0.500032 R Bar **2 0.445157Uncentered R**2 0.643962 T x R**2 59.244Mean of Dependent Variable 876350.8003Std Error of Dependent Variable 1385875.8802Standard Error of Estimate 1032307.8216Sum of Squared Residuals 8.73841e+13Regression F(9,82) 9.1123Significance Level of F 0.00000000Durbin-Watson Statistic 0.797456
Variable Coeff Std Error T-Stat Signif**********************************************************************1. Constant -2.1624e+08 63281684.0927 -3.41702 0.000987692. TREND -4817097.5930 1320993.3120 -3.64657 0.000465423. PNB 7792.9823 2323.9000 3.35341 0.001210114. TI_R 4986101.2631 1241659.7309 4.01567 0.000130595. TREND_2 -28705.8182 6965.7208 -4.12101 0.000089696. PNB_2 -0.0698 0.0215 -3.24979 0.001675817. TI_R_2 -13665.2351 14446.1748 -0.94594 0.346957628. TRENDXPNB 87.7846 24.3353 3.60729 0.000530509. TRENDXTI_R 72418.9743 13682.7870 5.29271 0.0000009910. PNBXTI_R -101.0547 22.6897 -4.45377 0.00002643
WHITE TEST:Chi-Squared(10)= 46.002942 with Significance Level 0.00000143
Instrucción LINREG:LINREG(opciones) depvar inicio fin (serie_residuos) (serie_coefs)
# exvar_1 exvar_2 ... exvar_n
• Se puede corregir medinate la elección apropiada de las opciones.
– Opciones:» ROBUSTERRORS =>Unicamente con esta opción permite la
corrección de White de la matriz de VAR-COV consistente con heteroscedasticidad.
RATS
Corrección de la Matriz de Var-Cov consistente con Corrección de la Matriz de Var-Cov consistente con Heteroscedasticidad: WHITEHeteroscedasticidad: WHITE
*Correccion de la VAR-COV de m.c.o. de WHITE:
LINREG(ROBUSTERRORS) INVR /
#CONSTANT TREND PNB TI_R
Programa LINREG_INV3.PRG:
RATS
SALIDA:
EVIEWS
Linear Regression - Estimation by Least Squares
Dependent Variable INVR
Quarterly Data From 1980:01 To 2002:04
Usable Observations 92 Degrees of Freedom 88
Centered R**2 0.978759 R Bar **2 0.978035
Uncentered R**2 0.998399 T x R**2 91.853
Mean of Dependent Variable 22498.250000
Std Error of Dependent Variable 6458.350663
Standard Error of Estimate 957.175495
Sum of Squared Residuals 80624273.626
Durbin-Watson Statistic 0.248758
Variable Coeff Std Error T-Stat Signif
**************************************************************************
1. Constant -25200.62569 1763.94462 -14.28652 0.00000000
2. TREND -164.95834 18.74209 -8.80149 0.00000000
3. PNB 0.69466 0.03208 21.65622 0.00000000
4. TI_R 80.23033 32.38023 2.47776 0.01322112
*c) Test LM de autocorrelación de orden hasta 5:
*Regresión auxiliar para un orden de autocorrelación p=5:
LINREG EPSILON
# CONSTANT TREND PNB TI_R EPSILON{1 TO 5}
*Estadístico y contraste para un orden de autocorrelación p=5:
COMPUTE LM=%NOBS*%RSQUARED
DISPLAY ' LM TEST:'
CDF CHISQUARED LM 5
RATS
Test LM de Breusch-Godfrey de autocorrelaciónTest LM de Breusch-Godfrey de autocorrelación
Programa LINREG_INV3.PRG:
SALIDA:
RATS
Dependent Variable EPSILONQuarterly Data From 1981:02 To 2002:04Usable Observations 87 Degrees of Freedom 78Centered R**2 0.798865 R Bar **2 0.778236Uncentered R**2 0.799249 T x R**2 69.535Mean of Dependent Variable 41.32014547Std Error of Dependent Variable 949.74649034Standard Error of Estimate 447.25341917Sum of Squared Residuals 15602778.435Regression F(8,78) 38.7249Significance Level of F 0.00000000Durbin-Watson Statistic 1.928902
Variable Coeff Std Error T-Stat Signif****************************************************************************
***1. Constant 2483.351935 1323.140735 1.87686 0.064276592. TREND 25.015636 14.776456 1.69294 0.094457853. PNB -0.045029 0.025097 -1.79420 0.076656814. TI_R -13.376588 15.068622 -0.88771 0.377425205. EPSILON{1} 0.743284 0.112373 6.61446 0.000000006. EPSILON{2} 0.234077 0.136382 1.71634 0.090068627. EPSILON{3} 0.080736 0.136950 0.58953 0.557212338. EPSILON{4} -0.265626 0.135234 -1.96420 0.053069719. EPSILON{5} 0.123941 0.114511 1.08235 0.28243107
LM TEST:Chi-Squared(5)= 69.501237 with Significance Level 0.00000000
Instrucción LINREG:LINREG(opciones) depvar inicio fin (serie_residuos) (serie_coefs)
# exvar_1 exvar_2 ... exvar_n
• Se puede corregir medinate la elección apropiada de las opciones.
– Opciones:» ROBUSTERRORS =>Unicamente con esta opción permite la
corrección de White de la matriz de VAR-COV consistente con heteroscedasticidad.
» LAGS=PNW => Calcular a parte PNW=floor(4*(T/100)2/9).En el ejemplo LAGS=3
» DAMP=1
RATS
Corrección de la Matriz de Var-Cov consistente con Corrección de la Matriz de Var-Cov consistente con Autocorrelación y/o Heteroscedasticidad: Autocorrelación y/o Heteroscedasticidad:
NEWEY-WESTNEWEY-WEST
*Correccion de la VAR-COV de m.c.o. de NEWEY-WEST:
LINREG(ROBUSTERRORS,LAGS=3,DAMP=1) INVR /
#CONSTANT TREND PNB TI_R
Programa LINREG_INV3.PRG:
RATS
SALIDA:
RATS
Linear Regression - Estimation by Least Squares
Dependent Variable INVR
Quarterly Data From 1980:01 To 2002:04
Usable Observations 92 Degrees of Freedom 88
Centered R**2 0.978759 R Bar **2 0.978035
Uncentered R**2 0.998399 T x R**2 91.853
Mean of Dependent Variable 22498.250000
Std Error of Dependent Variable 6458.350663
Standard Error of Estimate 957.175495
Sum of Squared Residuals 80624273.626
Durbin-Watson Statistic 0.248758
Variable Coeff Std Error T-Stat Signif
****************************************************************************
1. Constant -25200.62569 3021.58759 -8.34019 0.00000000
2. TREND -164.95834 31.93874 -5.16484 0.00000024
3. PNB 0.69466 0.05463 12.71578 0.00000000
4. TI_R 80.23033 59.16095 1.35614 0.17505568