MACRODEMOS
Macroeconomics Demos: A Python package to teach macroeconomics and macroeconometrics
The purpose of this package is to provide tools to teach concepts of macroeconomics and macroeconometrics.
To date, the package provides these functions:
-
ARMA( ): Demo for learning about ARMA processes. It creates a dash consisting of 7 plots to study the theoretical properties of ARMA(p, q) processes, as well as their estimated counterparts. The plots display
- a simulated sample
- autocorrelations
- partial autocorrelations
- impulse response function
- spectral density
- AR inverse roots
- MA inverse roots.
-
Markov('state_0',...,'state_n'): a demo to illustrate Markov chains. User sets the number of states, the transition matrix, and the initial distribution. The demo creates a dash consisting of 2 plots:
- a simulated sample
- the time evolution of the distribution of states
-
Solow( ): this demo illustrates the Solow-Swan model. Users can simulate the dynamic effect of a shock in a exogenous variable or a change in a model parameter. You will find 6 figures about the Solow-Swan model:
- Capital stock, per capita
- Output per capita,
- Savings per capita,
- Consumption per capita,
- Change in capital stock, and
- Output growth rate
It also presents plots to illustrate how steady-state capital is determined, and the golden rule.
-
filters( ): to illustrate the use of the Hodrick-Prescott, Baxter-King, Christiano-Fitzgeral and Hamilton filters.
In a near future, I expect to add a few more demos:
- Bellman( ): to illustrate the solution of a Bellman equation by value function iteration
- BoxJenkins( ): to illustrate the Box-Jenkins methodology, by fitting two ARIMA models side-by-side to user-provided data.
- FilterMyData( ): to filter user-supplied data with several methodologies, comparing their resulting cycles.
Instructions
To use the demos, just install this package pip install macrodemos and then run any of the demos you want.
import macrodemos
macrodemos.ARMA()
macrodemos.Markov()
macrodemos.Solow()
macrodemos.filter()
This will open a new tab in your default Internet browser with a Plotly dash. A current limitation is that you can only run one demo at a time.
Disclaimer
This program illustrates basic concepts of macroeconomics and time series econometrics. It was developed for teaching purposes only: you are free to use it in your own lectures or to learn about these topics.
If you have any suggestions, please send me an email at randall.romero@ucr.ac.cr
Copyright 2016-2024 Randall Romero-Aguilar
Metadata
Release files for macrodemos 2024.4.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| macrodemos-2024.4.5.tar.gz | 307.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| macrodemos-2024.4.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 611.8 kB
Release files / macrodemos-2024.4.5.tar.gz
| Download URL | macrodemos-2024.4.5.tar.gz |
|---|---|
| Size | 307.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5dafe6800b4fa8870b11ce208c1253fd8980cb39eac9cb253346745d252f977
|
|
BLAKE2b-256 checksum How to use checksums |
14ee5c00ce2852a3943180ee1c03045687103e409f5b43ecb525d1405f259965
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.5
|
Release files / macrodemos-2024.4.5-py3-none-any.whl
| Download URL | macrodemos-2024.4.5-py3-none-any.whl |
|---|---|
| Size | 304.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be78153b2112415f546fb14f2638a7412a0f11bb5ece72b72e7293d859820505
|
|
BLAKE2b-256 checksum How to use checksums |
d0dc2eb6eb2738898f9b137d654f670e1a8c8c22bbc5cc27196b22f6667ec7f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.5
|
Security for macrodemos 2024.4.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.