Skip to content

LECT: Add lecture on lake model #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Mar 27, 2023
Merged

LECT: Add lecture on lake model #99

merged 10 commits into from
Mar 27, 2023

Conversation

mmcky
Copy link
Contributor

@mmcky mmcky commented Feb 19, 2023

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

@netlify
Copy link

netlify bot commented Feb 19, 2023

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
Copy link
Contributor Author

mmcky commented Feb 19, 2023

@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
Collaborator

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

```{code-cell} ipython3
lm = LakeModel(α=0.01, λ=0.1, d=0.025, b=0.02)
plot_time_paths(lm, x0=x0)
````
Copy link
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
Copy link
Contributor

jstac commented Mar 15, 2023

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
Collaborator

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

@jstac
Copy link
Contributor

jstac commented Mar 18, 2023

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
Member

Thanks, @jstac. Fixed the build error.

@jstac
Copy link
Contributor

jstac commented Mar 18, 2023

Thanks @Smit-create , much appreciated.

@github-actions github-actions bot temporarily deployed to commit March 21, 2023 08:57 Inactive
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
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"


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
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"

$$

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
Contributor

Choose a reason for hiding this comment

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

-a or -d?


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
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
Copy link
Contributor

jstac commented Mar 21, 2023

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

@chienhsy
Copy link
Collaborator

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

@github-actions github-actions bot temporarily deployed to commit March 27, 2023 07:11 Inactive
@jstac
Copy link
Contributor

jstac commented Mar 27, 2023

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
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