Skip to main content

Efficient frontier based on Monte Carlo simulated returns

Project description

Python Monte Carlo Efficient Frontier (PyMCEF) package

Purpose

PyMCEF is a python package to generate efficient frontier by stochastic programming on Monte Carlo simulated returns.

Fixed-target expected under performance and absolute semi-deviation are the supported risk measures.

User input

The Monte Carlo simulated returns for all the assets in the investment universe is the input and will be to used to train the efficient frontier.

(Optional) The returns as a validation set to measure the performance of the efficient frontier.

Computation results

The complete efficient frontier stored as a vector of efficient portfolios, each of which containing the following:

  1. A python dictionary, storing the asset index and weight in the portfolio

  2. In sample performance (Sharpe ratio etc.)

  3. The lower and upper bound for the lagrangian multiplier producing this particular portfolio

  4. Validation performance, if validation Monte Carlo simulated returns are provided.

Advantage

This package implements the algorithm developed by Prof. Robert J. Vanderbei in his Book: Linear Programming: Foundations and Extensions and paper Frontiers of Stochastically Nondominated Portfolios

This algorithm is very efficient, starting with lagrangian multiplier being infinite and the optimal portfolio being 100% in the asset with the largest average return, only portfolios on the efficient frontier will be visited. The time cost of obtaining the full efficient frontier with this algorithm is similar to that of obtaining one single efficient portfolio with traditional method.

This algorithm is based on simulated returns so it is model agnostic. This introduce huge flexibility to the user as no assumption is made on the type of return distribution (e.g. Gaussian)

Works remain to be done

At least two desirable functionalities are not implemented yet:
  1. Support for short position

  2. Support user specified upper and lower bound of the weights of each asset.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pymcef-0.2.0-cp35-cp35m-win_amd64.whl (65.3 kB view hashes)

Uploaded CPython 3.5m Windows x86-64

pymcef-0.2.0-cp35-cp35m-macosx_10_6_x86_64.whl (87.8 kB view hashes)

Uploaded CPython 3.5m macOS 10.6+ x86-64

pymcef-0.2.0-cp27-cp27m-win_amd64.whl (68.4 kB view hashes)

Uploaded CPython 2.7m Windows x86-64

pymcef-0.2.0-cp27-cp27m-macosx_10_7_x86_64.whl (88.6 kB view hashes)

Uploaded CPython 2.7m macOS 10.7+ x86-64

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