macrodemos


Namemacrodemos JSON
Version 2024.4.5 PyPI version JSON
download
home_pagehttp://randall-romero.com/code/macrodemos
SummaryDemo programs to learn macroeconomics and macro-econometrics concepts
upload_time2024-04-06 06:29:37
maintainerNone
docs_urlNone
authorRandall Romero-Aguilar
requires_python>=3.7
licenseMIT
keywords time series arma filters markov chain solow-swan hodrick-prescott baxter-king
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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
    1. a simulated sample
    2. autocorrelations
    3. partial autocorrelations
    4. impulse response function
    5. spectral density
    6. AR inverse roots
    7. 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:
    1. a simulated sample
    2. 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:
    1. Capital stock, per capita
    2. Output per capita,
    3. Savings per capita,
    4. Consumption per capita,
    5. Change in capital stock, and
    6. 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**

            

Raw data

            {
    "_id": null,
    "home_page": "http://randall-romero.com/code/macrodemos",
    "name": "macrodemos",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "time series, ARMA, filters, Markov chain, Solow-Swan, Hodrick-Prescott, Baxter-King",
    "author": "Randall Romero-Aguilar",
    "author_email": "randall.romero@outlook.com",
    "download_url": "https://files.pythonhosted.org/packages/14/ee/5c00ce2852a3943180ee1c03045687103e409f5b43ecb525d1405f259965/macrodemos-2024.4.5.tar.gz",
    "platform": null,
    "description": "# MACRODEMOS\r\n\r\n## Macroeconomics Demos: A Python package to teach macroeconomics and macroeconometrics\r\n\r\nThe purpose of this package is to provide tools to teach concepts of macroeconomics and macroeconometrics.\r\n\r\nTo date, the package provides these functions:\r\n\r\n* **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\r\n    1. a simulated sample\r\n    2. autocorrelations\r\n    3. partial autocorrelations\r\n    4. impulse response function\r\n    5. spectral density\r\n    6. AR inverse roots\r\n    7. MA inverse roots.\r\n*  **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:\r\n    1. a simulated sample\r\n    2. the time evolution of the distribution of states\r\n*  **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:\r\n    1. Capital stock, per capita\r\n    2. Output per capita,\r\n    3. Savings per capita,\r\n    4. Consumption per capita,\r\n    5. Change in capital stock, and\r\n    6. Output growth rate \r\n   \r\n    It also presents plots to illustrate how steady-state capital is determined, and the golden rule. \r\n*  **filters( )**: to illustrate the use of the Hodrick-Prescott, Baxter-King, Christiano-Fitzgeral and Hamilton filters.\r\n\r\nIn a near future, I expect to add a few more demos:\r\n\r\n* **Bellman( )**: to illustrate the solution of a Bellman equation by value function iteration\r\n* **BoxJenkins( )**: to illustrate the Box-Jenkins methodology, by fitting two ARIMA models side-by-side to user-provided data.  \r\n* **FilterMyData( )**: to filter user-supplied data with several methodologies, comparing their resulting cycles. \r\n \r\n### Instructions\r\nTo use the demos, just install this package `pip install macrodemos` and then run any of the demos you want.\r\n\r\n    import macrodemos\r\n    macrodemos.ARMA()\r\n    macrodemos.Markov()\r\n    macrodemos.Solow()\r\n    macrodemos.filter()\r\n \r\nThis will open a new tab in your default Internet browser with a Plotly dash. A current limitation is that you can only run \r\none demo at a time.\r\n\r\n### Disclaimer \r\nThis program illustrates basic concepts of macroeconomics and time series econometrics. It was developed for teaching purposes \r\nonly: you are free to use it in your own lectures or to learn about these topics.  \r\n\r\nIf you have any suggestions, please send me an email at randall.romero@ucr.ac.cr\r\n                          \r\n**Copyright 2016-2024 Randall Romero-Aguilar**\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Demo programs to learn macroeconomics and macro-econometrics concepts",
    "version": "2024.4.5",
    "project_urls": {
        "Homepage": "http://randall-romero.com/code/macrodemos"
    },
    "split_keywords": [
        "time series",
        " arma",
        " filters",
        " markov chain",
        " solow-swan",
        " hodrick-prescott",
        " baxter-king"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d0dc2eb6eb2738898f9b137d654f670e1a8c8c22bbc5cc27196b22f6667ec7f6",
                "md5": "8aa3102831909ca39383b2ebe44ecd54",
                "sha256": "be78153b2112415f546fb14f2638a7412a0f11bb5ece72b72e7293d859820505"
            },
            "downloads": -1,
            "filename": "macrodemos-2024.4.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8aa3102831909ca39383b2ebe44ecd54",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 304542,
            "upload_time": "2024-04-06T06:29:35",
            "upload_time_iso_8601": "2024-04-06T06:29:35.203358Z",
            "url": "https://files.pythonhosted.org/packages/d0/dc/2eb6eb2738898f9b137d654f670e1a8c8c22bbc5cc27196b22f6667ec7f6/macrodemos-2024.4.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "14ee5c00ce2852a3943180ee1c03045687103e409f5b43ecb525d1405f259965",
                "md5": "6e9c4e7f6ff8b6f2520d11ee2c981428",
                "sha256": "d5dafe6800b4fa8870b11ce208c1253fd8980cb39eac9cb253346745d252f977"
            },
            "downloads": -1,
            "filename": "macrodemos-2024.4.5.tar.gz",
            "has_sig": false,
            "md5_digest": "6e9c4e7f6ff8b6f2520d11ee2c981428",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 307277,
            "upload_time": "2024-04-06T06:29:37",
            "upload_time_iso_8601": "2024-04-06T06:29:37.233122Z",
            "url": "https://files.pythonhosted.org/packages/14/ee/5c00ce2852a3943180ee1c03045687103e409f5b43ecb525d1405f259965/macrodemos-2024.4.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-06 06:29:37",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "macrodemos"
}
        
Elapsed time: 0.28586s