Final Exam Additional Practice Questions

These are recommended additional practice questions for the Final Exam. They are not meant to be comprehensive, but rather questions covering the material since the previous homework. They do not need to be turned in.

Hansen Econometrics: 2.5, 2.6, 2.7, 2.19, and Additional Questions 1 and 2 below.

In case you don’t have that book yet, here is the text of those problems. For these problems, \(m(X) = \mathbb{E}[Y|X]\), \(e = Y - m(X)\) is the CEF error, \(\sigma^2(X) = \mathbb{E}[e^2|X]\) is the conditional variance, and \(\sigma^2 = \mathbb{E}[e^2]\).

Hansen Econometrics 2.5: Show that \(\sigma^2(X)\) is the best predictor of \(e^2\) given \(X\):

  1. Write down the mean-squared error of a predictor \(h(X)\) for \(e^2\).

  2. What does it mean to be predicting \(e^2\)?

  3. Show that \(\sigma^2(X)\) minimizes the mean-squared error and is thus the best predictor.

Hansen Econometrics 2.6: Use \(Y = m(X) + e\) to show that \(\textrm{var}(Y) = \textrm{var}(m(X)) + \sigma^2\).

Hansen Econometrics 2.7: Show that the conditional variance can be written as \(\sigma^2(X) = \mathbb{E}[Y^2|X] - \big(\mathbb{E}[Y|X]\big)^2\).

Hansen Econometrics 2.19: Let \[ d(b) = \mathbb{E}\Big[\big(m(X) - X'b\big)^2\Big] \] Show that \[ \beta = \underset{b \in \mathbb{R}^k}{\textrm{argmin}} \ d(b) = \big(\mathbb{E}[XX']\big)^{-1}\mathbb{E}[X m(X)] = \big(\mathbb{E}[XX']\big)^{-1}\mathbb{E}[XY] \] Hint: To show \(\mathbb{E}[Xm(X)] = \mathbb{E}[XY]\), use the law of iterated expectations.

Additional Question 1: Suppose that you work for an airline and you are interested in predicting the number of passengers on flights from Atlanta to Memphis. Let \(Y\) denote the number of passengers on a flight, \(Morning\) be equal to 1 for a flight that leaves in the morning and 0 otherwise, \(Evening\) be equal to 1 for a flight that leaves in the evening and 0 otherwise (so that a flight with \(Morning = 0\) and \(Evening = 0\) leaves in the afternoon), \(Weekday\) be equal to 1 for a flight on a weekday and 0 for a flight on the weekend, and \(Fare\) be the price of a ticket (in dollars). Suppose that \[ \mathbb{E}[Y | Morning, Evening, Weekday, Fare] = 150 + 20 \, Morning + 10 \, Evening - 15 \, Weekday + 25 \, Morning \cdot Weekday - 0.4 \, Fare \]

  1. What is the expected number of passengers on a Saturday morning flight with a fare of $200?

  2. What is the expected number of passengers on a Tuesday afternoon flight with a fare of $150?

  3. Among weekday flights with the same fare, what is the difference in the expected number of passengers between morning and afternoon flights? How does this compare to the same difference among weekend flights?

  4. Explain why the model does not also include an indicator variable for an afternoon flight (Hint: think about what would happen to \(\mathbb{E}[XX']\) if it did).

Additional Question 2:

  1. Consider the following model \[ Score = 50 + 5 \, Hours + 10 \, GPA + U \] where \(Score\) is a student’s score on an exam, \(Hours\) is the number of hours the student studied for the exam, \(GPA\) is the student’s current GPA, and \(\mathbb{E}[U | Hours, GPA] = 0\). Carefully explain how to interpret the coefficient on \(Hours\).

  2. Now let \(InMajor\) be equal to 1 if the class is in the student’s major and 0 otherwise, and consider the model \[ Score = 45 + 4 \, Hours + 10 \, GPA + 3 \, InMajor + 2 \, Hours \cdot InMajor + U \] where \(\mathbb{E}[U | Hours, GPA, InMajor] = 0\). What is the marginal contrast for \(Hours\) in this model? Provide an expression for the coefficient on \(Hours \cdot InMajor\) in terms of marginal contrasts and explain what it suggests about interpreting this coefficient.