• Stars
    star
    1,860
  • Rank 23,937 (Top 0.5 %)
  • Language
    Python
  • License
    MIT License
  • Created about 11 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A community based Python library for quantitative economics

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}
}

More Repositories

1

QuantEcon.jl

Julia implementation of QuantEcon routines
Julia
489
star
2

quantecon-notebooks-python

A Repository of Notebooks for the Python Lecture Site
Jupyter Notebook
263
star
3

lecture-python.notebooks

Notebooks for https://python.quantecon.org
Jupyter Notebook
225
star
4

lecture-source-py

Source files for "Lectures in Quantitative Economics" -- Python version
Jupyter Notebook
191
star
5

QuantEcon.cheatsheet

A cheatsheet for Python and Julia
TeX
155
star
6

lecture-source-jl

Source files for "Lectures in Quantitative Economics" -- Julia version
TeX
128
star
7

GameTheory.jl

Algorithms and data structures for game theory in Julia
Julia
122
star
8

QuantEcon.notebooks

Jupyter notebooks contributed by QuantEcon developers, users and the community
Jupyter Notebook
119
star
9

quantecon-notebooks-julia

Jupyter Notebook
110
star
10

book-dp1-public-companion

Dynamic Programming Volume 1
Julia
109
star
11

MatchingMarkets.py

Python toolbox for simulation of matching markets in economics
Python
104
star
12

book-networks-public

Companion Site for Economic Networks: Theory and Computation
CSS
81
star
13

lecture-python.myst

Quantitative Economics with Python
Jupyter Notebook
76
star
14

sphinxcontrib-jupyter

A Sphinx Extension for Generating Jupyter Notebooks
Python
74
star
15

lecture-python

Source files for https://python.quantecon.org
Jupyter Notebook
60
star
16

Expectations.jl

Expectation operators for Distributions.jl objects
Julia
56
star
17

QuantEcon.lectures.code

Code Repository to Support QuantEcon Lecture Site
Python
52
star
18

lecture-python-programming.notebooks

Notebooks for https://python-programming.quantecon.org
Jupyter Notebook
51
star
19

rvlib

Distributions for Python
C
46
star
20

CompEcon.jl

Julia versions of the CompEcon routines by Miranda and Fackler.
Julia
46
star
21

lecture-julia.myst

Lecture source for "Quantitative Economics with Julia"
TeX
42
star
22

quantecon-notebooks-datascience

Jupyter Notebooks for https://datascience.quantecon.org
Jupyter Notebook
42
star
23

lecture-julia.notebooks

Download Notebooks for julia.quantecon.org
Jupyter Notebook
41
star
24

lecture-python-advanced

Source files for https://python-advanced.quantecon.org
Python
41
star
25

columbia_mini_course

Computational Economics with Python
Jupyter Notebook
40
star
26

lecture-python-programming.myst

Python Programming for Finance and Economics
JavaScript
40
star
27

dynamic_factor_models

Jupyter Notebook
35
star
28

lecture-python-intro

An Undergraduate Lecture Series for the Foundations of Computational Economics
Jupyter Notebook
33
star
29

BasisMatrices.jl

Routines for constructing BasisMatrices of different types (Chebyshev polynomials, B-Splines, piecewise linear, complete monomials, Smolyak...)
Julia
32
star
30

quantecon-book-theme

A Jupyter Book Theme for QuantEcon Book Style Projects
Jupyter Notebook
30
star
31

econometrics

Jupyter Notebook
29
star
32

krusell_smith_code

Code for the Krusell--Smith model
Jupyter Notebook
29
star
33

ShenzhenWinterCamp

Shenzhen Winter Camp 2018
Jupyter Notebook
28
star
34

lecture-jax

Lectures on Quantitative Economics Using JAX
TeX
27
star
35

lecture-datascience.myst

Source repository for QuantEcon Datascience
TeX
26
star
36

phd_workshops

2017 QuantEcon PhD Workshops on Computational Economics
Jupyter Notebook
25
star
37

RBA_RBNZ_Workshops

Code and teaching material for the workshops at the RBA and RBNZ
Jupyter Notebook
21
star
38

lecture-python-advanced.myst

Advanced Quantitative Economics with Python
TeX
21
star
39

jupinx

Jupyter + Sphinx Utilities and Tools
Python
20
star
40

ChicagoFed_workshop

Workshop on scientific computing for economists with Python and Julia
Jupyter Notebook
18
star
41

lecture-python-programming

Source files for https://python-programming.quantecon.org
Smarty
18
star
42

game-theory-notebooks

A collection of game theory notebooks
Jupyter Notebook
17
star
43

InstantiateFromURL.jl

Julia
17
star
44

lecture-python-advanced.notebooks

Notebooks that support https://python-advanced.quantecon.org
Jupyter Notebook
15
star
45

ContinuousDPs.jl

Continuous state dynamic programming
Julia
14
star
46

lecture-datascience.notebooks

Notebooks for datascience.quantecon.org
Jupyter Notebook
14
star
47

quantecon-notebooks-datascience-old

Jupyter Notebook
13
star
48

qe_lunch_workshops

Jupyter Notebook
13
star
49

cbc_workshops

Workshops for the Central Bank of Chile
Jupyter Notebook
12
star
50

SimpleDifferentialOperators.jl

Library for simple upwind finite differences
Julia
12
star
51

Copenhagen_workshop_2018

Copenhagen Summer School 2018 QuantEcon Workshop
Jupyter Notebook
11
star
52

sphinxcontrib-jupyter.minimal

A Minimal Example of the Jupyter Sphinx Extension
Python
9
star
53

summer_course_2019

QuantEcon-RSE Intensive Course on Computational Modeling
Jupyter Notebook
9
star
54

emet_summer_workshop

Repository for the North American Summer Meeting of the Econometric Society 2016 workshop
Jupyter Notebook
8
star
55

website

Website for QuantEcon Organisation
HTML
8
star
56

book-dp1-public

Website for Dynamic Programming TextBook
Julia
8
star
57

continuous_time_mcs

Continuous Time Markov Chains
Jupyter Notebook
7
star
58

jaxinterp

JAX compatible multilinear interpolation
7
star
59

NUS_workshop_2016

Computational Economics with Python and Julia
Jupyter Notebook
7
star
60

phd-macro-theory-book

Tom's PhD Macro Theory Book
TeX
7
star
61

quantecon-book-networks

Package for networks.quantecon.org (Economic Networks)
Python
6
star
62

QE_data_science_conf

QuantEcon discussion for the Berkeley Data Science x Economics conference
Jupyter Notebook
5
star
63

HCMC_workshop_2016

Modern Methods in Computational Economics in Ho Chi Minh City
Jupyter Notebook
5
star
64

Gensys.jl

A Julia version of Gensys (Sims 2000)
Julia
5
star
65

honours_workshop

2018 QuantEcon-RSE Honours Workshop
Jupyter Notebook
5
star
66

Keio_workshop

For the QuantEcon lecture at Keio in October 2016
Jupyter Notebook
5
star
67

DIIS_workshop

Dept of Industry, Innovation and Science QuantEcon-RSE Workshop
Jupyter Notebook
5
star
68

indian_summer_workshop

Online quantitative economics course for Indian students
5
star
69

imf_2024

Computational economics workshop at the IMF, March 2024
Jupyter Notebook
5
star
70

2021-workshop-rsit

RSIT Workshop (Uni Tübingen) 2021
Jupyter Notebook
4
star
71

dse_workshop

DSE Conference DP Workshop 2022
Jupyter Notebook
4
star
72

lecture-jax.notebooks

Notebooks for the lecture-jax lecture series
Jupyter Notebook
4
star
73

lecture-econometrics-machine-learning

Python for Econometrics and Machine Learning
Jupyter Notebook
4
star
74

qe_libraries_article

Repo for a paper describing the QE libraries
TeX
4
star
75

docker

Docker Containers for QuantEcon
Dockerfile
4
star
76

WAMS-2017

Code and files for the QuantEcon workshop at WAMS 2017
Jupyter Notebook
4
star
77

dynamic_programming_lecture

Fast dynamic programming with Python
3
star
78

rse_comp_econ_2023

RSE Computational Economics workshops Feb 2023
Jupyter Notebook
3
star
79

qeds

Python library to support the QuantEcon Data Science lecture series.
Python
3
star
80

rse_comp_econ_2022

Jupyter Notebook
3
star
81

parallelization_experiments

Jupyter Notebook
3
star
82

workshop.africa-july2023

Workshop Repository for Africa July 2023
Jupyter Notebook
3
star
83

project.lecture-mojo

Some Real World Examples using Mojo (Modular)
3
star
84

continuous_time_mcs.notebooks

Notebook Repository for Continuous Time Markov Chain Lecture Series
Jupyter Notebook
3
star
85

GC_CUNY_workshop_2019

Notebooks for introduction to using Python for economics
Jupyter Notebook
2
star
86

python_lecture_sandpit

A sandpit for developing lectures on the Python side
Smarty
2
star
87

ipynb_to_rst_tools

Tools, scripts and instructions for converting Jupyter notebooks to RST files
Jupyter Notebook
2
star
88

DFOLS.jl

Julia
2
star
89

short_python_workshop

A short introduction to Python for economists
Jupyter Notebook
2
star
90

imf_october_2023

IMF Presentation October 2023
Jupyter Notebook
2
star
91

quantecon-book-dp

Website for the Dynamic Programming textbook
2
star
92

quantecon-notebooks-julia-colab

Colab notebooks for the QuantEcon Julia lectures
Jupyter Notebook
2
star
93

reading-group-2024

A shared repository to support notes and discussion for the Reading Group 2024
Jupyter Notebook
2
star
94

python-lecture-sandpit.myst

A python lecture sandpit (for myst migration)
TeX
2
star
95

QuantEcon.py.benchmark

Contains benchmarks for the QuantEcon.py repository using the asv project
Python
1
star
96

QuantEcon.py-conda

For conda package of QuantEcon.py code library
Batchfile
1
star
97

TaxSmoothing

Notebooks on tax smoothing
Jupyter Notebook
1
star
98

sphinx-tojupyter

A Jupyter Notebook Writer for Sphinx
Jupyter Notebook
1
star
99

keio_comp_econ_2023

Computational economics with Python
Jupyter Notebook
1
star
100

sphinxcontrib-jupyter.testground

An Example and Test Case repository for the Sphinx Jupyter extension
Python
1
star