You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lectures/ar1_processes.md
+29-16Lines changed: 29 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -21,11 +21,6 @@ kernelspec:
21
21
(ar1_processes)=
22
22
# AR(1) Processes
23
23
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
-
```
29
24
30
25
```{index} single: Autoregressive processes
31
26
```
@@ -41,10 +36,8 @@ These simple models are used again and again in economic research to represent t
41
36
* dividends
42
37
* productivity, etc.
43
38
44
-
AR(1) processes can take negative values but are easily converted into positive processes when necessary by a transformation such as exponentiation.
45
-
46
39
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.
48
41
49
42
Let's start with some imports:
50
43
@@ -66,17 +59,29 @@ X_{t+1} = a X_t + b + c W_{t+1}
66
59
67
60
where $a, b, c$ are scalar-valued parameters.
68
61
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
71
63
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$.
73
75
74
76
To make things even simpler, we will assume that
75
77
76
78
* the process $\{ W_t \}$ is {ref}`IID <iid-theorem>` and standard normal,
77
79
* the initial condition $X_0$ is drawn from the normal distribution $N(\mu_0, v_0)$ and
78
80
* the initial condition $X_0$ is independent of $\{ W_t \}$.
79
81
82
+
83
+
84
+
80
85
### Moving average representation
81
86
82
87
Iterating backwards from time $t$, we obtain
@@ -118,8 +123,7 @@ normal random variables are normal.
118
123
Given that $X_t$ is normally distributed, we will know the full distribution
119
124
$\psi_t$ if we can pin down its first two [moments](https://en.wikipedia.org/wiki/Moment_(mathematics)).
120
125
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.
123
127
124
128
We can pin down these values from {eq}`ar1_ma` or we can use the following
125
129
recursive expressions:
@@ -146,8 +150,7 @@ $$
146
150
\psi_t = N(\mu_t, v_t)
147
151
$$
148
152
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 \}$.
0 commit comments