Skip to content

LECT: Add lecture on lake model - #99

Merged
jstac merged 10 commits into
mainfrom
lake-model
Mar 27, 2023
Merged

jstac merged 10 commits into
mainfrom
lake-model

Conversation

@mmcky

@mmcky mmcky commented Feb 19, 2023 •

Copy link
Copy Markdown
Contributor

This PR adds lake_model lecture but needs some additional import statements to make the code run etc.

@netlify

netlify Bot commented Feb 19, 2023 •

Copy link
Copy Markdown

✅ Deploy Preview for taupe-gaufre-c4e660 ready!

Name Link
🔨 Latest commit afc7221
🔍 Latest deploy log https://app.netlify.com/sites/taupe-gaufre-c4e660/deploys/64213f1560493a000854b43c
😎 Deploy Preview https://deploy-preview-99--taupe-gaufre-c4e660.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@mmcky

mmcky commented Feb 19, 2023

Copy link
Copy Markdown
Contributor Author

@maanasee do you have time to review this lecture?

The current warnings indicate that numpy is not being imported but this is likely due to the material being moved into its own lecture. So it might be the first of a few rounds of import issues that need to be resolved.

NameError: name 'np' is not defined

@mmcky
mmcky requested a review from maanasee March 1, 2023 23:30
@chienhsy

Copy link
Copy Markdown
Collaborator

This lecture has been upated. Please review and let me know if there is any issue.

Comment thread lectures/lake_model.md Outdated
```{code-cell} ipython3
lm = LakeModel(α=0.01, λ=0.1, d=0.025, b=0.02)
plot_time_paths(lm, x0=x0)
````

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra backtick needs to be removed (CC @Chien-Y )

@jstac

jstac commented Mar 15, 2023

Copy link
Copy Markdown
Contributor

Many thanks @Chien-Y .

Perhaps we should replace the png file with a graphvis figure, so that it's generated within the lecture.

@chienhsy

Copy link
Copy Markdown
Collaborator

Thank you for the comment, @jstac .
I've updated the graphviz figure.

@jstac

jstac commented Mar 18, 2023

Copy link
Copy Markdown
Contributor

Thanks @Chien-Y .

@Smit-create or @mmcky , could you please fix the build error.

@github-actions
github-actions Bot temporarily deployed to commit March 18, 2023 04:26 Inactive
@Smit-create

Copy link
Copy Markdown
Member

Thanks, @jstac. Fixed the build error.

@jstac

jstac commented Mar 18, 2023

Copy link
Copy Markdown
Contributor

Thanks @Smit-create , much appreciated.

@github-actions
github-actions Bot temporarily deployed to commit March 21, 2023 08:57 Inactive
Comment thread lectures/lake_model.md Outdated
The importance of the Perron-Frobenius theorem stems from the fact that
firstly in the real world most matrices we encounter are nonnegative matrices.

Secondly, a lot of important models are simply linear iterative models that

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"a lot of" -> "many"

Comment thread lectures/lake_model.md Outdated

Since by intuition if we consider unemployment pool and employment pool as a closed system, the growth should be similar the labor force.

We next ask whether the growth rates of $e_t$ and $u_t$ in the long run also dominated by $1+b-d$ as labor force.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"growth rates... in the long run" -> "long run growth rates"

Comment thread lectures/lake_model.md Outdated
$$

Moreover, the times series of unemployment and employment seems to grow at some constant rate in the long run.
Hence, the growth rate of $n_t$ is fixed at $1 + b - a$.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-a or -d?

Comment thread lectures/lake_model.md Outdated
Let $\gamma_1 = r(\hat{A})=1$ and $|\gamma_2| < \gamma_1$, so that the spectral radius is a dominant eigenvalue.

The rate motion follows $r_{t+1} = \hat{A} r_t$, where $r_0$ is a probability vector: $\sum_j r_{0,j}=1$.
The dynamics of rates follows $r_{t+1} = \hat{A} r_t$, where $r_0$ is a probability vector: $\sum_j r_{0,j}=1$.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"of rates" -> "of the rates"

@jstac

jstac commented Mar 21, 2023

Copy link
Copy Markdown
Contributor

Thanks @Chien-Y , please see my comments above.

@chienhsy

Copy link
Copy Markdown
Collaborator

Thank you, @jstac. I've corrected them.

@github-actions
github-actions Bot temporarily deployed to commit March 27, 2023 07:11 Inactive
@jstac

jstac commented Mar 27, 2023

Copy link
Copy Markdown
Contributor

Thanks @Chien-Y , nice work.

@jstac
jstac merged commit 04da5c8 into main Mar 27, 2023
@jstac
jstac deleted the lake-model branch March 27, 2023 07:41

This branch was previously deployed

1 inactive deployment
commit — afc72211 Deployed Mar 27, 2023 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants