Skip to main content

QuantEcon.py

A high performance, open source Python code library for economics

  from quantecon.markov import DiscreteDP
  aiyagari_ddp = DiscreteDP(R, Q, beta)
  results = aiyagari_ddp.solve(method='policy_iteration')

Build Status Coverage Status Documentation (stable) Documentation (latest) PyPI Version Conda Version PyPI - Python Version

Installation

Install QuantEcon.py from PyPI:

pip install quantecon

If you use conda, install from conda-forge (Anaconda Distribution is not required):

conda install -c conda-forge quantecon

Usage

Once quantecon has been installed you should be able to import it as follows:

import quantecon as qe

You can check the version by running

print(qe.__version__)

If your version is below what’s available on PyPI then it is time to upgrade. This can be done by running

pip install --upgrade quantecon

Examples and Sample Code

Many examples of QuantEcon.py in action can be found at Quantitative Economics. See also the

QuantEcon.py is supported financially by the Alfred P. Sloan Foundation and is part of the QuantEcon organization.

Downloading the quantecon Repository

An alternative is to download the sourcecode of the quantecon package and install it manually from the github repository. For example, if you have git installed type

git clone https://github.com/QuantEcon/QuantEcon.py

Once you have downloaded the source files then the package can be installed by running

cd QuantEcon.py
pip install .

(To learn the basics about setting up Git see this link.)

Citation

QuantEcon.py is MIT licensed, so you are free to use it without any charge and restriction. If it is convenient for you, please cite QuantEcon.py when using it in your work and also consider contributing all your changes back, so that we can incorporate it.

A BibTeX entry for LaTeX users is

@article{10.21105/joss.05585,
author = {Batista, Quentin and Coleman, Chase and Furusawa, Yuya and Hu, Shu and Lunagariya, Smit and Lyon, Spencer and McKay, Matthew and Oyama, Daisuke and Sargent, Thomas J. and Shi, Zejin and Stachurski, John and Winant, Pablo and Watkins, Natasha and Yang, Ziyue and Zhang, Hengcheng},
doi = {10.21105/joss.05585},
title = {QuantEcon.py: A community based Python library for quantitative economics},
year = {2024},
journal = {Journal of Open Source Software},
volume = {9},
number = {93},
pages = {5585},
url = {https://joss.theoj.org/papers/10.21105/joss.05585}
}

Star History

Star History Chart

Metadata

Release files for quantecon 0.13.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quantecon 0.13.1
File Size Uploaded Provenance
quantecon-0.13.1.tar.gz 315.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for quantecon 0.13.1
File Interpreter ABI Platform
quantecon-0.13.1-py3-none-any.whl Python 3 none any Details

Total release size: 673.3 kB

Release files / quantecon-0.13.1.tar.gz

Download URL quantecon-0.13.1.tar.gz
Size 315.4 kB
Tags Source
SHA-256 checksum
How to use checksums
82fead6b675e9529e4acecb93b14e54c48a39349111a1e289b85f8a94379f3ee
BLAKE2b-256 checksum
How to use checksums
309a9c6497404fd759adfb5def7f5ae67c89563edefe20387d913a8006d4bbc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2

Release files / quantecon-0.13.1-py3-none-any.whl

Download URL quantecon-0.13.1-py3-none-any.whl
Size 357.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d49fe6bcf269febe3a3835959152142b07113d8ca701d90663a007ce4c0fd6c
BLAKE2b-256 checksum
How to use checksums
dbc3adf5e2c7b1738badc847a87969e6281eb764b6df50ed88a48479bda6ca51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2

Security for quantecon 0.13.1

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.

Release history Release notifications | RSS feed

This release

0.13.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page