Python Platform for DSGE Modeling
Project description
Python Framework for DSGE models
authors: Alexei Goumilevski and James Otterson
What it is:
This Framework aims to help economists to ease development and run of DSGE models in Python environment.
How to run:
- Create or modify existing YAML model file in examples/models folder.
- Open src/tests/test.py file and set fname to the name of this model file.
- Run simulations by double-clicking on run batch file located under Framework folder.
Content:
- Sample model file (see
<examples/models/Toy/JLMP98.yaml>
) - Documentation (see
<docs/UserGuide.pdf>
)
Highlights:
- Framework is written in Python language and uses only Python libraries that are available by installing Anaconda distribution in Software Center
- Framework is versatile to parse model files written in a human readable YAML format, Sirius XML format and to parse simple IRIS and DYNARE model files.
- Prototype model files are created for non-linear and linear perfect-foresight models.
- It can be run as a batch process, in a Jupyter notebook, or in a Spyder interactive development environment (Scientific Python Development environment).
- Framework parses the model file, checks its syntax for errors, and generates Python functions source code. It computes the Jacobian up to the third order in a symbolic form.
- Non-linear equations are solved by iterations by Newton's method. Two algorithms are implemented: ABLR stacked matrices method and LBJ forward-backward substitution method.
- Linear models are solved with Binder and Pesaran's method, Anderson and More's method and two generalized Schur's method that reproduce calculations employed in Dynare and Iris.
- Non-linear models can be run with time dependents parameters.
- Framework can be used to calibrate models to find model's parameters. Calibration can be run for both linear and nonlinear models. Framework applies Bayesian approach to maximize likelihood function that incorporates prior beliefs about parameters and goodness of fit of model to the data.
- Framework can sample model parameters by using Markov Chain Monte Carlo affine invariant ensemble sampler algorithm of Jonathan Goodman.
- Framework uses Scientific Python Sparse package for large matrices algebra.
- Following filters were implemented: Kalman (linear and non-linear models), Unscented Kalman, LRX, HP, Bandpass, Particle. Several versions of Kalman filter and smoother algorithms were developed including diffuse and non-diffuse, multivariate and univariate filters and smoothers.
- As a result of runs Framework generates 1 and 2 dimensional plots and saves data in excel file and in Python sqlite database.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysnowdrop-1.0.4.tar.gz
(16.1 MB
view details)
Built Distribution
File details
Details for the file pysnowdrop-1.0.4.tar.gz
.
File metadata
- Download URL: pysnowdrop-1.0.4.tar.gz
- Upload date:
- Size: 16.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.2 Linux/5.4.0-153-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe752e2f6d316ae700baa2f572ab9c2b48e9224739117fcfb8b42e214608b29e |
|
MD5 | d8985c943b47856830bb3811c6787a89 |
|
BLAKE2b-256 | d876440bd81193d1fb581734e15ae8992822ba78621062999e244e02e9f156ba |
File details
Details for the file pysnowdrop-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: pysnowdrop-1.0.4-py3-none-any.whl
- Upload date:
- Size: 16.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.2 Linux/5.4.0-153-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac5759eed83f7858a547e360bea84f6684c53117981c35120f35a9f64d6fba4f |
|
MD5 | a89e46e46c7721a3232fa532e8613bab |
|
BLAKE2b-256 | 2150d3af6729970449b0e14b07dd5e3af560e0a4d37dc35c39fcdd49b90d5bf5 |