GitXplorerGitXplorer
Q

QuantEcon.py

public
1945 stars
2257 forks
72 issues

Commits

List of commits on branch main.
Verified
c2ed3d63fdc3fd1783b8de24de5033081eb91c47

Fixed Pandas warnings in `test_quad.py` (#738)

AArmd04 committed 21 days ago
Verified
bcba2acf70e112221d64cacecc59c2dd454aa9bc

CI: Remove `Setup QuantEcon` (#737)

ooyamad committed a month ago
Verified
ae7fb2682ff576bc4f4360c967d223fed0f95ae0

Merge pull request #736 from QuantEcon/npy2

ooyamad committed a month ago
Verified
a83c2aeae8b51e9e9795b95fe6c88b0f1aca11df

Merge pull request #733 from QuantEcon/ci312

ooyamad committed a month ago
Unverified
f48c50568bdae2ab9911c1aafa0acaaec15381c4

FIX: Fix NumPy v2 compatibility issue

ooyamad committed a month ago
Unverified
4b0223bd2b57a187fb6f30587ad65c421cba1719

CI: Add workflow testing against NumPy v2

ooyamad committed a month ago

README

The README file for this repository.

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 Status

Installation

Before installing quantecon we recommend you install the Anaconda Python distribution, which includes a full suite of scientific python tools. Note: quantecon is now only supporting Python version 3.5+. This is mainly to allow code to be written taking full advantage of new features such as using the @ symbol for matrix multiplication. Therefore please install the latest Python 3 Anaconda distribution.

Next you can install quantecon by opening a terminal prompt and typing

pip install 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

pip install flit
flit 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.5281/zenodo.10345102},
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}
}