HEC Lausanne - Advanced Econometrics Final Exam January 2014. Christophe Hurlin Exercise 1: MLE, parametric tests and the trilogy (30 points) Consider a sample fX1 ; ::; XN g of i:i:d: continuous random variables, where Xi 2 [0; c] has a pdf given by 1 1 fX (x; ) = 1= x 8x 0 (1) c where the boundary c is known and is a positive parameter (unknown). Part I: Maximum Likelihood Estimation (10 points) Question 1 (2 points). Write the log-likelihood of the sample fx1 ; ::; xN g as a function of the unknown parameter : Question 2 (2 points). Show that the ML estimator b of the parameters b = ln (c) is: N 1 X ln Xi N i=1 Question 3 (2 points). Admit that E (ln (Xi )) = ln (c) weakly consistent. (2) : Show that the ML estimator b is Question 4 (2 points). Determine the asymptotic distribution of b: Question 5 (2 points). Propose two alternative consistent estimators of the (average) Fisher information matrix for one observation. Deduce from them two alternative estimators for the asymptotic variance of b: Part II: Parametric tests (10 points) Question 6 (2 points). Consider the test : H0 : = 0 against H1 : = 1 with 1 < 0 : Show that the rejection region of the uniformly most powerful (UMP) test of size has the general form: n o W = x : b (x) < A (3) and b (x) denotes the realisation of the where A is a constant determined by the size estimator b for the sample x: Question 7 (2 points). Consider that N is su¢ ciently large to assume that: where size : b asy N 2 ; N (4) denotes the true value of : Determine the critical value A of the UMP test of Mid-term 2013. Advanced Econometrics. HEC Lausanne. C. Hurlin 2 Question 8 (2 points). Consider the one-sided test: H0 : = 0 against H1 : < 0 Determine the rejection region of the UMP test of size . Question 9 (2 points). Consider the two-sided test: H0 : = 0 against H1 : 6= 0 Determine the rejection region of the test of size . Question 10 (2 points). Show that the two-sided test of question 9 is consistent. Part III: The trilogy (10 points) Question 11 (3 points). Assume that ln (c) = 4: Consider a sample of size N = 100 for which the realisation of the ML estimator b (x) is equal to 2. We want to test: H0 : = 1:5 against H1 : 6= 1:5 Compute the LR test statistic and the corresponding critical region for a signi…cance level of 5%. What is your conclusion for this sample? Remark: the 95% critical value of chi-squared distribution with one degree of freedom is 20:95 (1) = 3:8415: Question 12 (3 points). Consider the same test and the same sample as in question 11. Compute the Wald test statistic and the corresponding critical region for a signi…cance level of 5%. What is your conclusion for this sample? Remark: a consistent estimator of the asymptotic variance of the ML estimator b is given by: b asy b = V b2 N (5) Question 13 (4 points). Consider the same test and the same sample as in questions 11 and 12. Compute the LM (or score) test statistic and the corresponding critical region for a signi…cance level of 5%. What is your conclusion for this sample? Remark: in this case, the LM test statistic is de…ned as to be: LM = s2N ( c ; xi ) b I N ( c) (6) where c denotes the constrained value of the parameter under the null, sN ( ; x) is the score of the unconstrained model and b I N ( c ) is an estimator of the Fisher information number of the unconstrained model (for the sample) evaluated at c . Mid-term 2013. Advanced Econometrics. HEC Lausanne. C. Hurlin 3 Exercise 2: Logit model and MLE (15 points) Consider a binary random variable yi that takes two values, 0 or 1: yi = 1 0 with Pr ( yi = 1j xi ) with 1 (7) Pr ( yi = 1j xi ) The conditional probability of the event yi = 1 given xi is given by a logit model: Pr ( yi = 1j xi ) = (x|i ) (8) | | where = ( 1 :: K ) is a K 1 vector of parameters, xi = (x1i ::xKi ) is a K 1 vector of individual characteristics (stochastic) including the constant term (x1i = 1; 8i) and (:) denotes the cdf of the logistic distribution given by: (x) = exp (x) 1 + exp (x) (9) N In order to estimate these parameters, you have access to an i.i.d. sample fyi ; xi gi=1 . Remark : in these notations, I don’t distinguish a random variable (or vector) from its realisation. N Question 1 (2 points). Show that the log-likelihood of the sample fyi ; xi gi=1 is: `N ( ; yj x) = N X yi ln (x|i ) + i=1 N X (1 yi ) ln (1 (x|i )) (10) i=1 Question 2 (2 points). Denote by (x) = (x) (1 (x)) the pdf of the logistic distribution. Show that the score vector of the logit model can be expressed as: sN ( ; yj x) = N X xi (yi (x|i )) (11) i=1 Question 3 (2 points). Determine the Hessian matrix. Question 4 (4 points). Consider the following Matlab code and data set. From these elements, write a Matlab code to compute the MLE estimates of the three parameters of a logit model. Remark 1 : use the fminsearch command and note that there is no built-in function for the logistic pdf and cdf. Remark 2: For the initial conditions of the numerical optimization algorithm, please use the OLS estimator. Figure 1: Matlab code Mid-term 2013. Advanced Econometrics. HEC Lausanne. C. Hurlin 4 Figure 2: Data set Question 5 (2 points). Show that a consistent estimator for the asymptotic variance covariance matrix of the MLE estimator b is given by: b asy b = V N X i=1 x|i b xi x|i (12) Question 6 (3 points). Write a Matlab code to compute the asymptotic standard errors of the three parameters. Remark: use a for - end loop to compute the sum of the Hessian matrices associated to each observation. Mid-term 2013. Advanced Econometrics. HEC Lausanne. C. Hurlin 5 Exercise 3: OLS and heteroscedasticity (5 points) Comment the Matlab code displayed in Figure 3. Do not comment in detail each instruction, but explain the general design, the main formulas and the goal of the code. Figure 3: Matlab code