Examples

Jupyter Notebook examples are available in the fortitudo.tech GitHub repository. The repository contains the following examples:

  1. How to combine CVaR optimization with Entropy Pooling views / stress-tests

  2. A replication of the results from Vorobets [2021] for the original Entropy Pooling heuristic and a separate bonus sequential Entropy Pooling example using the H1 heuristic to implement views on S&P 500 and STOXX 50 mean and volatility

  3. The accompanied code for Vorobets [2022] with a comparison of mean-CVaR and mean-variance optimization explaining why we use demeaned CVaR as default (it’s not recommended to run this example with 1,000,000 scenarios on Binder, see the comments below)

  4. An illustration of how to work with the time series simulation that follows with this package

  5. The accompanied code for Vorobets [2022] with an example of how to use the relative market values \(v\) parameter for portfolio optimization

  6. How to use the exponential decay simulation / P&L modeling functionality with historical time series for FAANG stocks

  7. How to use the time series simulation for risk factor and P&L simulation and combine this with Entropy Pooling views on risk factors

  8. The accompanied code for Vorobets [2023] illustrating how Bayesian networks can be used in combination with Entropy Pooling for causal and predictive market views and stress-testing

  9. The accompanied code for Kristensen and Vorobets [2024], illustrating the effect of parameter uncertainty and introducing Exposure Stacking.

See this YouTube playlist for a walkthrough of the package’s functionality and examples. The examples are good places to start exploring the functionality of this package. We have very limited resources for support in relation to these, but please let us know if you have suggestions for how we can improve them and make them easier to understand.

For a high-level introduction to the investment framework, see this YouTube video and Medium article. For an in-depth mathematical introduction to the investment framework, see these SSRN articles.

You can explore the examples in the cloud without any local installations using Binder. However, note that Binder servers have very limited resources and might not support some of the optimized routines this package uses. If you want access to a stable and optimized environment with persistent storage, please subscribe to our Data Science Server.