Skip to content

stergnator/universal-portfolios

 
 

Repository files navigation

universal-portfolios

The purpose of this package is to put together different online portfolio selection algorithms and provide unified tools for their analysis. If you do not know what online portfolio is, look at Ernest Chan blog, CASTrader or a recent survey by Bin Li and Steven C. H. Hoi.

In short, the purpose of online portfolio is to choose portfolio weights in every period to maximize its final wealth. Examples of such portfolios could be Markowitz portfolio or Universal portfolio. Currently there is an active research in the are of online portfolios and even though its results are mostly theoretic, algorithms for practical use starts to appear.

Several algorithms from the literature are currently implemented, based on the available literature and my understanding. Contributions or corrections are more than welcomed.

Resources

There is an IPython notebook explaining the basic use of the library. Paul Perry followed up on this and made a comparison of all algorithms on more recent ETF datasets. Also see the most recent notebook about modern portfolio theory. There's also an interesting discussion about this on Quantopian.

The original authors of some of the algorithms recently published their own implementation on github - On-Line Portfolio Selection Toolbox in MATLAB.

If you are more into R or just looking for a good resource about Universal Portfolios, check out blog and package logopt by Marc Delvaux.

Installation

Dependencies

The usual scientific libraries: numpy, scipy, pandas, matplotlib and cvxopt. All of them should be included in Anaconda.

Installation

pip install universal-portfolios

universal-portfolios works under both python 2 and 3.

About

Collection of algorithms for online portfolio selection

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 96.0%
  • Python 4.0%