Skip to main content

Financial Portfolio Optimization Algorithms

Project description

azapy

Financial Portfolio Optimization Algorithms

TimeSeries

Author: Mircea Marinescu

email: Mircea.Marinescu@outlook.com

Package docs

Source code

Contents

A. Risk based portfolio optimization algorithms:

  1. Mixture CVaR (Conditional Value at Risk)
  2. Mixture SMCR (Second Moment Coherent Risk)
  3. MV (Mean Variance)
  4. SD (Standard Deviation)
  5. Mixture MAD (Mean Absolute Deviation)
  6. Mixture LSSD (Lower Semi-Standard Deviation)
  7. GINI (as in Corrado Gini - statistician 1884-1965)
  8. MSGINI (Second Moment Gini dispersion measure)
  9. Omega ratio (introduced by Con Keating and William F. Shadwick - 2002)

For each class of portfolios the following optimization strategies are available:

  1. minimization of dispersion for a give expected rate of return
  2. maximization of generalized Sharpe ratio
  3. minimization of the inverse of generalized Sharpe ratio
  4. minimum dispersion portfolio
  5. Inverse-N risk optimal portfolio (optimal portfolio with the same dispersion measure as equal weighted portfolio)
  6. maximization of expected rate of returns for a fixed value of risk aversion

B. "Naïve" portfolio strategies:

  1. Constant weighted portfolio. A particular case is equal weighted portfolio.
  2. Inverse volatility portfolio (i.e. portfolio weights are proportional to the inverse of asset volatilities)
  3. Inverse variance portfolio (i.e. portfolio weights are proportional to the inverse of asset variances)
  4. Inverse drawdown portfolio (i.e. portfolio weights are proportional to the asset absolute value of maximum drawdowns over a predefined historical period)

C. Greedy portfolio optimization strategies:

  1. Kelly's portfolio (as in John Larry Kelly Jr. - scientist 1923-1965) - maximization of portfolio log returns

Utility functions:

  1. Collect historical market data from a data provider (at this point only from alphavantage)
  2. Generate business calendars (at this point only NYSE business calendar)
  3. Generate rebalancing portfolio schedules

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

azapy-0.0.6.tar.gz (54.5 kB view details)

Uploaded Source

Built Distribution

azapy-0.0.6-py3-none-any.whl (84.6 kB view details)

Uploaded Python 3

File details

Details for the file azapy-0.0.6.tar.gz.

File metadata

  • Download URL: azapy-0.0.6.tar.gz
  • Upload date:
  • Size: 54.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for azapy-0.0.6.tar.gz
Algorithm Hash digest
SHA256 418c06f1f19a35604b115ea793c8827db6a8fd7c58048af63e868543cd7211d7
MD5 8f3849fc52b97a02be00e4b79db26d58
BLAKE2b-256 8e92de715ce545842fe46949227e92d9da8b14437c3f941c0279a2e49b2bdd8f

See more details on using hashes here.

File details

Details for the file azapy-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: azapy-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 84.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for azapy-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d7ef046f942bae2db7920e5357bd100bda46a8b21a01e1e27c04f2ce7e3071d5
MD5 d046239368299c541deb1d85b51c026c
BLAKE2b-256 702ca1f8e5783e25432a457681cf1c6740ecca225e9d392b7c07e0d101f946af

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