Skip to main content

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.

Metadata

Release files for cvar-optimization-benchmarks 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cvar-optimization-benchmarks 0.1.5
File Size Uploaded
cvar_optimization_benchmarks-0.1.5.tar.gz 14.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cvar-optimization-benchmarks 0.1.5
File Interpreter ABI Platform
cvar_optimization_benchmarks-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 29.9 kB

Release files / cvar_optimization_benchmarks-0.1.5.tar.gz

Download URL cvar_optimization_benchmarks-0.1.5.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
db7367bd9d84434405dbce06fabae2ac0ca5356ade49245e79b0871022a8e559
BLAKE2b-256 checksum
How to use checksums
7503e896f17dfa6dbb31bd62d9682c3414bbe50a50deeed3c5fbf95d69c67285
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.8.10 Linux/5.15.167.4-microsoft-standard-WSL2

Release files / cvar_optimization_benchmarks-0.1.5-py3-none-any.whl

Download URL cvar_optimization_benchmarks-0.1.5-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b4e90d6002221d702c77ef2eea335862af7b24f8cc5f4a40e90d57392fdd10f
BLAKE2b-256 checksum
How to use checksums
9b1a43517c13ad44cce0e54d7a76e446f47f4c8d04823b1a0bbf6bfd90edeec2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.8.10 Linux/5.15.167.4-microsoft-standard-WSL2

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page