pip install SymbolicDSGE pip install "SymbolicDSGE[fred]" # FRED API utilities
SymbolicDSGE is a Python DSGE engine with a compiled backend for first and second order perturbations, OBCs, and symbolically linearized DSGE models; supporting a broad set of features spanning:
- DSGE model specification, symbolic manipulation, and linearization
- Bayesian and maximum-likelihood estimation
- Simulation and impulse-response-function utilities
- Multiple Kalman filter variants
- Automatic data retrieval from FRED
- Custom shock distributions via SciPy or user-defined samplers
- Monte Carlo pipelines for comparing models or model-generated samples, including:
- Statistical tests
- Regression setups
- Output transformations
- Filtering
- Data generation
Alongside API references and implementation conventions, the documentation includes guides covering model setup, estimation, simulation, and filtering.
The documentation is kept up to date and aims to clarify conventions, workflows, and implementation choices throughout SymbolicDSGE.
Suggestions for improving or extending the documentation are welcome as issues.
AI Parsability
The documentation is a static Material MkDocs site, so web-enabled AI tools should be able to search, parse, and summarize it reliably.
from SymbolicDSGE import parse_config, solve_model # Read the YAML config (Equations, Measurements, Parameters, Optional Filter Spec) model = parse_config("<path-to-config>.yaml") # Numericalize the model and solve sol = solve_model( model, ss_seed=[0.0, 0.0, 0.0, 0.0, 0.0], ) print("Is determinate: ", sol.is_determinate) print("Eigenvalues: ", sol.policy.eig)
>>> Is determinate: True
Eigenvalues: [0.28 +0.j 0.83 +0.j 0.85 +0.j 2.605+0.j 1.185+0.j]
# Plot IRFs (single or multi shock) sol.transition_plot( T=25, shocks=["e_g", "e_z"], scale=1.0, observables=True, )