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 Fully General Investment Framework (FGIF) 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 Fully General Investment Framework (FGIF) 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.5.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.5-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cvar_optimization_benchmarks-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 db7367bd9d84434405dbce06fabae2ac0ca5356ade49245e79b0871022a8e559
MD5 6ba6699a8dc1aff1cc3cf3fccf8a0abb
BLAKE2b-256 7503e896f17dfa6dbb31bd62d9682c3414bbe50a50deeed3c5fbf95d69c67285

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cvar_optimization_benchmarks-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6b4e90d6002221d702c77ef2eea335862af7b24f8cc5f4a40e90d57392fdd10f
MD5 4abbcd2972096eb11d2e7a145ab616ab
BLAKE2b-256 9b1a43517c13ad44cce0e54d7a76e446f47f4c8d04823b1a0bbf6bfd90edeec2

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