Skip to main content

Import the main names to top level.

Project description

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 Code Quality: Python Total Alerts 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.)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quantecon-0.5.3.tar.gz (151.5 kB view details)

Uploaded Source

Built Distribution

quantecon-0.5.3-py3-none-any.whl (179.5 kB view details)

Uploaded Python 3

File details

Details for the file quantecon-0.5.3.tar.gz.

File metadata

  • Download URL: quantecon-0.5.3.tar.gz
  • Upload date:
  • Size: 151.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.26.0

File hashes

Hashes for quantecon-0.5.3.tar.gz
Algorithm Hash digest
SHA256 ff9f4378069ff5713d3d8ce8efaa123b24910cb1a2eb69b4bba4735ff08f2768
MD5 25491c609fc621dc031b196c01dd0e5c
BLAKE2b-256 626d25f6d6faffbd53bd028f5a5aecc3a2a03cb4a1bdb24f163e39001f1b8ab2

See more details on using hashes here.

File details

Details for the file quantecon-0.5.3-py3-none-any.whl.

File metadata

  • Download URL: quantecon-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 179.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.26.0

File hashes

Hashes for quantecon-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 59d56424e7d9c765833612697c3c38b2030cd4bc88d5f2ff2b7f470a9c9b874b
MD5 2343bdad9e8a283f5132fe10adab4aec
BLAKE2b-256 32514fdfa1fdd7d7e706b8dee10c0e9fb31d47d4e176dfc7959561529dbef7a3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page