Skip to content

Commit d9c5f98

Browse files
committed
misc
1 parent 9c42252 commit d9c5f98

File tree

1 file changed

+29
-16
lines changed

1 file changed

+29
-16
lines changed

lectures/ar1_processes.md

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ kernelspec:
2121
(ar1_processes)=
2222
# AR(1) Processes
2323

24-
```{admonition} Migrated lecture
25-
:class: warning
26-
27-
This lecture has moved from our [Intermediate Quantitative Economics with Python](https://python.quantecon.org/intro.html) lecture series and is now a part of [A First Course in Quantitative Economics](https://intro.quantecon.org/intro.html).
28-
```
2924

3025
```{index} single: Autoregressive processes
3126
```
@@ -41,10 +36,8 @@ These simple models are used again and again in economic research to represent t
4136
* dividends
4237
* productivity, etc.
4338

44-
AR(1) processes can take negative values but are easily converted into positive processes when necessary by a transformation such as exponentiation.
45-
4639
We are going to study AR(1) processes partly because they are useful and
47-
partly because they help us understand important concepts. Specifically, AR(1) processes are valuable as they can measure the persistence of shocks over time.
40+
partly because they help us understand important concepts.
4841

4942
Let's start with some imports:
5043

@@ -66,17 +59,29 @@ X_{t+1} = a X_t + b + c W_{t+1}
6659

6760
where $a, b, c$ are scalar-valued parameters.
6861

69-
This law of motion generates a time series $\{ X_t\}$ as soon as we
70-
specify an initial condition $X_0$.
62+
For example, $X_t$ might be
7163

72-
This is called the **state process** and the state space is $\mathbb R$.
64+
* the log of labor income for a given household, or
65+
* the log of money demand in a given economy.
66+
67+
In either case, {eq}`can_ar1` shows that the current value evolves as a linear function
68+
of the previous value and an IID shock $W_{t+1}$.
69+
70+
(We use $t+1$ for the subscript of $W_{t+1}$ because this random variable is not
71+
observed at time $t$.)
72+
73+
The specification {eq}`can_ar1` generates a time series $\{ X_t\}$ as soon as we
74+
specify an initial condition $X_0$.
7375

7476
To make things even simpler, we will assume that
7577

7678
* the process $\{ W_t \}$ is {ref}`IID <iid-theorem>` and standard normal,
7779
* the initial condition $X_0$ is drawn from the normal distribution $N(\mu_0, v_0)$ and
7880
* the initial condition $X_0$ is independent of $\{ W_t \}$.
7981

82+
83+
84+
8085
### Moving average representation
8186

8287
Iterating backwards from time $t$, we obtain
@@ -118,8 +123,7 @@ normal random variables are normal.
118123
Given that $X_t$ is normally distributed, we will know the full distribution
119124
$\psi_t$ if we can pin down its first two [moments](https://en.wikipedia.org/wiki/Moment_(mathematics)).
120125

121-
Let $\mu_t$ and $v_t$ denote the mean and variance
122-
of $X_t$ respectively.
126+
Let $\mu_t$ and $v_t$ denote the mean and variance of $X_t$ respectively.
123127

124128
We can pin down these values from {eq}`ar1_ma` or we can use the following
125129
recursive expressions:
@@ -146,8 +150,7 @@ $$
146150
\psi_t = N(\mu_t, v_t)
147151
$$
148152

149-
The following code uses these facts to track the sequence of marginal
150-
distributions $\{ \psi_t \}$.
153+
The following code uses these facts to track the sequence of marginal distributions $\{ \psi_t \}$.
151154

152155
The parameters are
153156

@@ -179,9 +182,19 @@ ax.legend(bbox_to_anchor=[1.05,1],loc=2,borderaxespad=1)
179182
plt.show()
180183
```
181184

185+
186+
182187
## Stationarity and asymptotic stability
183188

184-
In Distribution Dynamics, stationarity and asymptotic stability ensure that a single long-term prediction remains valid over time.
189+
When we use models to study the real world, it is generally preferable that our
190+
models have clear, sharp predictions.
191+
192+
For dynamic problems, sharp predictions are related to stability.
193+
194+
For example, if a dynamic model predicts that inflation always converges to some
195+
kind of steady state, then the model gives a sharp prediction.
196+
197+
(The prediction might be wrong, but even this is helpful, because we can judge
185198

186199
Notice that, in the figure above, the sequence $\{ \psi_t \}$ seems to be converging to a limiting distribution.
187200

0 commit comments

Comments
 (0)