Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lectures/lake_model_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ We are interested in how $u_t$ and $e_t$ evolve over time.

What long-run unemployment rate and employment rate should we expect?

Do long-run outcomes depend on the initial values $(u_0, e_o)$?
Do long-run outcomes depend on the initial values $(u_0, e_0)$?

### Visualising the long-run outcomes

Expand Down Expand Up @@ -335,7 +335,7 @@ def plot_time_paths(lm, x0=None, T=1000, ax=None):

# Plot time series
for x in x0:
x_ts = lm.simulate_path(x0=x)
x_ts = lm.simulate_path(x0=x, T=T)

ax.scatter(x_ts[0, :], x_ts[1, :], s=4,)

Expand Down
2 changes: 1 addition & 1 deletion lectures/long_run_growth.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ We create a variable `color_mapping` to store a map between country codes and co
```{code-cell} ipython3
:tags: [hide-input]

country_names = data['countrycode']
country_names = data['countrycode'].unique()

# Generate a colormap with the number of colors matching the number of countries
colors = cm.tab20(np.linspace(0, 0.95, len(country_names)))
Expand Down
6 changes: 4 additions & 2 deletions lectures/time_series_with_matrices.md
Original file line number Diff line number Diff line change
Expand Up @@ -467,11 +467,13 @@ Let's begin by generating $N$ time realizations of $y$ plotting them together wi
# Plot mean
N = 100

ys = series_process.sample_y(N, rng=rng)

for i in range(N):
col = cm.viridis(rng.random()) # Choose a random color from viridis
ys = series_process.sample_y(N, rng=rng)
plt.plot(ys[i,:], lw=0.5, color=col)
plt.plot(μ_y, color='red')

plt.plot(μ_y, color='red')

plt.xlabel('t')
plt.ylabel('y')
Expand Down