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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cvar_optimization_benchmarks-0.1.5.tar.gz | 14.8 kB | Without provenance | Details for cvar_optimization_benchmarks-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cvar_optimization_benchmarks-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for cvar_optimization_benchmarks-0.1.5-py3-none-any.whl |
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
|
Security for cvar-optimization-benchmarks 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.