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.4.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.4-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cvar_optimization_benchmarks-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 2437890ebfc129a58527f1f0c428ed2c0c8cdf124ce7cabc7f7c9e16b438e34a
MD5 3555fe7d46a070ccb692f5105a73ed73
BLAKE2b-256 61a6f83067a95d151feccc324d5414570da5b0675eb1c4c977657cd8507c674e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cvar_optimization_benchmarks-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fdc32ed59fe2c614389e44a42226669a7e5d1ed50a94c79750b1db377f29ca83
MD5 cba7b2e8ce7c1885cb1146a011b34eb5
BLAKE2b-256 5830904aef36bf226d20b64e1eff2e8ef166fa3b29d9b8fdaf03a2d2c2334e51

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