quantecon
Import the main names to top level.
What it is and what it does
QuantEcon is a scientific Python library for solving computational economics problems. It provides implementations of dynamic programming solvers (including discrete dynamic programming), Markov chain analysis, and other numerical methods commonly used in quantitative economics research. The library wraps and extends NumPy, SciPy, Numba, and SymPy to deliver high-performance algorithms suitable for academic and research workflows.
The package is designed for economists and researchers who need to solve dynamic optimization problems, analyze stochastic processes, or perform numerical simulations. It abstracts away low-level numerical details, allowing users to focus on model specification and interpretation. Installation is straightforward via pip or conda, and the library supports current Python versions.
Use it for:
- Solving Aiyagari-style heterogeneous-agent models using discrete dynamic programming
- Analyzing Markov chains and computing stationary distributions for economic state transitions
- Implementing numerical solutions to Bellman equations in macroeconomic models
- Running quantitative economics simulations and computational experiments for research
- Building reproducible economic models for academic papers and teaching materials
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
QuantEcon provides computational tools and algorithms for quantitative economics research, including dynamic programming solvers, Markov chain analysis, and numerical methods built on NumPy, SciPy, and Numba.
Yes, if you are doing quantitative economics research or teaching. The library is actively maintained, has no known vulnerabilities, installs with low friction, and provides well-tested algorithms for standard problems in computational economics. The unclear license status is a minor concern but unlikely to block use in academic or research settings; verify the MIT claim if compliance documentation is required.
Install
quantecon on PyPI
pip
pip install quanteconuv
uv add quanteconpoetry
poetry add quanteconInstalling quantecon
Before you install
Low friction installation with a pure-wheel distribution. Active maintenance with a release 30 days ago and ongoing repository activity. Depends on well-established scientific libraries (NumPy, SciPy, Numba, SymPy, requests), all standard in scientific Python environments.
License in practice
License treatment is unclear in the package metadata; the description excerpt mentions MIT licensing, but the fact sheet does not confirm this formally. Verify the actual license before relying on it for compliance purposes.
Quickstart
pip install quantecon
import quantecon as qe
from quantecon.markov import DiscreteDP
R, Q, beta = ... # define reward, transition, discount
aiyagari_ddp = DiscreteDP(R, Q, beta)
results = aiyagari_ddp.solve(method='policy_iteration')
Verify before relying
- Whether the MIT license mentioned in the description excerpt is formally declared in package metadata and what restrictions or obligations it imposes
- Performance characteristics and scalability limits for large-scale economic models
- Availability and completeness of documentation for all solver methods beyond policy iteration
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — numba, numpy, requests, scipy, sympy |
| Maintenance | actively maintained — 30 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 168,975/month — #10,431 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: quantecon-0.11.4-py3-none-any.whl
Keywords: quantitative, economics
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
gs-quantGS Quant is a Python toolkit for quantitative…
permissive · top 15,000 on PyPI
QuantLibQuantLib provides Python bindings to a C++…
permissive · top 5,000 on PyPI
nashpyNashpy computes Nash equilibria and simulates…
permissive · top 5,000 on PyPI
tradingeconomicsProvides Python access to over 300,000 economic…
permissive · top 15,000 on PyPI
qpsolversProvides a unified Python interface to solve…
copyleft · top 5,000 on PyPI
quantile-forestQuantile regression forests for estimating…
permissive · top 15,000 on PyPI
ortoolsOR-Tools provides constraint programming,…
permissive · top 5,000 on PyPI
giddyGiddy provides methods for exploratory…
permissive · top 15,000 on PyPI
arvizArviZ is a Python package for exploratory…
permissive · top 5,000 on PyPI