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

Install: pip install azapy

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.8.tar.gz (54.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: azapy-0.0.8.tar.gz
  • Upload date:
  • Size: 54.7 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.8.tar.gz
Algorithm Hash digest
SHA256 be4d10c9bc1e3008c39b04a0fc870c1774abb5856870d57bf65f78e36fc8f18c
MD5 6d22058288e74e570cb208cccf3d6ccf
BLAKE2b-256 e58fc17f63735a1caa1d7a8b774665d73cc7cb8c26110071a71c972f70c0c74b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: azapy-0.0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b427918a3af3a9b376f650789807faaf0ceef0fe27cb3e9f34d0dee7d82a1880
MD5 eef239f7a5817fe8fdc8c3a16988a843
BLAKE2b-256 9bc83c18d0a59c6a6980884671eb9973eae1c4f7788c6b9bb7adf7844eb95cb2

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