Skip to content

Commit

Permalink
ps2 updates; sl6/7 final; sl8 start
Browse files Browse the repository at this point in the history
  • Loading branch information
edrubin committed Feb 5, 2019
1 parent e47e277 commit cbf33c8
Show file tree
Hide file tree
Showing 32 changed files with 4,491 additions and 34 deletions.
Binary file modified LectureNotes/06Consistency/06_consistency.pdf
Binary file not shown.
69 changes: 60 additions & 9 deletions LectureNotes/07TimeSeries/07_time_series.Rmd
Expand Up @@ -752,7 +752,7 @@ $$
\end{align}
$$

_I.e._, to guarantee the numerator equals zero, we need $\mathop{\boldsymbol{E}}\left[ u_t | X \right] = 0$.
_I.e._, to guarantee the numerator equals zero, we need $\mathop{\boldsymbol{E}}\left[ u_t | X \right] = 0$—for both $\mathop{\boldsymbol{E}}\left[ u_t | X_t \right] = 0$ *and* $\mathop{\boldsymbol{E}}\left[ u_t | X_{s} \right] = 0$ $(s\neq t)$.

--

Expand All @@ -767,16 +767,24 @@ To see why dynamic models with lagged outcome variables violate our exogeneity a

$$
\begin{align}
\color{#e64173}{\text{Births}_t} &= \beta_0 + \beta_1 \text{Income}_t + \beta_2 \text{Births}_{t-1} + \color{#6A5ACD}{u_t} \tag{1}\\[0.3em]
\text{Births}_{t+1} &= \beta_0 + \beta_1 \color{#e64173}{\text{Births}_t} + \beta_2 \text{Births}_{t} + u_{t+1} \tag{2}
\color{#e64173}{\text{Births}_t} &= \beta_0 + \beta_1 \text{Income}_t + \beta_2 \text{Births}_{t-1} + \color{#e64173}{u_t} \tag{1}\\[0.3em]
\text{Births}_{t+1} &= \beta_0 + \beta_1 \text{Income}_{t+1} + \beta_2 \color{#e64173}{\text{Births}_t} + u_{t+1} \tag{2}
\end{align}
$$

In $(1)$, $\color{#6A5ACD}{u_t}$ clearly correlates with $\color{#e64173}{\text{Births}_t}$.
--

In $(1)$, $\color{#e64173}{u_t}$ clearly correlates with $\color{#e64173}{\text{Births}_t}$.

--

However, $\color{#e64173}{\text{Births}_t}$ is a regressor in $(2)$ (lagged dependent variable).

However, $\color{#e64173}{\text{Births}_t}$ is a regressor in $(2)$.
--

∴ The disturbance in $t$ $\left(\color{#e64173}{u_t}\right)$ correlates with a regressor in $t+1$ $\left(\color{#e64173}{\text{Births}_t}\right)$.

Thus our disturbance $\color{#6A5ACD}{u_t}$ is correlated with a regressor.
--

This correlation violates the second part of our exogeneity requirement.
---
Expand All @@ -790,7 +798,9 @@ All is not lost.

--

For OLS to be consistent, we only need .hi[contemporaneous exogeneity]: a disturbance is uncorrelated with explanatory variables *in the same period*, _i.e._,
For OLS to be consistent, we only need .hi[contemporaneous exogeneity].

.hi[Contemporaneous exogeneity:] each disturbance is uncorrelated with the explanatory variables .pink[in the same period], _i.e._,

$$
\begin{align}
Expand All @@ -801,9 +811,50 @@ $$
--

With contemporaneous exogeneity, OLS estimates for the coefficients in a time series model are consistent.
---

To see why OLS is consistent with contemporaneous exogeneity, consider the OLS estimate for $\beta_1$ in

$$
\begin{align}
\text{Births}_t &= \beta_0 + \beta_1 \text{Births}_{t-1} + u_t
\end{align}
$$

which we've shown (a few times) can be written

$$
\begin{align}
\hat{\beta}_1
&= \beta_1 + \dfrac{\sum_t \left( \text{Births}_{t-1} - \overline{\text{Births} } \right)u_t}{\sum_t \left( \text{Births}_{t-1} - \overline{\text{Births} } \right)^2}
\end{align}
$$

---

$$
\begin{align}
\hat{\beta}_1
&= \beta_1 + \dfrac{\sum_t \left( \text{Births}_{t-1} - \overline{\text{Births} } \right)u_t}{\sum_t \left( \text{Births}_{t-1} - \overline{\text{Births} } \right)^2} \\[0.3em]
&= \beta_1 + \dfrac{\sum_t \left( \text{Births}_{t-1} - \overline{\text{Births} } \right)u_t/T}{\sum_t \left( \text{Births}_{t-1} - \overline{\text{Births} } \right)^2/T} \\[0.3em]
&= \beta_1 + \dfrac{\color{#e64173}{\mathop{\text{Cov}} \left( \text{Births}_{t-1},\, u_t \right)}}{\mathop{\text{Var}} \left( \text{Births}_{t} \right)}
\end{align}
$$

--

$\hspace{8.3em}=\beta_1\hspace{1em}$ **if** $\color{#e64173}{\mathop{\text{Cov}} \left( \text{Births}_{t-1},\, u_t \right)=0}$

--

.hi[Contemporaneous exogeneity] gives us $\color{#e64173}{\mathop{\text{Cov}} \left( \text{Births}_{t-1},\, u_t \right)=0}$.
---

Thus, if we assume .hi[contemporaneous exogeneity], OLS is consistent for the coefficients, *even for models with lagged dependent variables*.
---
layout: false
class: inverse, middle
# The end.
---
layout: false
# Table of contents
Expand All @@ -825,14 +876,14 @@ layout: false
1. ["ADL" models](#adl)
- [Underlying complexity](#adl_complexity)
- [Equilibrium effects](#adl_eq)
- [Partial adjustment models](#adl_partial)
- [Partial-adjustment models](#adl_partial)
1. [Unbiasedness of OLS](#ols_unbiased)
1. [Consistency of OLS](#ols_consistency)
]

---
exclude: true

```{R, generate pdfs, include = F}
```{R, generate pdfs, include = F, eval = T}
system("decktape remark 07_time_series.html 07_time_series.pdf --chrome-arg=--allow-file-access-from-files")
```
71 changes: 61 additions & 10 deletions LectureNotes/07TimeSeries/07_time_series.html
Expand Up @@ -4,7 +4,7 @@
<title>Time series</title>
<meta charset="utf-8">
<meta name="author" content="Edward Rubin" />
<meta name="date" content="2019-01-31" />
<meta name="date" content="2019-02-04" />
<link href="07_time_series_files/remark-css/default.css" rel="stylesheet" />
<link href="07_time_series_files/remark-css/metropolis.css" rel="stylesheet" />
<link href="07_time_series_files/remark-css/metropolis-fonts.css" rel="stylesheet" />
Expand All @@ -17,7 +17,7 @@
# Time series
## EC 421, Set 7
### Edward Rubin
### 31 January 2019
### 04 February 2019

---

Expand Down Expand Up @@ -586,7 +586,7 @@
\end{align}`
$$

_I.e._, to guarantee the numerator equals zero, we need `\(\mathop{\boldsymbol{E}}\left[ u_t | X \right] = 0\)`.
_I.e._, to guarantee the numerator equals zero, we need `\(\mathop{\boldsymbol{E}}\left[ u_t | X \right] = 0\)`—for both `\(\mathop{\boldsymbol{E}}\left[ u_t | X_t \right] = 0\)` *and* `\(\mathop{\boldsymbol{E}}\left[ u_t | X_{s} \right] = 0\)` `\((s\neq t)\)`.

--

Expand All @@ -601,16 +601,24 @@

$$
`\begin{align}
\color{#e64173}{\text{Births}_t} &amp;= \beta_0 + \beta_1 \text{Income}_t + \beta_2 \text{Births}_{t-1} + \color{#6A5ACD}{u_t} \tag{1}\\[0.3em]
\text{Births}_{t+1} &amp;= \beta_0 + \beta_1 \color{#e64173}{\text{Births}_t} + \beta_2 \text{Births}_{t} + u_{t+1} \tag{2}
\color{#e64173}{\text{Births}_t} &amp;= \beta_0 + \beta_1 \text{Income}_t + \beta_2 \text{Births}_{t-1} + \color{#e64173}{u_t} \tag{1}\\[0.3em]
\text{Births}_{t+1} &amp;= \beta_0 + \beta_1 \text{Income}_{t+1} + \beta_2 \color{#e64173}{\text{Births}_t} + u_{t+1} \tag{2}
\end{align}`
$$

In `\((1)\)`, `\(\color{#6A5ACD}{u_t}\)` clearly correlates with `\(\color{#e64173}{\text{Births}_t}\)`.
--

In `\((1)\)`, `\(\color{#e64173}{u_t}\)` clearly correlates with `\(\color{#e64173}{\text{Births}_t}\)`.

--

However, `\(\color{#e64173}{\text{Births}_t}\)` is a regressor in `\((2)\)` (lagged dependent variable).

However, `\(\color{#e64173}{\text{Births}_t}\)` is a regressor in `\((2)\)`.
--

∴ The disturbance in `\(t\)` `\(\left(\color{#e64173}{u_t}\right)\)` correlates with a regressor in `\(t+1\)` `\(\left(\color{#e64173}{\text{Births}_t}\right)\)`.

Thus our disturbance `\(\color{#6A5ACD}{u_t}\)` is correlated with a regressor.
--

This correlation violates the second part of our exogeneity requirement.
---
Expand All @@ -624,7 +632,9 @@

--

For OLS to be consistent, we only need .hi[contemporaneous exogeneity]: a disturbance is uncorrelated with explanatory variables *in the same period*, _i.e._,
For OLS to be consistent, we only need .hi[contemporaneous exogeneity].

.hi[Contemporaneous exogeneity:] each disturbance is uncorrelated with the explanatory variables .pink[in the same period], _i.e._,

$$
`\begin{align}
Expand All @@ -635,9 +645,50 @@
--

With contemporaneous exogeneity, OLS estimates for the coefficients in a time series model are consistent.
---

To see why OLS is consistent with contemporaneous exogeneity, consider the OLS estimate for `\(\beta_1\)` in

$$
`\begin{align}
\text{Births}_t &amp;= \beta_0 + \beta_1 \text{Births}_{t-1} + u_t
\end{align}`
$$

which we've shown (a few times) can be written

$$
`\begin{align}
\hat{\beta}_1
&amp;= \beta_1 + \dfrac{\sum_t \left( \text{Births}_{t-1} - \overline{\text{Births} } \right)u_t}{\sum_t \left( \text{Births}_{t-1} - \overline{\text{Births} } \right)^2}
\end{align}`
$$

---

$$
`\begin{align}
\hat{\beta}_1
&amp;= \beta_1 + \dfrac{\sum_t \left( \text{Births}_{t-1} - \overline{\text{Births} } \right)u_t}{\sum_t \left( \text{Births}_{t-1} - \overline{\text{Births} } \right)^2} \\[0.3em]
&amp;= \beta_1 + \dfrac{\sum_t \left( \text{Births}_{t-1} - \overline{\text{Births} } \right)u_t/T}{\sum_t \left( \text{Births}_{t-1} - \overline{\text{Births} } \right)^2/T} \\[0.3em]
&amp;= \beta_1 + \dfrac{\color{#e64173}{\mathop{\text{Cov}} \left( \text{Births}_{t-1},\, u_t \right)}}{\mathop{\text{Var}} \left( \text{Births}_{t} \right)}
\end{align}`
$$

--

`\(\hspace{8.3em}=\beta_1\hspace{1em}\)` **if** `\(\color{#e64173}{\mathop{\text{Cov}} \left( \text{Births}_{t-1},\, u_t \right)=0}\)`

--

.hi[Contemporaneous exogeneity] gives us `\(\color{#e64173}{\mathop{\text{Cov}} \left( \text{Births}_{t-1},\, u_t \right)=0}\)`.
---

Thus, if we assume .hi[contemporaneous exogeneity], OLS is consistent for the coefficients, *even for models with lagged dependent variables*.
---
layout: false
class: inverse, middle
# The end.
---
layout: false
# Table of contents
Expand All @@ -659,7 +710,7 @@
1. ["ADL" models](#adl)
- [Underlying complexity](#adl_complexity)
- [Equilibrium effects](#adl_eq)
- [Partial adjustment models](#adl_partial)
- [Partial-adjustment models](#adl_partial)
1. [Unbiasedness of OLS](#ols_unbiased)
1. [Consistency of OLS](#ols_consistency)
]
Expand Down
Binary file modified LectureNotes/07TimeSeries/07_time_series.pdf
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cbf33c8

Please sign in to comment.