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.0

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.0
File Size Uploaded
quantecon-0.13.0.tar.gz 315.3 kB Details

Built distribution (wheel)

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

Total release size: 672.9 kB

Release files / quantecon-0.13.0.tar.gz

Download URL quantecon-0.13.0.tar.gz
Size 315.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bd26e5a7ce399cc7c8e0cd80cba4a585bd75798b7f94a937593ee7d8fd89f3fa
BLAKE2b-256 checksum
How to use checksums
975fbc680238115c43d4dfc079cc3e35c3725cf558ad52f08d3151117de84c61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2

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

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

Release history Release notifications | RSS feed

This release

0.13.0 This release

2 release files

0.12.0

2 release files

0.11.4

2 release files

0.11.0

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.8

2 release files

0.4.7

1 release file

0.4.6

3 release files

0.4.5

3 release files

0.4.4

1 release file

0.4.3

1 release file

0.4.2

2 release files

0.4.1

1 release file

0.4.0

2 release files

0.3.8

2 release files

0.3.7

3 release files

0.3.6.2

1 release file

0.3.5.1

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7-2

1 release file

0.1.7-1

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

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