Advanced Econometrics

Size: px
Start display at page:

Download "Advanced Econometrics"

Transcription

1 Advanced Econometrics Dr. Andrea Beccarini Center for Quantitative Economics Winter 2013/2014 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

2 General information Aims and prerequisites Objective: learn to understand and use advanced econometric estimation techniques Applications in micro and macro econometrics and finance Prerequisites: Statistical Foundations (random vectors, stochastic convergence, estimators) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

3 General information Literature Russell Davidson and James MacKinnon, Econometric Theory and Methods, Oxford University Press, Various textbooks Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

4 General information Schedule Least squares estimation and method of moments Maximum likelihood estimation Instrument variables estimation GMM Indirect Inference Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

5 Least squares Linear regression Multiple linear regression model y = X β + u u N ( 0, σ 2 I ) OLS estimator Covariance matrix ˆβ = ( X X ) 1 X y ( ) Cov ˆβ = σ 2 ( X X ) 1 Gauss-Markov theorem Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

6 Least squares Nonlinear regression Notation of Davidson and MacKinnon (2004), y t = x t (β) + u t u t IID(0, σ 2 ) x t (β) is a nonlinear function of the parameter vector β Example: y t = β 1 + β 2 x t1 + 1 β 2 x t2 + u t Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

7 Least squares Nonlinear regression Minimize the sum of squared residuals T (y t x t (β)) 2 t=1 with respect to β Usually, the minimization must be done numerically Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

8 Method of moments Definition of moments Raw moment of order p Empirical raw moment of order p µ p = E(X p ) ˆµ p = 1 n n i=1 X p i for a simple random sample X 1,..., X n Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

9 Method of moments Basic idea: Step 1 Write r theoretical moments as functions of r unknown parameters µ 1 = g 1 (θ 1,..., θ r ). µ r = g r (θ 1,..., θ r ) Of course, central moments may be used as well Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

10 Method of moments Basic idea: Step 2 Invert the system of equations: Write the r unknown parameters as functions of the r theoretical moments θ 1 = h 1 (µ 1,..., µ r ). θ r = h r (µ 1,..., µ r ) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

11 Method of moments Basic idea: Step 3 Replace all theoretical moments by empirical moments ˆθ 1 = h 1 (ˆµ 1,..., ˆµ r ). ˆθ r = h r (ˆµ 1,..., ˆµ r ) The estimators ˆθ 1,..., ˆθ r are moment estimators Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

12 Method of moments Properties of moment estimators Moment estimators are consistent since plimˆθ 1 = plim (h 1 (ˆµ 1, ˆµ 2,...)) = h 1 (plimˆµ 1, plimˆµ 2,...) = h 1 (µ 1, µ 2,...) = θ 1 In general, moment estimators are not unbiased and not efficient Since the empirical moments are asymptotically normal (why?), moment estimators are also asymptotically normal delta method [P] Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

13 Method of moments Example Let X Exp (λ) with unknown parameter λ and let X 1,..., X n be a random sample Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

14 Method of moments Example Let X Exp (λ) with unknown parameter λ and let X 1,..., X n be a random sample Step 1: We know that E(X ) = µ 1 = 1/λ Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

15 Method of moments Example Let X Exp (λ) with unknown parameter λ and let X 1,..., X n be a random sample Step 1: We know that E(X ) = µ 1 = 1/λ Step 2 (inversion): λ = 1/µ 1 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

16 Method of moments Example Let X Exp (λ) with unknown parameter λ and let X 1,..., X n be a random sample Step 1: We know that E(X ) = µ 1 = 1/λ Step 2 (inversion): λ = 1/µ 1 Step 3: The estimator is ˆλ = 1ˆµ 1 = 1 n 1 i X i = 1 X n Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

17 Method of moments Example Let X Exp (λ) with unknown parameter λ and let X 1,..., X n be a random sample Step 1: We know that E(X ) = µ 1 = 1/λ Step 2 (inversion): λ = 1/µ 1 Step 3: The estimator is Is ˆλ unbiased? ˆλ = 1ˆµ 1 = 1 n 1 i X i = 1 X n Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

18 Method of moments Example Let X Exp (λ) with unknown parameter λ and let X 1,..., X n be a random sample Step 1: We know that E(X ) = µ 1 = 1/λ Step 2 (inversion): λ = 1/µ 1 Step 3: The estimator is Is ˆλ unbiased? ˆλ = 1ˆµ 1 = 1 n 1 i X i = 1 X n Alternative: Var(X ) = 1/λ 2, then ˆλ = 1/ S 2 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

19 Maximum likelihood Basic idea The basic idea is very natural: Choose the parameters such that the probability (likelihood) of the observations x 1,..., x n as a function of the unknown parameters θ 1,..., θ r is maximized Likelihood function L(θ; x 1,..., x n ) = { P(X1 = x 1,..., X n = x n ; θ) f X1,...,X n (x 1,..., x n ; θ) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

20 Maximum likelihood Basic idea For simple random samples Maximize the likelihood L(θ; x 1,..., x n ) = n f X (x i ; θ) i=1 L(ˆθ; x 1,..., x n ) = max θ Θ L(θ; x 1,..., x n ) ML estimate ˆθ = arg max L(θ; x 1,..., x n ) ML estimator ˆθ = arg max L(θ; X 1,..., X n ) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

21 Maximum likelihood Basic idea Because sums are easier to deal with than products, and because sums are subject to limit laws, it is common to maximize the log-likelihood ln L(θ) = n ln f X (X i ; θ) i=1 The ML estimator is the same as before, since ˆθ = arg max ln L(θ; X 1,..., X n ) = arg max L(θ; X 1,..., X n ) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

22 Maximum likelihood Basic idea Usually, we find ˆθ by solving the system of equations ln L/ θ 1 = 0 ln L/ θ r = 0 The gradient vector g(θ) = ln L(θ)/ θ is called score vector or score If the log-likelihood is not differentiable other maximization methods must be used. Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

23 Maximum likelihood Example Let X Exp(λ) with density f (x; λ) = λe λx for x 0 and f (x; λ) = 0 else Likelihood of i.i.d. random sample Log-likelihood L(λ; x 1,..., x n ) = n i=1 λe λx i ln L(λ; x 1,..., x n ) = n ln λ λ n i=1 x i Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

24 Maximum likelihood Example Set the derivative to zero ln L(λ) λ = ṋ λ n i=1 x i! = 0, hence ˆλ = n n i=1 x i = 1 x The ML estimator for λ is ˆλ = 1 X Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

25 Maximum likelihood Properties of ML estimators: Preliminaries The log-likelihood and the score vector are ln L (θ) = ln L (θ) θ = n ln f X (X i ; θ) i=1 n i=1 ln f X (X i ; θ) θ The contributions ln f X (X i ; θ) are random variables The contributions ln f X (X i ; θ)/ θ are random vectors Hence, limit laws can be applied to the (normalized) sums Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

26 Maximum likelihood Properties of ML estimators: Preliminaries For all θ e ln L(θ) dx = L (θ; x 1,..., x n ) dx = 1 since L (θ) is a joint density function of X 1,..., X n Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

27 Maximum likelihood Properties of ML estimators: Preliminaries Define the matrix G (θ, X 1,..., X n ) of gradient contributions G ij (θ, X i ) = ln f X (X i ; θ) θ j The column sums are the gradient vector with elements g j (θ) = n G ij (θ, X i ) i=1 The expected gradient vector is E θ (g (θ)) = 0 [P] Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

28 Maximum likelihood Properties of ML estimators: Preliminaries The covariance matrix of gradient vector Cov (g (θ)) = E ( g (θ) g (θ) ) is called information matrix (and often denoted I (θ)) Information matrix equality [P] Cov (g (θ)) = E (H (θ)) ( ) ( ln L (θ) 2 ) ln L (θ) Cov = E θ θ θ Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

29 Maximum likelihood Properties of ML estimators 1 Equivariance: If ˆθ is the ML estimator for θ, then h(ˆθ) is the ML estimator for h(θ) 2 Consistency: plimˆθ n =θ 3 Asymptotic normality: ) d n (ˆθn θ U N (0, V (θ)) 4 Asymptotic efficiency: V (θ) is the Cramï 1 2r-Rao bound 5 Computability (analytical or numerical); the covariance matrix of the estimator is a by-product of the numerical method Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

30 Maximum likelihood Properties of ML estimators Equivariance: Let ˆθ be the ML estimator of θ Let ψ = h(θ) be a one-to-one function of θ with inverse h 1 (ψ) = θ Then the ML estimator of ψ satisfies d ln L(h 1 (ψ)) dψ which holds at ˆψ = h(ˆθ) = d ln L(θ) dh 1 (ψ) = 0 dθ dψ Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

31 Maximum likelihood Properties of ML estimators Consistency The parameter θ is identified if for all θ θ and data x 1,..., x n ln L ( θ ) x 1,..., x n ln L (θ x1,..., x n ) The parameter θ is asymptotically identified if for all θ θ 0 plim 1 n ln L ( θ ) plim 1 n ln L (θ 0) where θ 0 is the true value of the parameter [P] Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

32 Maximum likelihood Properties of ML estimators Asymptotic normality By definition, the ML estimator satisfies g(ˆθ) = 0 A first order Taylor series expansion of g around the true parameter vector θ 0 gives [P] g(ˆθ) = g (θ 0 ) + H (θ 0 ) (ˆθ θ 0 ) + rest Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

33 Maximum likelihood Covariance matrix estimation The (approximate) covariance matrix of ˆθ is [ Cov(ˆθ) = [E (H (θ 0 ))] 1 = E A consistent estimator of Cov(ˆθ) is ( 2 ln L(θ 0 ) θ 0 θ 0 ( [ ] 1 2 ln L(ˆθ) Ĉov(ˆθ) = H(ˆθ) = ˆθ ˆθ Often, H(ˆθ) is a by-product of numerical optimization ) 1 )] 1 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

34 Maximum likelihood Covariance matrix estimation An alternative consistent covariance matrix estimator is [ Ĉov(ˆθ) = G(ˆθ; X 1,..., X n ) G(ˆθ; X 1,..., X n ) ] 1 This estimator is called outer-product-of-the-gradient (OPG) estimator Advantage: Only the first derivatives are required Disadvantage: Less reliable in small samples Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

35 Maximum likelihood Example Numerical estimation of the parameters of N(µ, σ 2 ) Let X 1,..., X 50 be a random sample from X N(µ, σ 2 ) with µ = 5 and σ 2 = 9 Density function ( ) f X (x) = 1 exp 1 (x µ)2 2π 2 σ 2 Log-likelihood function ln L ( µ, σ 2) = n i=1 ln f X (x i ) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

36 Maximum likelihood Example See numnormal.r Point estimates ( ˆµ ˆσ 2 ) = ( Estimated covariance matrix derived numerically from H(ˆθ) Ĉov (ˆµ, ˆσ 2) ( ) = ) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

37 Maximum likelihood Example See numnormal.r Point estimates ( ˆµ ˆσ 2 ) = ( Estimated covariance matrix derived from theory Ĉov (ˆµ, ˆσ 2) ( ) = ) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

38 Maximum likelihood Example of violated regularity conditions Let X be uniformly distributed on the interval [0, θ] The density function is { 1/θ for 0 x θ f X (x) = 0 else The likelihood function is { ( 1 ) n θ for θ max i x i L(θ x 1,..., x n ) = 0 else Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

39 Maximum likelihood Example of violated regularity conditions likelihood 0.0e e e e L(θ) is not differentiable at max i x i θ Maximum is at ˆθ = max i x i The estimator is consistent but not asymptotically normal Illustration in R Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

40 Maximum likelihood Dependent observations Maximum likelihood estimation is still possible if the observations are dependent The joint density of the observations can be factorized as f X1 (x 1 ) f X1,...,X T (x 1,..., x T ) T f Xt X1 =x 1,...,X t 1 =x t 1 (x t ) t=2 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

41 Maximum likelihood Dependent observations Loglikelihood T ln L = ln f X1 (x 1 ) + ln f Xt X1 =x 1,...,X t 1 =x t 1 (x t ) t=2 If T is large, one may ignore ln f X1 (x 1 ) Computing the loglikelihood is straightforward if f Xt X1 =x 1,...,X t 1 =x t 1 (x t ) = f Xt Xt 1 =x t 1 (x t ) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

42 Maximum likelihood The three classical tests Wald test, Lagrange multiplier test and likelihood ratio test (W, LM, LR) Hypotheses H 0 : r(θ) = 0 vs H 1 : r(θ) 0 Often, r is a scalar-valued function and θ is a scalar The function r may be non-linear! Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

43 Maximum likelihood The three classical tests Basic test ideas: Wald test: If r(θ) = 0 is true, then r(ˆθ ML ) will be close to 0 Likelihood ratio test: If r(θ) = 0 is true, then ln L(ˆθ R ) will not be far below ln L(ˆθ ML ) Lagrange multiplier test: If r(θ) = 0 is true, the score function g(ˆθ R ) = ln L(ˆθ R )/ θ will be close to 0 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

44 Maximum likelihood The three classical tests Example: Let X 1,..., X n be a random sample from X Exp(λ) Test H 0 : λ = 4 against H 1 : λ 4 Different notation: H 0 : r(λ) = 0 where r(λ) = λ 4 See threetests.r Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

45 Maximum likelihood Wald test Wald test Hypotheses H 0 : r(θ) = 0 H 1 : r(θ) 0 with functions r= (r 1,..., r m ) m is the number of restrictions Wald test: If r(θ) = 0 is true, then r(ˆθ ML ) will be close to 0 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

46 Maximum likelihood Wald test Asymptotically, under H 0 (by delta method!) ( ) r(ˆθ ML ) N 0, Cov(r(ˆθ ML )) with Cov(r(ˆθ ML )) = r(ˆθ ML ) θ Cov(ˆθ ML ) r(ˆθ ML ) θ Remember: If X N(µ, Σ), then (X µ) Σ 1 (X µ) χ 2 m Wald test statistic [ ] 1 W = r(ˆθ ML ) Cov(r(ˆθ ML )) r(ˆθ ML ) asy χ 2 m Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

47 Maximum likelihood Wald test Remarks: Reject H 0 if W is larger than the (1 α)-quantile of the χ 2 m-distribution Usually, Cov(r(ˆθ ML )) must be replaced by Ĉov(r(ˆθ ML )) The Wald test is not invariant with respect to re-parametrizations The Wald test only requires the unrestricted ML estimator Ideal, if ˆθ ML is much easier to calculate than ˆθ R Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

48 Maximum likelihood Likelihood ratio test Likelihood ratio test Is ln L(ˆθ ML ) significantly larger than ln L(ˆθ R )? LR test statistic ( ) L(ˆθ R ) LR = 2 ln L(ˆθ ML ) ( ) = 2 ln L(ˆθ R ) ln L(ˆθ ML ) Asymptotic distribution: LR asy χ 2 m Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

49 Maximum likelihood Likelihood ratio test Remarks: Reject H 0 if LR is larger than the (1 α)-quantile of the χ 2 m-distribution To compute LR, one requires both the unrestricted estimator ˆθ ML and the restricted estimator ˆθ R Ideal, if both ˆθ ML and ˆθ R are easy to calculate The LR test is often used to compare different models to each other Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

50 Maximum likelihood Lagrange multiplier test Lagrange multiplier test Is g(ˆθ R ) significantly different from 0? The test is based on the restricted estimator ˆθ R Lagrange approach: max θ ln L(θ) s.t. r(θ) = 0 LM test statistic LM = g(ˆθ R ) [ ] 1 I (ˆθ R ) g(ˆθ R ) asy χ 2 m with I (ˆθ R ) = E ( ) 2 ln L(ˆθ R ) θ θ Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

51 Maximum likelihood Lagrange multiplier test Remarks: Reject H 0 if LM is larger than the (1 α)-quantile of the χ 2 m-distribution The LM test only requires the restricted estimator Ideal, if ˆθ R is much easier to calculate than ˆθ ML The LM test is often used to test misspecifications (heteroskedasticity, autocorrelation, omitted variables etc.) Asymptotically, the three tests are equivalent Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

52 Maximum likelihood The three classical tests Multivariate case Example: Production function where u i N(0, ) Log-likelihood function ln L(a 1, a 2 ) Y i = X a 1 i1 X a 2 i2 + u i ML estimators â 1 and â 2 Hypothesis test of a 1 + a 2 = 1 or a 1 + a 2 1 = 0 See classtest.r Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

53 Instrumental variables Preliminaries OLS is not consistent if E (u t X t ) 0 Define an information set Ω t (a σ-algebra), such that E (u t Ω t ) = 0 This moment condition can be used for estimation Variables in Ω t are called instrumental variables (or instruments) We denote the instrument vector by W t Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

54 Instrumental variables Correlation between errors and disturbances (I) Errors in variables Consider the model y t = α + βx t + ε t, ε t iid(0, σ 2 ε) The exogenous variable xt is unobservable We can only observe x t = xt + v t where v t iid(0, σv 2 ) are independent of everything else Estimators of y t = α + βx t + u t are inconsistent [P] Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

55 Instrumental variables Correlation between errors and disturbances (II) Omitted variables bias Let y t = α + β 1 x 1t + β 2 x 2t + ε t If x 2 is unobservable, one estimates y t = α + β 1 x 1t + u t where u t = β 2 x 2t + ε t If x 2t and x 1t are correlated then so are u t and x 1t Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

56 Instrumental variables Correlation between errors and disturbances (III) Endogeneity Standard example: supply and demand curves determine both price and quantity q t = γ d p t + X d t β d + u d t q t = γ s p t + X s t β s + u s t Solve for q t and p t [ qt p t ] [ 1 γd = 1 γ s ] 1 ([ X d t β d X s t β s ] + ( u d t u s t )) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

57 Instrumental variables Correlation between errors and disturbances (III) Since q t and p t depend on both ut d estimation of and u s t single equation OLS q t = γ d p t + Xt d β d + ut d q t = γ s p t + Xt s β s + ut s is inconsistent The right hand side variable p t is correlated with the error term The condition E (u t Ω t ) = 0 is violated if p t is in Ω t Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

58 Instrumental variables Correlation between errors and disturbances Warning! Inconsistency is not always a problem If we simply want to forecast, we can use inconsistent estimators Trivial example: Positive correlation between u and X x y true regression line Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

59 Instrumental variables The simple IV estimator Let W denote the T K matrix of instruments All columns of X with X t Ω t should be included in W Then E (u t W t ) = 0 implies the moment condition E ( W u ) = E ( W (y X β) ) = 0 The IV estimator is a method of moment estimator The solution is ˆβ IV = ( W X ) 1 W y Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

60 Instrumental variables Properties The simple IV estimator is consistent if plim 1 n W X = S WX is deterministic and nonsingular The simple IV estimator is asymptotically normal, ( n ˆβ IV β) U N (0, σ 2 (S WX ) 1 ( ) ) S WW S 1 WX where S WW = plim 1 n W W [P] [P] Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

61 Instrumental variables How to find instruments Instruments must be 1 exogenous, i.e. plim 1 n W u = 0 2 valid, i.e. plim 1 n W X = S WX non-singular Natural experiments (weather, earthquakes,... ) Angrist and Pischke (2009): Good instruments come from a combination of institutional knowledge and ideas about the processes determining the variable of interest. Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

62 Instrumental variables How to find instruments Examples Natural experiments 1 Brï 1 2ckner and Ciccone: Rain and the democratic window of opportunity, Econometrica 79 (2011) Angrist and Evans: Children and their parents labor supply: Evidence from exogenous variation in family size, American Economic Review 88 (1998) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

63 Instrumental variables How to find instruments Examples Institutional arrangements 1 Angrist and Krueger: Does Compulsory School Attendance Affect Schooling and Earnings?, Quarterly Journal of Economics 106 (1991) Levitt: The Effect of Prison Population Size on Crime Rates: Evidence from Prison Overcrowding Litigation, Quarterly Journal of Economics 111 (1996) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

64 Instrumental variables How to find instruments In a time series context, one can sometimes use lagged endogenous regressors as instrumental variables Example: with E(u t x t ) 0 y t = α + βx t + u t If Cov (x t, x t 1 ) 0 but Cov (u t, x t 1 ) = 0, then x t 1 can be used as instrumental variable Attention: Cov (u t, x t 1 ) = 0 is not always obvious Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

65 Instrumental variables How to find instruments Example (Measurement error in time series) Consider the model y t = α + βx t + u t xt = ρxt 1 + ε t x t = xt + v t. Then x t 1 is a valid instrument for a regression of y t on x t, and α and β will be estimated consistently. Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

66 Instrumental variables How to find instruments Example (Omitted variable bias in time series) Consider the model y t = α + β 1 x 1t + β 2 x t2 + u t x 1t = ρ 11 x 1,t 1 + ρ 12 x 2,t 1 + ε 1t x 2t = ρ 21 x 1,t 1 + ρ 22 x 2,t 1 + ε 2t Then x 1,t 1 is not a valid instrument for a regression of y t on x 1t, and α and β 1 will not be estimated consistently. Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

67 Instrumental variables How to find instruments Example (Endogeneity in time series) Consider the model y t = α + β 1 x t + β 2 y t 1 + u t x t = γ + δ 1 y t + δ 2 x t 1 + v t Then x 1,t 1 is a valid instrument for a regression of y t on x t and y t 1, and α, β 1 and β 2 will be estimated consistently. Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

68 Instrumental variables Generalized IV estimation If the number of instruments L is larger than the number of parameters K, the model is overidentified Right-multiply the T L matrix W by an L K matrix J to obtain an T K instrument matrix WJ Linear combinations of the instruments in W One can show that the asymptotically optimal matrix is J = (W W ) 1 W X Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

69 Instrumental variables Generalized IV estimation The generalized IV estimator is ˆβ IV = ( (WJ) X ) 1 (WJ) y ( = X W ( W W ) ) 1 1 W X X W ( W W ) 1 W y = ( X P W X ) 1 X P W y with P W = W (W W ) 1 W Consistency and asymptotic normality still hold Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

70 Instrumental variables Generalized IV estimation The two-stage-least-squares (2SLS) interpretation The matrix J is similar to ˆβ in the standard OLS model, Hence, WJ is similar to X ˆβ J = ( W W ) 1 W X The optimal instruments are obtained if we regress the endogenous regressors on the instruments (1st stage), and then use the fitted values as regressors (2nd stage) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

71 Instrumental variables Finite sample properties The finite sample properties of IV estimators are complex In the overidentified case, the first L K moments exist, but higher moments do not If the expectation exists, IV estimators are in general biased The simple IV estimator has very heavy tails, even the first moment does not exist! The estimator can be extremely far off the true value ivfinite.r Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

72 Instrumental variables Hypothesis testing Exact hypothesis tests are usually not feasible Asymptotic tests are based on the asymptotic normality An estimator of the covariance matrix of ˆβ IV is ( ) Ĉov ˆβ IV = ˆσ 2 ( X P W X ) 1 with P W = W ( W W ) 1 W ˆσ 2 = 1 ) ) (y X ˆβ IV (y X ˆβ IV n Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

73 Instrumental variables Hypothesis testing Asymptotic t-test H 0 : β i = β i0 H 1 : β i β i0 Under the null hypothesis, the test statistic t = ˆβ i β i0 ( ) Var ˆβ i is asymptotically N(0, 1) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

74 Instrumental variables Hypothesis testing Asymptotic Wald test (similiar to an F -test) H 0 : β 2 = β 20, H 1 : β 2 β 20 where β 2 is a length L subvector of β Under the null hypothesis, the test statistic ( ) ( )] 1 ( ) W = ˆβ2 β 20 [Ĉov ˆβ2 ˆβ2 β 20 is asymptotically χ 2 with L degrees of freedom Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

75 Instrumental variables Hypothesis testing Testing overidentifying restrictions The identifying restrictions are E(u t W t ) = 0 or E ( W u ) = 0 If the model is just identified the validity of the restriction cannot be tested If the model is overidentified, one can test if the overidentifying restrictions hold, i.e. if the instruments are valid and exogenous Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

76 Instrumental variables Hypothesis testing Basic test idea: Check if the IV residuals can be explained by the full set of instruments Compute the IV residuals û Regress the residuals on all instruments W Under the null hypothesis, the test statistic nr 2 χ 2 m where m is the degree of overidentification Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

77 Instrumental variables Hypothesis testing Davidson and MacKinnon (2004, p. 338): Even if we do not know quite how to interpret a significant value of the overidentification test statistic, it is always a good idea to compute it. If it is significantly larger than it should be by chance under the null hypothesis, one should be extremely cautious in interpreting the estimates, because it is quite likely either that the model is specified incorrectly or that some of the instruments are invalid. Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

78 Instrumental variables Hypothesis testing Durbin-Wu-Hausman test H 0 : E ( X u ) = 0 H 1 : E ( W u ) = 0 Test if IV estimation is really necessary or if OLS would do Under H 1, OLS is inconsistent, but IV is still consistent Basic test idea: Compare ˆβ OLS and ˆβ IV. If they are too different, reject H 0 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

79 Instrumental variables Hypothesis testing The difference between the estimators is ˆβ IV ˆβ OLS = ( X P W X ) 1 X P W y ( X X ) 1 X y Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

80 Instrumental variables Hypothesis testing The difference between the estimators is ˆβ IV ˆβ OLS = ( X P W X ) 1 X P W y ( X X ) 1 X y = ( X P W X ) ( 1 X P W y ( X P W X ) ( X X ) ) 1 X y Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

81 Instrumental variables Hypothesis testing The difference between the estimators is ˆβ IV ˆβ OLS = ( X P W X ) 1 X P W y ( X X ) 1 X y = ( X P W X ) ( 1 X P W y ( X P W X ) ( X X ) ) 1 X y = ( X P W X ) ( 1 X P W (I X ( X X ) ) ) 1 X y Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

82 Instrumental variables Hypothesis testing The difference between the estimators is ˆβ IV ˆβ OLS = ( X P W X ) 1 X P W y ( X X ) 1 X y = ( X P W X ) ( 1 X P W y ( X P W X ) ( X X ) ) 1 X y = ( X P W X ) ( 1 X P W (I X ( X X ) ) ) 1 X y = ( X P W X ) 1 ( X P W M X y ) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

83 Instrumental variables Hypothesis testing We need to test if X P W M X y is significantly different from 0 This term is identically equal to zero for all variables in X that are instruments (i.e. that are also in W ) Denote by X all possibly endogenous regressors To test if X P W M X y is significantly different from zero, perform a Wald test of δ = 0 in the regression y = X β + P W X δ + u Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

84 GMM Model description Hansen, L. (1982), Large Sample Properties of Generalized Method of Moments Estimators, Econometrica 50, : In this paper we study the large sample properties of a class of generalized method of moments (GMM) estimators which subsumes many standard econometric estimators. To motivate this class, consider an econometric model whose parameter vector we wish to estimate. The model implies a family of orthogonality conditions that embed any economic theoretical restrictions that we wish to impose or test. Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

85 GMM Model description John Cochrane (2005), Asset Pricing, p. 196: Most of the effort involved with GMM is simply mapping a given problem into the very general notation. Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

86 GMM Model description Describe the model by elementary zero functions E θ (f t (θ, y t )) = 0 where everything can be vector-valued Parameter vector θ of length K Observation vectors y t Identification condition E θ0 (f t (θ, y t )) 0 for all θ θ 0 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

87 GMM Model description Example (Linear regression model) Consider the standard model y = X β + u u N(0, σ 2 I ), independent of X Parameter vector θ =? Observations y t =? Elementary zero functions f t (θ, y t ) =? Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

88 GMM Model description Example (Lognormal distribution) Suppose there is a random sample X 1,..., X n from X LN(µ, σ 2 ) Parameter vector θ =? Observations y t =? Elementary zero functions f t (θ, y t ) =? Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

89 GMM Model description Example (Asset pricing) The basic asset pricing formula is p t = E (m t+1 x t+1 Ω t ) with asset price p, stochastic discount factor m, payoff x, and information set Ω t. Parameter vector θ =? Observations y t =? Elementary zero functions f t (θ, y t ) =? Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

90 GMM Model description Stack all elementary zero functions f 1 (θ, y 1 ) f (θ, y) = Covariance matrix. f n (θ, y n ) E ( f (θ, y) f (θ, y) ) = Ω Dimension of Ω depends on dimension of f t (θ, y t ) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

91 GMM Model description Example (Linear regression model) The covariance matrix Ω is E (f (θ, y) f (θ, y) ) = E ( u u ) = σ 2 I If there are autocorrelation and heteroskedasticity E ( u u ) = Ω Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

92 GMM Model description Example (Lognormal distribution) The covariance matrix Ω is E (f (θ, y) f (θ, y) ) = f 2 11 f 11 f f 11 f n1 f 11 f n2 f 12 f 11 f f 12 f n1 f 12 f n2 E f n1 f 11 f n1 f fn1 2 f n1 f n2 f n2 f 11 f n2 f f n2 f n1 fn2 2 =? Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

93 GMM Model description Example (Asset pricing) The covariance matrix Ω is f f 11 f n1 E (f (θ, y) f (θ, y) ) = E..... f n1 f fn1 2 =? Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

94 GMM Estimating equations To estimate θ, we need K estimating equations In general, they are weighted averages of the f t In most cases, the estimating equations are based on L K instrumental variables W If L > K, we need to form linear combinations Let W be the n L matrix of instruments and J be an L K matrix of full rank Define the n K matrix Z = WJ Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

95 GMM Estimating equations Theoretical moment conditions (orthogonality conditions) E ( Z tf t (θ, y t ) ) = 0 The estimating equations are the empirical counterpart 1 n Z f (θ, y) = 0 Solving this system yields the GMM estimator ˆθ Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

96 GMM Estimating equations Example (Linear regression model) The K moment conditions for the linear regression model are E ( Z tf t (θ, y t ) ) = E ( X t ( yt X tβ )) = 0 and the estimating equations are 1 n X (y X β) = 0. Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

97 GMM Estimating equations Example (Lognormal distribution) The two moment conditions for the lognormal distribution are E ( Z tf t (θ, y t ) ) ([ ] [ ]) 1 0 ft1 (θ, y = E t ) 0 1 f t2 (θ, y t ) ([ Xt exp ( µ + 1 = E 2 σ2) ]) Xt 2 exp ( 2µ + 2σ 2) ( ) 0 = 0 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

98 GMM Estimating equations Example (contd)... and the estimating equations are 1 n Z f (θ, y) = 1 [ n = [ 1 n 1 n n t=1 ] f 11 f 12. f n1 f n2 n ( t=1 Xt exp ( ( µ σ2)) ] X 2 t exp ( 2µ + 2σ 2)) = [ 0 0 ] Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

99 GMM Properties of GMM estimators Consistency Assume that a law of large numbers applies to 1 n Z f (θ, y) Define the limiting estimation functions α (θ) = plim 1 n Z f (θ, y) and the limiting estimation equations α (θ) = 0 The GMM estimator ˆθ is consistent if the asymptotic identification condition holds, α (θ) α (θ 0 ) for all θ θ 0 [P] Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

100 GMM Properties of GMM estimators Asymptotic normality Simplified notation: f t (θ) = f t (θ, y t ), f (θ) = f (θ, y) Additional assumption: f t (θ) is continuously differentiable at θ 0 First order Taylor series expansion of 1 n Z f (θ) = 0 in ˆθ around θ 0 [P] Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

101 GMM Asymptotic efficiency The asymptotic distribution of ) n (ˆθ θ0 is normal with mean 0 and covariance matrix ( plim 1 ) 1 ( n Z F (θ 0 ) plim 1 n Z ΩZ ) ( plim 1 ) 1 n F (θ 0) Z What is the optimal choice of Z in the estimating equations? The optimal choice depends on assumptions about the matrices F (θ) and Ω Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

102 GMM Asymptotic efficiency If Ω = σ 2 I and E(F t (θ 0 )f t (θ 0 )) = 0 the optimal choice is Z = F (θ 0 ) Problem: Z depends on the unknown θ 0 Solution: Solve the estimating equations 1 n F (θ)f (θ) = 0 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

103 GMM Asymptotic efficiency If Ω = σ 2 I and E(F t (θ 0 )f t (θ 0 )) 0 but W t Ω t, the optimal choice is Z = P W F (θ 0 ) Problem: Z depends on the unknown θ 0 Solution: Solve the estimating equations 1 n F (θ)p W f (θ) = 0 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

104 GMM Asymptotic efficiency Suppose, the covariance matrix Ω is unknown Since Z = WJ, the covariance matrix of n(ˆθ θ 0 ) is (plim 1n ) 1 ( J W F 0 plim 1 ) ( n J W ΩWJ plim 1 ) 1 n F 0 WJ For the optimal J = (W ΩW ) 1 W F 0 this becomes (plim 1n F 0W ( W ΩW ) 1 W F 0 ) 1 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

105 GMM Asymptotic efficiency Although Ω cannot be estimated consistently, the term 1 n W ΩW can be estimated consistently (we will do that later) If ˆΣ is an estimator of 1 n W ΩW, the optimal estimating equations are 1 n J W f (θ) = 1 n F (θ) W ˆΣ 1 W f (θ) = 0 and the estimated covariance matrix of ˆθ is Ĉov(ˆθ) = n ( ˆF W ˆΣ 1 W ˆF ) 1 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

106 GMM Alternative notation Attention Many textbooks use a different notation (and so does the gmm package in R) The two approaches are equivalent The moment conditions are notated as E (g (θ, y t )) = E ( W t f t (θ, y) ) = 0 The number of moment conditions L can be larger than the number of parameters K Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

107 GMM Alternative notation The L estimating equations cannot be solved exactly ḡ n (θ, y) = 1 n The GMM estimator is defined by n g(θ, y t ) = 0 t=1 ˆθ = arg min ḡ n (θ, y) A n ḡ n (θ, y) where A n is a sequence of L L weighting matrices (which can be chosen by the user) with limit A Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

108 GMM Alternative notation The GMM estimator based on ḡ n is consistent, ˆθ p θ Asymptotic normality: Define the L K matrix G(θ) = ḡ n (θ, y t ) θ = 1 n n t=1 g(x t, θ) θ Assume that nḡ n (θ, y) d N (0, V ), then n (ˆθ θ0 ) d N (0, ( G AG ) 1 G AVAG ( G A G ) 1 ) [P] Asymptotically optimal weighting matrix A [P] Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

109 GMM Equivalence The two GMM approaches (based on f t and g) are equivalent The first order condition of ḡ(θ) Aḡ(θ) is G K L A L L g = 0 L 1 K 1 which is the same as J K L W L n f = 0 n 1 K 1 List of equivalences [P] Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

110 GMM Covariance matrix estimation The covariance matrix of the elementary zero functions is often unknown E ( f (θ, y) f (θ, y) ) = Ω There may be heteroskedasticity and autocorrelation in Ω Although Ω cannot be estimated consistently, the term 1 n W ΩW can be estimated consistently Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

111 GMM Covariance matrix estimation Write 1 Σ = plim n n W ΩW Assume that a suitable law of large numbers holds, where f t = f t (θ, y t ) 1 Σ = lim n n n n t=1 s=1 E ( f t f s W t W s ) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

112 GMM Covariance matrix estimation Define the autocovariance matrices { 1 n n t=j+1 Γ(j) = E (f tf t j W t W t j ) for j 0 ) n t= j+1 (f E t+j f t W t+j W t for j < 0 Then Σ = lim 1 n n 1 n j= n+1 Γ(j) = lim n n 1 ( Γ(0) + Γ(j) + Γ (j) ) j=1 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

113 GMM Covariance matrix estimation The autocovariance matrix Γ(j), j 0, can be estimated by ˆΓ(j) = 1 n Newey-West estimator of Σ ˆΣ = ˆΓ(0) + p j=1 n t=j+1 ˆf t ˆft j W t W t j ( 1 j ) (ˆΓ(j) + ˆΓ (j)) p + 1 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

114 GMM Test of overidentifying restrictions The GMM estimators minimize the criterion function 1 n f (θ)w ˆΣ 1 W f (θ) Asymptotically, the minimized value (Hansen s J statistics, Hansen s overidentification statistic, Hansen-Sargan statistic) is distributed as χ 2 L K if the overidentifying restrictions hold If the null hypothesis is rejected, then something went wrong, e.g. the model is misspecified Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

115 Indirect inference Basic idea Anthony Smith, Jr. (New Palgrave Dictionary of Economics): Indirect inference is a simulation-based method for estimating the parameters of economic models. Its hallmark is the use of an auxiliary model to capture aspects of the data upon which to base the estimation. The parameters of the auxiliary model can be estimated using either the observed data or data simulated from the economic model. Indirect inference chooses the parameters of the economic model so that these two estimates of the parameters of the auxiliary model are as close as possible. Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

116 Indirect inference The true model Economic model y t = G (y t 1, x t, u t ; β), t = 1,..., T Exogenous variables x t and endogenous variables y t Random errors u t, i.i.d. with cdf F Parameter vector β of dimension K Let standard estimation methods for β be intractable It must be possible (and easy) to simulate y 1,..., y T given y 0 (assumed to be known), x 1,..., x T and β Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

117 Indirect inference The auxiliary model The true model is too complicated for estimation of β Instead estimate an auxiliary model with parameter vector θ The dimension L of θ must be at least as large as the dimension K of β The auxiliary model must be suitable (but is allowed to be misspecified) easy and fast to estimate Often, the auxiliary model is a standard time series model Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

118 Indirect inference Estimating the auxiliary model For given β (and y 0, x 1,..., x T ), the auxiliary model s parameters θ are estimated 1 from the observed data x 1,..., x T, y 1,..., y T, resulting in estimator ˆθ 2 from H simulated datasets x 1,..., x T, ỹ (h) 1,..., ỹ (h) T for h = 1,..., H, resulting in estimators θ (h) (β) Define θ(β) = 1 H H θ (h) (β) h=1 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

119 Indirect inference Optimization Compute the difference between the vectors ˆθ and θ(β) ) Q(β) = (ˆθ θ(β)) W (ˆθ θ(β) where W is a positive definite weighting matrix The indirect inference estimator of β is ˆβ = arg min Q(β) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

120 Indirect inference Remarks The simulations have to be done with the same set of random errors Indirect inference is similar to GMM: the auxiliary parameters are the moments The asymptotic distribution of ˆβ can be derived (see Gourieroux et al., 1993) The weighting matrix W can be chosen optimally Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

121 Indirect inference A simple example (Gourieroux et al., 1993) Consider the MA(1) process y t = ε t βε t 1 with ε t N(0, 1) and β = 0.5 for t = 1,..., 250 The maximum likelihood estimator ˆβ ML is not trivial Indirect inference estimator ˆβ II of β? Auxiliary model: AR(3) with parameters θ No weighting, the matrix W is the identity matrix Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

122 Indirect inference A simple example (Gourieroux et al., 1993) Compare the distribution of ˆβ ML and ˆβ II Step 1: Simulate a time series y 1,..., y 250 Step 2: Compute ˆβ ML Step 3: Estimate ˆθ from y 1,..., y 250 Step 4: For given β, simulate 10 paths ỹ (h) 1,..., ỹ (h) 250 Step 5: Estimate θ(β) from the simulated paths Step 6: Repeat steps 4 and 5 for different β until the difference between ˆθ and θ(β) is minimized Step 7: Save ˆβ II and start again at step 1 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

123 Bootstrap Basic idea Point of departure: unknown distribution function F (univariate or multivariate) Unknown parameter vector θ = θ(f ) Simple random sample X 1,..., X n from F Estimator ˆθ = ˆθ(X 1,..., X n ) Why is the distribution of ˆθ of interest? Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

124 Bootstrap Basic idea Basic bootstrap idea: Approximate the unknown distribution of by the distribution of ˆθ(X 1,..., X n ) for X 1,..., X n i.i.d. from F ˆθ(X 1,..., X n ) for X 1,..., X n i.i.d. from ˆF The distribution of ˆθ under ˆF is usually found by Monte-Carlo simulations based on resamples (pseudo sample) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

125 Bootstrap Basic idea How is F estimated? parametric parametric bootstrap nonparametric nonparametric bootstrap smoothed smooth bootstrap model based Applications bias and standard errors confidence intervals hypothesis tests Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

126 Bootstrap Example 1 Nonparametric bootstrap of the standard error of ˆθ = X = 1 n n i=1 X i Simple random sample X 1,..., X 20 Estimation of the unknown cdf F by the empirical distribution function F n (x) = 1 n 1 (X i x) n i=1 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

127 Bootstrap Example 1 (contd) How is X distributed under F? How is X distributed under ˆF = F n? Estimation of the distributio of X under F n by Monte-Carlo simulation Calculation of the standard deviation of X under F n The distribution of X under F n is an approximation of the distribution of X under F Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

128 Bootstrap Example 1 (still contd): The algorithm 1 Draw a random sample X 1,..., X 20 from F n (resampling) 2 Compute X = Xi i=1 3 Repeat steps 1 and 2 a large number B of times, save the results as X 1,..., X B 4 Compute the standard error bootex1.r SE( X ) = 1 B ( X B 1 i X ) 2 i=1 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

129 Bootstrap Example 2 Parametric bootstrap of the bias of ˆθ = ˆλ = 1 X for the exponential distribution X Exp(λ) Simple random sample X 1,..., X 8 Estimation of the unknown distribution function F by ( ) Fˆλ(x) = 1 exp ˆλx Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

130 Bootstrap Example 2 (contd) How is ˆλ distributed under F? How is ˆλ distributed under ˆF = Fˆλ? Estimation of the distribution of ˆλ under Fˆλ by Monte-Carlo simulation Find the expectation of ˆλ under Fˆλ The distribution of ˆλ under Fˆλ approximates the distribution of ˆλ under F Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

131 Bootstrap Example 2 (still contd): The algorithm 1 Compute ˆλ = 1/ X from X 1,..., X 8 2 Draw a simple random sample X 1,..., X 8 3 Compute ˆλ = 1/ X from Fˆλ 4 Repeat steps 1 and 2 a large number B of times, save the results as ˆλ 1,..., ˆλ B 5 Estimate the bias by bootex2.r ( 1 B b ˆλ b ) ˆλ Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

132 Bootstrap General approach for bootstrap standard errors original sample X 1,..., X n edf ˆF = F n or ˆF = Fˆθ 1. resample: X 1,..., X n ˆθ 1 2. resample: X 1,..., X n ˆθ 2. B. resample: X 1,..., X n ˆθ B SE(ˆθ) = 1 B ) 2 (ˆθ B 1 b ˆθ b=1 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

133 Bootstrap Bootstrapping confidence intervals General definition: An interval [ˆθ low (X 1,..., X n ) ; ˆθ high (X 1,..., X n )] is called (1 α)-confidence interval if ) P (ˆθ low θ ˆθ high = 1 α If the equality holds only asymptotically, the interval is called asymptotic (1 α)-confidence interval Note: The interval limits are random variables Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

134 Bootstrap Naive bootstrap confidence intervals The naive confidence intervals are sometimes called the other percentile method Generate a large number (B) of resamples and compute ˆθ 1,..., ˆθ B Let ˆθ (1) ˆθ (2)... ˆθ (B) be the order statistic The naive (1 α)-confidence interval is [ˆθ ((α/2)b) ; ˆθ ((1 α/2)b)] Why is this approach often problematic? bootnaiv.r Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

135 Bootstrap Percentile bootstrap confidence intervals To determine confidence intervals we look at the distribution of ˆθ θ Let c 1 and c 2 be the α/2- and (1 α/2)-quantiles, i.e. ) P (c 1 ˆθ θ c 2 = 1 α Then ] [ˆθ c2, ˆθ c1 is the (1 α)-confidence interval Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

136 Bootstrap Percentile bootstrap confidence intervals Approximate the distribution of ˆθ θ by bootstrapping ˆθ ˆθ Let c 1 and c 2 be the α/2- and (1 α/2)-quantiles, i.e. ( ) P c1 ˆθ ˆθ c2 = 1 α We obtain c 1 = ˆθ (α/2b) ˆθ and c 2 = ˆθ ((1 α/2)b) ˆθ and ] [ˆθ c2, ˆθ c1 = [ ] 2ˆθ ˆθ ((1 α/2)b) ; 2ˆθ ˆθ ((α/2)b) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

137 Bootstrap Percentile bootstrap confidence intervals Algorithm of the percentile method: Compute ˆθ from the original sample X 1,..., X n Generate a large number B of resamples and compute ˆθ 1,..., ˆθ B Let ˆθ (1) ˆθ (2)... ˆθ (B) be the order statistics The bootstrap (1 α)-confidence interval is [ ] 2ˆθ ˆθ ((1 α/2)b) ; 2ˆθ ˆθ ((α/2)b) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

138 Bootstrap Example 3 Parametric bootstrap 0.95-confidence interval for λ of an exponential distribution Simple random sample X 1,..., X 8 Estimate λ by ˆλ = 1/ X Estimate the unknown distribution function F by ) Fˆλ ( ˆλx (x) = 1 exp Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

139 Bootstrap Example 3 (contd) The algorithm bootex3.r 1 Compute ˆλ = 1/ X from X 1,..., X 8 2 Draw a simple random sample X 1,..., X 8 3 Compute ˆλ = 1/ X from Fˆλ 4 Repeat steps 1 and 2 a large number B of times, save the results as ˆλ 1,..., ˆλ B 5 The bootstrap 0.95-confidence interval is [ 2ˆλ ˆλ ] ((1 α/2)b) ; 2ˆλ ˆλ ((α/2)b) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

140 Bootstrap Hypothesis testing Test the hypotheses H 0 : θ = θ 0 H 1 : θ θ 0 at significance level α Assumption: Random sample (univariate or multivariate) Test statistic T = ˆθ θ 0 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

141 Bootstrap Hypothesis testing Reject H 0 if the value of the test statistic is less than the α/2-quantile of T or greater than the (1 α/2)-quantile of T The p-value of the test is P( T > t ) How can we estimate the distribution of T under H 0? Wald approach: bootstrap distribution T = ˆθ ˆθ ˆθ = ˆθ(X 1,..., X n ) is calculated from resamples drawn under the alternative hypothesis Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

142 Bootstrap Hypothesis testing Lagrange multiplier approach: bootstrap distribution T # = ˆθ # θ 0 Attention: ˆθ # = ˆθ(X # 1,..., X # n ) is calculated from resamples drawn under the null hypothesis! This approach is particularly suitable for the parametric bootstrap (but can also be used for other bootstraps) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

143 Bootstrap Hypothesis testing: General algorithm 1 Compute test statistic T from X 1,..., X n 2 Draw a resample under the null hypothesis, X # 1,..., X # n, or draw a resample under the alternative hypothesis, X 1,..., X n 3 Compute the test statistic T or T # for the resample 4 Repeat steps 2 and 3 a large number B of times; save the results as T # 1,..., T # B or T 1,..., T B 5 Calculate the α/2-quantile c # 1 (or c 1 ) and the (1 α/2)-quantile c # 2 (or c 2 ) 6 Reject H 0 if the test statistic T is less than c # 1 (or c 1 ) or greater than c # 2 (or c 2 ) Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

144 Bootstrap Example 4 Parametric bootstrap for the parameter λ of an exponential distribution X Exp(λ) Random sample X 1,..., X 8 Hypotheses H 0 : λ = λ 0 = 2 against H 1 : λ λ 0 (at level α = 0.05) Test statistic T = ˆλ 2 Bootstrap of the distribution of T under the alternative hypothesis (Wald approach) bootex4a.r Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

145 Bootstrap Example 4 (contd) Bootstrap of the distribution of T under the null hypothesis (LM approach) Under the null hypothesis, X # Exp(λ 0 ) with λ 0 = 2 bootex4b.r Hence, the distribution of T # is found by an ordinary Monte-Carlo simulation! If T < T # (α/2b) or T > T # ((1 α/2)b), reject H 0 Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

146 Bootstrap Example 5 Nonparametric test for equality of two expectations Two independent variables X and Y with expectations µ X, µ Y and unknown variances σ 2 X, σ2 Y Hypotheses H 0 : µ X = µ Y against H 1 : µ X µ Y Samples X 1,..., X m and Y 1,..., Y n Test statistic T = ˆµ X ˆµ Y ˆσ 2 X + ˆσ2 Y Andrea Beccarini (CQE) Econometrics Winter 2013/ / 156

The outline for Unit 3

The outline for Unit 3 The outline for Unit 3 Unit 1. Introduction: The regression model. Unit 2. Estimation principles. Unit 3: Hypothesis testing principles. 3.1 Wald test. 3.2 Lagrange Multiplier. 3.3 Likelihood Ratio Test.

More information

Introduction to Estimation Methods for Time Series models Lecture 2

Introduction to Estimation Methods for Time Series models Lecture 2 Introduction to Estimation Methods for Time Series models Lecture 2 Fulvio Corsi SNS Pisa Fulvio Corsi Introduction to Estimation () Methods for Time Series models Lecture 2 SNS Pisa 1 / 21 Estimators:

More information

DSGE-Models. Limited Information Estimation General Method of Moments and Indirect Inference

DSGE-Models. Limited Information Estimation General Method of Moments and Indirect Inference DSGE-Models General Method of Moments and Indirect Inference Dr. Andrea Beccarini Willi Mutschler, M.Sc. Institute of Econometrics and Economic Statistics University of Münster willi.mutschler@uni-muenster.de

More information

Econometrics II - EXAM Answer each question in separate sheets in three hours

Econometrics II - EXAM Answer each question in separate sheets in three hours Econometrics II - EXAM Answer each question in separate sheets in three hours. Let u and u be jointly Gaussian and independent of z in all the equations. a Investigate the identification of the following

More information

Econometrics of Panel Data

Econometrics of Panel Data Econometrics of Panel Data Jakub Mućk Meeting # 6 Jakub Mućk Econometrics of Panel Data Meeting # 6 1 / 36 Outline 1 The First-Difference (FD) estimator 2 Dynamic panel data models 3 The Anderson and Hsiao

More information

Economics 536 Lecture 7. Introduction to Specification Testing in Dynamic Econometric Models

Economics 536 Lecture 7. Introduction to Specification Testing in Dynamic Econometric Models University of Illinois Fall 2016 Department of Economics Roger Koenker Economics 536 Lecture 7 Introduction to Specification Testing in Dynamic Econometric Models In this lecture I want to briefly describe

More information

Greene, Econometric Analysis (6th ed, 2008)

Greene, Econometric Analysis (6th ed, 2008) EC771: Econometrics, Spring 2010 Greene, Econometric Analysis (6th ed, 2008) Chapter 17: Maximum Likelihood Estimation The preferred estimator in a wide variety of econometric settings is that derived

More information

Econometrics I KS. Module 2: Multivariate Linear Regression. Alexander Ahammer. This version: April 16, 2018

Econometrics I KS. Module 2: Multivariate Linear Regression. Alexander Ahammer. This version: April 16, 2018 Econometrics I KS Module 2: Multivariate Linear Regression Alexander Ahammer Department of Economics Johannes Kepler University of Linz This version: April 16, 2018 Alexander Ahammer (JKU) Module 2: Multivariate

More information

A better way to bootstrap pairs

A better way to bootstrap pairs A better way to bootstrap pairs Emmanuel Flachaire GREQAM - Université de la Méditerranée CORE - Université Catholique de Louvain April 999 Abstract In this paper we are interested in heteroskedastic regression

More information

Economics 583: Econometric Theory I A Primer on Asymptotics

Economics 583: Econometric Theory I A Primer on Asymptotics Economics 583: Econometric Theory I A Primer on Asymptotics Eric Zivot January 14, 2013 The two main concepts in asymptotic theory that we will use are Consistency Asymptotic Normality Intuition consistency:

More information

Introductory Econometrics

Introductory Econometrics Based on the textbook by Wooldridge: : A Modern Approach Robert M. Kunst robert.kunst@univie.ac.at University of Vienna and Institute for Advanced Studies Vienna November 23, 2013 Outline Introduction

More information

simple if it completely specifies the density of x

simple if it completely specifies the density of x 3. Hypothesis Testing Pure significance tests Data x = (x 1,..., x n ) from f(x, θ) Hypothesis H 0 : restricts f(x, θ) Are the data consistent with H 0? H 0 is called the null hypothesis simple if it completely

More information

DSGE Methods. Estimation of DSGE models: GMM and Indirect Inference. Willi Mutschler, M.Sc.

DSGE Methods. Estimation of DSGE models: GMM and Indirect Inference. Willi Mutschler, M.Sc. DSGE Methods Estimation of DSGE models: GMM and Indirect Inference Willi Mutschler, M.Sc. Institute of Econometrics and Economic Statistics University of Münster willi.mutschler@wiwi.uni-muenster.de Summer

More information

Econometrics Summary Algebraic and Statistical Preliminaries

Econometrics Summary Algebraic and Statistical Preliminaries Econometrics Summary Algebraic and Statistical Preliminaries Elasticity: The point elasticity of Y with respect to L is given by α = ( Y/ L)/(Y/L). The arc elasticity is given by ( Y/ L)/(Y/L), when L

More information

Maximum Likelihood (ML) Estimation

Maximum Likelihood (ML) Estimation Econometrics 2 Fall 2004 Maximum Likelihood (ML) Estimation Heino Bohn Nielsen 1of32 Outline of the Lecture (1) Introduction. (2) ML estimation defined. (3) ExampleI:Binomialtrials. (4) Example II: Linear

More information

Statistics and econometrics

Statistics and econometrics 1 / 36 Slides for the course Statistics and econometrics Part 10: Asymptotic hypothesis testing European University Institute Andrea Ichino September 8, 2014 2 / 36 Outline Why do we need large sample

More information

1 Outline. 1. Motivation. 2. SUR model. 3. Simultaneous equations. 4. Estimation

1 Outline. 1. Motivation. 2. SUR model. 3. Simultaneous equations. 4. Estimation 1 Outline. 1. Motivation 2. SUR model 3. Simultaneous equations 4. Estimation 2 Motivation. In this chapter, we will study simultaneous systems of econometric equations. Systems of simultaneous equations

More information

Generalized Method of Moment

Generalized Method of Moment Generalized Method of Moment CHUNG-MING KUAN Department of Finance & CRETA National Taiwan University June 16, 2010 C.-M. Kuan (Finance & CRETA, NTU Generalized Method of Moment June 16, 2010 1 / 32 Lecture

More information

(θ θ ), θ θ = 2 L(θ ) θ θ θ θ θ (θ )= H θθ (θ ) 1 d θ (θ )

(θ θ ), θ θ = 2 L(θ ) θ θ θ θ θ (θ )= H θθ (θ ) 1 d θ (θ ) Setting RHS to be zero, 0= (θ )+ 2 L(θ ) (θ θ ), θ θ = 2 L(θ ) 1 (θ )= H θθ (θ ) 1 d θ (θ ) O =0 θ 1 θ 3 θ 2 θ Figure 1: The Newton-Raphson Algorithm where H is the Hessian matrix, d θ is the derivative

More information

Chapter 4: Constrained estimators and tests in the multiple linear regression model (Part III)

Chapter 4: Constrained estimators and tests in the multiple linear regression model (Part III) Chapter 4: Constrained estimators and tests in the multiple linear regression model (Part III) Florian Pelgrin HEC September-December 2010 Florian Pelgrin (HEC) Constrained estimators September-December

More information

Chapter 1. GMM: Basic Concepts

Chapter 1. GMM: Basic Concepts Chapter 1. GMM: Basic Concepts Contents 1 Motivating Examples 1 1.1 Instrumental variable estimator....................... 1 1.2 Estimating parameters in monetary policy rules.............. 2 1.3 Estimating

More information

Birkbeck Working Papers in Economics & Finance

Birkbeck Working Papers in Economics & Finance ISSN 1745-8587 Birkbeck Working Papers in Economics & Finance Department of Economics, Mathematics and Statistics BWPEF 1809 A Note on Specification Testing in Some Structural Regression Models Walter

More information

A Primer on Asymptotics

A Primer on Asymptotics A Primer on Asymptotics Eric Zivot Department of Economics University of Washington September 30, 2003 Revised: October 7, 2009 Introduction The two main concepts in asymptotic theory covered in these

More information

Advanced Econometrics

Advanced Econometrics Based on the textbook by Verbeek: A Guide to Modern Econometrics Robert M. Kunst robert.kunst@univie.ac.at University of Vienna and Institute for Advanced Studies Vienna May 16, 2013 Outline Univariate

More information

Econometric Analysis of Cross Section and Panel Data

Econometric Analysis of Cross Section and Panel Data Econometric Analysis of Cross Section and Panel Data Jeffrey M. Wooldridge / The MIT Press Cambridge, Massachusetts London, England Contents Preface Acknowledgments xvii xxiii I INTRODUCTION AND BACKGROUND

More information

Empirical Economic Research, Part II

Empirical Economic Research, Part II Based on the text book by Ramanathan: Introductory Econometrics Robert M. Kunst robert.kunst@univie.ac.at University of Vienna and Institute for Advanced Studies Vienna December 7, 2011 Outline Introduction

More information

Regression with time series

Regression with time series Regression with time series Class Notes Manuel Arellano February 22, 2018 1 Classical regression model with time series Model and assumptions The basic assumption is E y t x 1,, x T = E y t x t = x tβ

More information

Practical Econometrics. for. Finance and Economics. (Econometrics 2)

Practical Econometrics. for. Finance and Economics. (Econometrics 2) Practical Econometrics for Finance and Economics (Econometrics 2) Seppo Pynnönen and Bernd Pape Department of Mathematics and Statistics, University of Vaasa 1. Introduction 1.1 Econometrics Econometrics

More information

Quick Review on Linear Multiple Regression

Quick Review on Linear Multiple Regression Quick Review on Linear Multiple Regression Mei-Yuan Chen Department of Finance National Chung Hsing University March 6, 2007 Introduction for Conditional Mean Modeling Suppose random variables Y, X 1,

More information

Maximum Likelihood Tests and Quasi-Maximum-Likelihood

Maximum Likelihood Tests and Quasi-Maximum-Likelihood Maximum Likelihood Tests and Quasi-Maximum-Likelihood Wendelin Schnedler Department of Economics University of Heidelberg 10. Dezember 2007 Wendelin Schnedler (AWI) Maximum Likelihood Tests and Quasi-Maximum-Likelihood10.

More information

Econ 583 Final Exam Fall 2008

Econ 583 Final Exam Fall 2008 Econ 583 Final Exam Fall 2008 Eric Zivot December 11, 2008 Exam is due at 9:00 am in my office on Friday, December 12. 1 Maximum Likelihood Estimation and Asymptotic Theory Let X 1,...,X n be iid random

More information

Approximate Distributions of the Likelihood Ratio Statistic in a Structural Equation with Many Instruments

Approximate Distributions of the Likelihood Ratio Statistic in a Structural Equation with Many Instruments CIRJE-F-466 Approximate Distributions of the Likelihood Ratio Statistic in a Structural Equation with Many Instruments Yukitoshi Matsushita CIRJE, Faculty of Economics, University of Tokyo February 2007

More information

Economic modelling and forecasting

Economic modelling and forecasting Economic modelling and forecasting 2-6 February 2015 Bank of England he generalised method of moments Ole Rummel Adviser, CCBS at the Bank of England ole.rummel@bankofengland.co.uk Outline Classical estimation

More information

F9 F10: Autocorrelation

F9 F10: Autocorrelation F9 F10: Autocorrelation Feng Li Department of Statistics, Stockholm University Introduction In the classic regression model we assume cov(u i, u j x i, x k ) = E(u i, u j ) = 0 What if we break the assumption?

More information

Chapter 11 GMM: General Formulas and Application

Chapter 11 GMM: General Formulas and Application Chapter 11 GMM: General Formulas and Application Main Content General GMM Formulas esting Moments Standard Errors of Anything by Delta Method Using GMM for Regressions Prespecified weighting Matrices and

More information

Simultaneous Equation Models Learning Objectives Introduction Introduction (2) Introduction (3) Solving the Model structural equations

Simultaneous Equation Models Learning Objectives Introduction Introduction (2) Introduction (3) Solving the Model structural equations Simultaneous Equation Models. Introduction: basic definitions 2. Consequences of ignoring simultaneity 3. The identification problem 4. Estimation of simultaneous equation models 5. Example: IS LM model

More information

MISCELLANEOUS TOPICS RELATED TO LIKELIHOOD. Copyright c 2012 (Iowa State University) Statistics / 30

MISCELLANEOUS TOPICS RELATED TO LIKELIHOOD. Copyright c 2012 (Iowa State University) Statistics / 30 MISCELLANEOUS TOPICS RELATED TO LIKELIHOOD Copyright c 2012 (Iowa State University) Statistics 511 1 / 30 INFORMATION CRITERIA Akaike s Information criterion is given by AIC = 2l(ˆθ) + 2k, where l(ˆθ)

More information

Applied Econometrics (MSc.) Lecture 3 Instrumental Variables

Applied Econometrics (MSc.) Lecture 3 Instrumental Variables Applied Econometrics (MSc.) Lecture 3 Instrumental Variables Estimation - Theory Department of Economics University of Gothenburg December 4, 2014 1/28 Why IV estimation? So far, in OLS, we assumed independence.

More information

Generalized Method of Moments (GMM) Estimation

Generalized Method of Moments (GMM) Estimation Econometrics 2 Fall 2004 Generalized Method of Moments (GMM) Estimation Heino Bohn Nielsen of29 Outline of the Lecture () Introduction. (2) Moment conditions and methods of moments (MM) estimation. Ordinary

More information

Econometrics. Week 4. Fall Institute of Economic Studies Faculty of Social Sciences Charles University in Prague

Econometrics. Week 4. Fall Institute of Economic Studies Faculty of Social Sciences Charles University in Prague Econometrics Week 4 Institute of Economic Studies Faculty of Social Sciences Charles University in Prague Fall 2012 1 / 23 Recommended Reading For the today Serial correlation and heteroskedasticity in

More information

Econometrics Master in Business and Quantitative Methods

Econometrics Master in Business and Quantitative Methods Econometrics Master in Business and Quantitative Methods Helena Veiga Universidad Carlos III de Madrid Models with discrete dependent variables and applications of panel data methods in all fields of economics

More information

Bootstrapping Heteroskedasticity Consistent Covariance Matrix Estimator

Bootstrapping Heteroskedasticity Consistent Covariance Matrix Estimator Bootstrapping Heteroskedasticity Consistent Covariance Matrix Estimator by Emmanuel Flachaire Eurequa, University Paris I Panthéon-Sorbonne December 2001 Abstract Recent results of Cribari-Neto and Zarkos

More information

Wooldridge, Introductory Econometrics, 4th ed. Chapter 15: Instrumental variables and two stage least squares

Wooldridge, Introductory Econometrics, 4th ed. Chapter 15: Instrumental variables and two stage least squares Wooldridge, Introductory Econometrics, 4th ed. Chapter 15: Instrumental variables and two stage least squares Many economic models involve endogeneity: that is, a theoretical relationship does not fit

More information

Econometrics. Week 8. Fall Institute of Economic Studies Faculty of Social Sciences Charles University in Prague

Econometrics. Week 8. Fall Institute of Economic Studies Faculty of Social Sciences Charles University in Prague Econometrics Week 8 Institute of Economic Studies Faculty of Social Sciences Charles University in Prague Fall 2012 1 / 25 Recommended Reading For the today Instrumental Variables Estimation and Two Stage

More information

Spring 2017 Econ 574 Roger Koenker. Lecture 14 GEE-GMM

Spring 2017 Econ 574 Roger Koenker. Lecture 14 GEE-GMM University of Illinois Department of Economics Spring 2017 Econ 574 Roger Koenker Lecture 14 GEE-GMM Throughout the course we have emphasized methods of estimation and inference based on the principle

More information

Econometrics II - EXAM Outline Solutions All questions have 25pts Answer each question in separate sheets

Econometrics II - EXAM Outline Solutions All questions have 25pts Answer each question in separate sheets Econometrics II - EXAM Outline Solutions All questions hae 5pts Answer each question in separate sheets. Consider the two linear simultaneous equations G with two exogeneous ariables K, y γ + y γ + x δ

More information

1 Motivation for Instrumental Variable (IV) Regression

1 Motivation for Instrumental Variable (IV) Regression ECON 370: IV & 2SLS 1 Instrumental Variables Estimation and Two Stage Least Squares Econometric Methods, ECON 370 Let s get back to the thiking in terms of cross sectional (or pooled cross sectional) data

More information

Lecture: Simultaneous Equation Model (Wooldridge s Book Chapter 16)

Lecture: Simultaneous Equation Model (Wooldridge s Book Chapter 16) Lecture: Simultaneous Equation Model (Wooldridge s Book Chapter 16) 1 2 Model Consider a system of two regressions y 1 = β 1 y 2 + u 1 (1) y 2 = β 2 y 1 + u 2 (2) This is a simultaneous equation model

More information

Bootstrap Testing in Nonlinear Models

Bootstrap Testing in Nonlinear Models !" # $%% %%% Bootstrap Testing in Nonlinear Models GREQAM Centre de la Vieille Charité 2 rue de la Charité 13002 Marseille, France by Russell Davidson russell@ehesscnrs-mrsfr and James G MacKinnon Department

More information

Generalized Method of Moments Estimation

Generalized Method of Moments Estimation Generalized Method of Moments Estimation Lars Peter Hansen March 0, 2007 Introduction Generalized methods of moments (GMM) refers to a class of estimators which are constructed from exploiting the sample

More information

Bootstrap Testing in Econometrics

Bootstrap Testing in Econometrics Presented May 29, 1999 at the CEA Annual Meeting Bootstrap Testing in Econometrics James G MacKinnon Queen s University at Kingston Introduction: Economists routinely compute test statistics of which the

More information

Bootstrap Methods in Econometrics

Bootstrap Methods in Econometrics Bootstrap Methods in Econometrics Department of Economics McGill University Montreal, Quebec, Canada H3A 2T7 by Russell Davidson email: russell.davidson@mcgill.ca and James G. MacKinnon Department of Economics

More information

8. Instrumental variables regression

8. Instrumental variables regression 8. Instrumental variables regression Recall: In Section 5 we analyzed five sources of estimation bias arising because the regressor is correlated with the error term Violation of the first OLS assumption

More information

Econ 510 B. Brown Spring 2014 Final Exam Answers

Econ 510 B. Brown Spring 2014 Final Exam Answers Econ 510 B. Brown Spring 2014 Final Exam Answers Answer five of the following questions. You must answer question 7. The question are weighted equally. You have 2.5 hours. You may use a calculator. Brevity

More information

11. Bootstrap Methods

11. Bootstrap Methods 11. Bootstrap Methods c A. Colin Cameron & Pravin K. Trivedi 2006 These transparencies were prepared in 20043. They can be used as an adjunct to Chapter 11 of our subsequent book Microeconometrics: Methods

More information

Econometrics I, Estimation

Econometrics I, Estimation Econometrics I, Estimation Department of Economics Stanford University September, 2008 Part I Parameter, Estimator, Estimate A parametric is a feature of the population. An estimator is a function of the

More information

GARCH Models Estimation and Inference

GARCH Models Estimation and Inference GARCH Models Estimation and Inference Eduardo Rossi University of Pavia December 013 Rossi GARCH Financial Econometrics - 013 1 / 1 Likelihood function The procedure most often used in estimating θ 0 in

More information

Increasing the Power of Specification Tests. November 18, 2018

Increasing the Power of Specification Tests. November 18, 2018 Increasing the Power of Specification Tests T W J A. H U A MIT November 18, 2018 A. This paper shows how to increase the power of Hausman s (1978) specification test as well as the difference test in a

More information

G. S. Maddala Kajal Lahiri. WILEY A John Wiley and Sons, Ltd., Publication

G. S. Maddala Kajal Lahiri. WILEY A John Wiley and Sons, Ltd., Publication G. S. Maddala Kajal Lahiri WILEY A John Wiley and Sons, Ltd., Publication TEMT Foreword Preface to the Fourth Edition xvii xix Part I Introduction and the Linear Regression Model 1 CHAPTER 1 What is Econometrics?

More information

Fall 2017 STAT 532 Homework Peter Hoff. 1. Let P be a probability measure on a collection of sets A.

Fall 2017 STAT 532 Homework Peter Hoff. 1. Let P be a probability measure on a collection of sets A. 1. Let P be a probability measure on a collection of sets A. (a) For each n N, let H n be a set in A such that H n H n+1. Show that P (H n ) monotonically converges to P ( k=1 H k) as n. (b) For each n

More information

8. Hypothesis Testing

8. Hypothesis Testing FE661 - Statistical Methods for Financial Engineering 8. Hypothesis Testing Jitkomut Songsiri introduction Wald test likelihood-based tests significance test for linear regression 8-1 Introduction elements

More information

Økonomisk Kandidateksamen 2004 (I) Econometrics 2. Rettevejledning

Økonomisk Kandidateksamen 2004 (I) Econometrics 2. Rettevejledning Økonomisk Kandidateksamen 2004 (I) Econometrics 2 Rettevejledning This is a closed-book exam (uden hjælpemidler). Answer all questions! The group of questions 1 to 4 have equal weight. Within each group,

More information

Size and Power of the RESET Test as Applied to Systems of Equations: A Bootstrap Approach

Size and Power of the RESET Test as Applied to Systems of Equations: A Bootstrap Approach Size and Power of the RESET Test as Applied to Systems of Equations: A Bootstrap Approach Ghazi Shukur Panagiotis Mantalos International Business School Department of Statistics Jönköping University Lund

More information

Math 494: Mathematical Statistics

Math 494: Mathematical Statistics Math 494: Mathematical Statistics Instructor: Jimin Ding jmding@wustl.edu Department of Mathematics Washington University in St. Louis Class materials are available on course website (www.math.wustl.edu/

More information

Inference about the Indirect Effect: a Likelihood Approach

Inference about the Indirect Effect: a Likelihood Approach Discussion Paper: 2014/10 Inference about the Indirect Effect: a Likelihood Approach Noud P.A. van Giersbergen www.ase.uva.nl/uva-econometrics Amsterdam School of Economics Department of Economics & Econometrics

More information

ECON 4160, Spring term Lecture 12

ECON 4160, Spring term Lecture 12 ECON 4160, Spring term 2013. Lecture 12 Non-stationarity and co-integration 2/2 Ragnar Nymoen Department of Economics 13 Nov 2013 1 / 53 Introduction I So far we have considered: Stationary VAR, with deterministic

More information

An estimate of the long-run covariance matrix, Ω, is necessary to calculate asymptotic

An estimate of the long-run covariance matrix, Ω, is necessary to calculate asymptotic Chapter 6 ESTIMATION OF THE LONG-RUN COVARIANCE MATRIX An estimate of the long-run covariance matrix, Ω, is necessary to calculate asymptotic standard errors for the OLS and linear IV estimators presented

More information

Advanced Quantitative Methods: maximum likelihood

Advanced Quantitative Methods: maximum likelihood Advanced Quantitative Methods: Maximum Likelihood University College Dublin 4 March 2014 1 2 3 4 5 6 Outline 1 2 3 4 5 6 of straight lines y = 1 2 x + 2 dy dx = 1 2 of curves y = x 2 4x + 5 of curves y

More information

Econometrics of Panel Data

Econometrics of Panel Data Econometrics of Panel Data Jakub Mućk Meeting # 3 Jakub Mućk Econometrics of Panel Data Meeting # 3 1 / 21 Outline 1 Fixed or Random Hausman Test 2 Between Estimator 3 Coefficient of determination (R 2

More information

The generalized method of moments

The generalized method of moments Robert M. Kunst robert.kunst@univie.ac.at University of Vienna and Institute for Advanced Studies Vienna February 2008 Based on the book Generalized Method of Moments by Alastair R. Hall (2005), Oxford

More information

Inference Based on the Wild Bootstrap

Inference Based on the Wild Bootstrap Inference Based on the Wild Bootstrap James G. MacKinnon Department of Economics Queen s University Kingston, Ontario, Canada K7L 3N6 email: jgm@econ.queensu.ca Ottawa September 14, 2012 The Wild Bootstrap

More information

Panel Data Models. Chapter 5. Financial Econometrics. Michael Hauser WS17/18 1 / 63

Panel Data Models. Chapter 5. Financial Econometrics. Michael Hauser WS17/18 1 / 63 1 / 63 Panel Data Models Chapter 5 Financial Econometrics Michael Hauser WS17/18 2 / 63 Content Data structures: Times series, cross sectional, panel data, pooled data Static linear panel data models:

More information

Review of Classical Least Squares. James L. Powell Department of Economics University of California, Berkeley

Review of Classical Least Squares. James L. Powell Department of Economics University of California, Berkeley Review of Classical Least Squares James L. Powell Department of Economics University of California, Berkeley The Classical Linear Model The object of least squares regression methods is to model and estimate

More information

Linear models. Linear models are computationally convenient and remain widely used in. applied econometric research

Linear models. Linear models are computationally convenient and remain widely used in. applied econometric research Linear models Linear models are computationally convenient and remain widely used in applied econometric research Our main focus in these lectures will be on single equation linear models of the form y

More information

Economics 308: Econometrics Professor Moody

Economics 308: Econometrics Professor Moody Economics 308: Econometrics Professor Moody References on reserve: Text Moody, Basic Econometrics with Stata (BES) Pindyck and Rubinfeld, Econometric Models and Economic Forecasts (PR) Wooldridge, Jeffrey

More information

Multiple Linear Regression

Multiple Linear Regression Multiple Linear Regression Asymptotics Asymptotics Multiple Linear Regression: Assumptions Assumption MLR. (Linearity in parameters) Assumption MLR. (Random Sampling from the population) We have a random

More information

Spatial Regression. 9. Specification Tests (1) Luc Anselin. Copyright 2017 by Luc Anselin, All Rights Reserved

Spatial Regression. 9. Specification Tests (1) Luc Anselin.   Copyright 2017 by Luc Anselin, All Rights Reserved Spatial Regression 9. Specification Tests (1) Luc Anselin http://spatial.uchicago.edu 1 basic concepts types of tests Moran s I classic ML-based tests LM tests 2 Basic Concepts 3 The Logic of Specification

More information

Lecture 14 More on structural estimation

Lecture 14 More on structural estimation Lecture 14 More on structural estimation Economics 8379 George Washington University Instructor: Prof. Ben Williams traditional MLE and GMM MLE requires a full specification of a model for the distribution

More information

Problem Set #6: OLS. Economics 835: Econometrics. Fall 2012

Problem Set #6: OLS. Economics 835: Econometrics. Fall 2012 Problem Set #6: OLS Economics 835: Econometrics Fall 202 A preliminary result Suppose we have a random sample of size n on the scalar random variables (x, y) with finite means, variances, and covariance.

More information

1 Appendix A: Matrix Algebra

1 Appendix A: Matrix Algebra Appendix A: Matrix Algebra. Definitions Matrix A =[ ]=[A] Symmetric matrix: = for all and Diagonal matrix: 6=0if = but =0if 6= Scalar matrix: the diagonal matrix of = Identity matrix: the scalar matrix

More information

Dealing With Endogeneity

Dealing With Endogeneity Dealing With Endogeneity Junhui Qian December 22, 2014 Outline Introduction Instrumental Variable Instrumental Variable Estimation Two-Stage Least Square Estimation Panel Data Endogeneity in Econometrics

More information

Instrumental Variables and GMM: Estimation and Testing. Steven Stillman, New Zealand Department of Labour

Instrumental Variables and GMM: Estimation and Testing. Steven Stillman, New Zealand Department of Labour Instrumental Variables and GMM: Estimation and Testing Christopher F Baum, Boston College Mark E. Schaffer, Heriot Watt University Steven Stillman, New Zealand Department of Labour March 2003 Stata Journal,

More information

Econ 423 Lecture Notes: Additional Topics in Time Series 1

Econ 423 Lecture Notes: Additional Topics in Time Series 1 Econ 423 Lecture Notes: Additional Topics in Time Series 1 John C. Chao April 25, 2017 1 These notes are based in large part on Chapter 16 of Stock and Watson (2011). They are for instructional purposes

More information

TESTING FOR NORMALITY IN THE LINEAR REGRESSION MODEL: AN EMPIRICAL LIKELIHOOD RATIO TEST

TESTING FOR NORMALITY IN THE LINEAR REGRESSION MODEL: AN EMPIRICAL LIKELIHOOD RATIO TEST Econometrics Working Paper EWP0402 ISSN 1485-6441 Department of Economics TESTING FOR NORMALITY IN THE LINEAR REGRESSION MODEL: AN EMPIRICAL LIKELIHOOD RATIO TEST Lauren Bin Dong & David E. A. Giles Department

More information

Review of Econometrics

Review of Econometrics Review of Econometrics Zheng Tian June 5th, 2017 1 The Essence of the OLS Estimation Multiple regression model involves the models as follows Y i = β 0 + β 1 X 1i + β 2 X 2i + + β k X ki + u i, i = 1,...,

More information

Testing Hypothesis. Maura Mezzetti. Department of Economics and Finance Università Tor Vergata

Testing Hypothesis. Maura Mezzetti. Department of Economics and Finance Università Tor Vergata Maura Department of Economics and Finance Università Tor Vergata Hypothesis Testing Outline It is a mistake to confound strangeness with mystery Sherlock Holmes A Study in Scarlet Outline 1 The Power Function

More information

ORTHOGONALITY TESTS IN LINEAR MODELS SEUNG CHAN AHN ARIZONA STATE UNIVERSITY ABSTRACT

ORTHOGONALITY TESTS IN LINEAR MODELS SEUNG CHAN AHN ARIZONA STATE UNIVERSITY ABSTRACT ORTHOGONALITY TESTS IN LINEAR MODELS SEUNG CHAN AHN ARIZONA STATE UNIVERSITY ABSTRACT This paper considers several tests of orthogonality conditions in linear models where stochastic errors may be heteroskedastic

More information

AN EMPIRICAL LIKELIHOOD RATIO TEST FOR NORMALITY

AN EMPIRICAL LIKELIHOOD RATIO TEST FOR NORMALITY Econometrics Working Paper EWP0401 ISSN 1485-6441 Department of Economics AN EMPIRICAL LIKELIHOOD RATIO TEST FOR NORMALITY Lauren Bin Dong & David E. A. Giles Department of Economics, University of Victoria

More information

LECTURE 10: NEYMAN-PEARSON LEMMA AND ASYMPTOTIC TESTING. The last equality is provided so this can look like a more familiar parametric test.

LECTURE 10: NEYMAN-PEARSON LEMMA AND ASYMPTOTIC TESTING. The last equality is provided so this can look like a more familiar parametric test. Economics 52 Econometrics Professor N.M. Kiefer LECTURE 1: NEYMAN-PEARSON LEMMA AND ASYMPTOTIC TESTING NEYMAN-PEARSON LEMMA: Lesson: Good tests are based on the likelihood ratio. The proof is easy in the

More information

Specification testing in panel data models estimated by fixed effects with instrumental variables

Specification testing in panel data models estimated by fixed effects with instrumental variables Specification testing in panel data models estimated by fixed effects wh instrumental variables Carrie Falls Department of Economics Michigan State Universy Abstract I show that a handful of the regressions

More information

Introduction Large Sample Testing Composite Hypotheses. Hypothesis Testing. Daniel Schmierer Econ 312. March 30, 2007

Introduction Large Sample Testing Composite Hypotheses. Hypothesis Testing. Daniel Schmierer Econ 312. March 30, 2007 Hypothesis Testing Daniel Schmierer Econ 312 March 30, 2007 Basics Parameter of interest: θ Θ Structure of the test: H 0 : θ Θ 0 H 1 : θ Θ 1 for some sets Θ 0, Θ 1 Θ where Θ 0 Θ 1 = (often Θ 1 = Θ Θ 0

More information

Intermediate Econometrics

Intermediate Econometrics Intermediate Econometrics Heteroskedasticity Text: Wooldridge, 8 July 17, 2011 Heteroskedasticity Assumption of homoskedasticity, Var(u i x i1,..., x ik ) = E(u 2 i x i1,..., x ik ) = σ 2. That is, the

More information

Chapter 6. Panel Data. Joan Llull. Quantitative Statistical Methods II Barcelona GSE

Chapter 6. Panel Data. Joan Llull. Quantitative Statistical Methods II Barcelona GSE Chapter 6. Panel Data Joan Llull Quantitative Statistical Methods II Barcelona GSE Introduction Chapter 6. Panel Data 2 Panel data The term panel data refers to data sets with repeated observations over

More information

Dynamic Regression Models (Lect 15)

Dynamic Regression Models (Lect 15) Dynamic Regression Models (Lect 15) Ragnar Nymoen University of Oslo 21 March 2013 1 / 17 HGL: Ch 9; BN: Kap 10 The HGL Ch 9 is a long chapter, and the testing for autocorrelation part we have already

More information

Statistics - Lecture One. Outline. Charlotte Wickham 1. Basic ideas about estimation

Statistics - Lecture One. Outline. Charlotte Wickham  1. Basic ideas about estimation Statistics - Lecture One Charlotte Wickham wickham@stat.berkeley.edu http://www.stat.berkeley.edu/~wickham/ Outline 1. Basic ideas about estimation 2. Method of Moments 3. Maximum Likelihood 4. Confidence

More information

Instrumental Variables

Instrumental Variables Università di Pavia 2010 Instrumental Variables Eduardo Rossi Exogeneity Exogeneity Assumption: the explanatory variables which form the columns of X are exogenous. It implies that any randomness in the

More information

Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data

Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data July 2012 Bangkok, Thailand Cosimo Beverelli (World Trade Organization) 1 Content a) Classical regression model b)

More information

3. Linear Regression With a Single Regressor

3. Linear Regression With a Single Regressor 3. Linear Regression With a Single Regressor Econometrics: (I) Application of statistical methods in empirical research Testing economic theory with real-world data (data analysis) 56 Econometrics: (II)

More information

GARCH Models Estimation and Inference. Eduardo Rossi University of Pavia

GARCH Models Estimation and Inference. Eduardo Rossi University of Pavia GARCH Models Estimation and Inference Eduardo Rossi University of Pavia Likelihood function The procedure most often used in estimating θ 0 in ARCH models involves the maximization of a likelihood function

More information

LECTURE 11. Introduction to Econometrics. Autocorrelation

LECTURE 11. Introduction to Econometrics. Autocorrelation LECTURE 11 Introduction to Econometrics Autocorrelation November 29, 2016 1 / 24 ON PREVIOUS LECTURES We discussed the specification of a regression equation Specification consists of choosing: 1. correct

More information