Skip to main content

Conditional Value-at-Risk (CVaR) portfolio optimization benchmark problems in Python.

Project description

CVaR optimization benchmark problems

This repository contains Conditional Value-at-Risk (CVaR) portfolio optimization benchmark problems for fully general Monte Carlo distributions and derivatives portfolios.

The starting point is the next-generation investment framework's market representation given by the matrix $R\in \mathbb{R}^{S\times I}$ and associated joint scenario probability vectors $p,q\in \mathbb{R}^{S}$.

The 1_CVaROptBenchmarks notebook illustrates how the benchmark problems can be solved using Fortitudo Technologies' Investment Analysis module.

The 2_OptimizationExample notebook shows how you can replicate the results using the fortitudo.tech open-source Python package for the efficient frontier optimizations of long-only cash portfolios, which are the easiest problems to solve.

Installation Instructions

It is recommended to install the code dependencies in a conda environment:

conda create -n cvar-optimization-benchmarks python=3.13
conda activate cvar-optimization-benchmarks
pip install cvar-optimization-benchmarks

After this, you should be able to run the code in the 2_OptimizationExample notebook.

The code in 1_CVaROptBenchmarks notebook can only be run by people who subscribe to the Investment Analysis module.

Portfolio Construction and Risk Management book

You can read much more about the next-generation investment framework in the Portfolio Construction and Risk Management book, including a thorough description of CVaR optimization problems and Resampled Portfolio Stacking.

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

cvar_optimization_benchmarks-0.1.1.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cvar_optimization_benchmarks-0.1.1-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file cvar_optimization_benchmarks-0.1.1.tar.gz.

File metadata

  • Download URL: cvar_optimization_benchmarks-0.1.1.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.8.10 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for cvar_optimization_benchmarks-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0fba3648f1e94edbc5efd86ecaeb079857e413272910210841c902cd11a60de1
MD5 26c2325c201752f4b1e87e21d9538401
BLAKE2b-256 b06a6e519e8ca871d56d7da1e6f7984206dc449c6c57616aab569ea7e47aee97

See more details on using hashes here.

File details

Details for the file cvar_optimization_benchmarks-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cvar_optimization_benchmarks-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3ef7a2e534891d7b4017ee7bb77b9173086e37201ace36c515d847b0da06651
MD5 d1a861f3870e3f5d6553f32ec127aba4
BLAKE2b-256 fa277ea4ea009118f6f509fd88e726527562032e1cb34ff7fa17deb9a5682d05

See more details on using hashes here.

Supported by

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