Entropy Pooling in Python with a BSD 3-Clause license.
Project description
Entropy Pooling in Python
Due to popular demand from developers, this package contains the Entropy Pooling implementation from the fortitudo.tech Python package with a more permissive BSD 3-Clause license.
This package contains only one function called ep and has minimal dependencies with just scipy. See the examples for how you can import and use the ep function.
You can explore the examples without local installations using Binder.
Installation instructions
Installation can be done via pip:
pip install entropy-pooling
Theory
Entropy Pooling is a powerful method for implementing subjective views and performing stress-tests for fully general Monte Carlo distributions. It was first introduced by Meucci (2008) and refined with sequential algorithms by Vorobets (2021). For a quick introduction to Entropy Pooling intuition, watch this YouTube video.
The original Entropy Pooling approach solves the minimum relative entropy problem
$$q=\underset{x}{\text{argmin}}\lbrace x^{T}\left(\ln x-\ln p\right)\rbrace$$
subject to the constraints
$$Gx\leq h \quad \text{and} \quad Ax=b.$$
The constraints matrices $A$ and $G$ contain functions of the Monte Carlo simulation $R$ that allow you to implement subjective views and stress-tests by changing the joint scenario probabilities from a prior probability vector $p$ to a posterior probability vector $q$.
A useful statistic when working with Entropy Pooling is the effective number of scenarios introduced by Meucci (2012). For a causal Bayesian nets overlay on top of Entropy Pooling, see Vorobets (2023).
Video walkthroughs
Video walkthroughs of the two notebook examples are available here and here. The videos give additional insights into Entropy Pooling theory and its sequential refinements. It is highly recommended to watch these two videos to quickly increase your understanding.
Portfolio Construction and Risk Management Book
Entropy Pooling is a core part of the next generation investment framework that also utilizes fully general Monte Carlo distributions and CVaR analysis, see this YouTube video for an introduction. To get a pedagogical and deep presentation of all the possibilities Entropy Pooling offers, see the Portfolio Construction and Risk Management Book.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for entropy_pooling-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ae6af9d70ac49a1a63b755521ec4780956ac941bf829fc3711c2cc0e2368578 |
|
MD5 | 50599848b2d83640344ad694fcc34a48 |
|
BLAKE2b-256 | 1353c03667f4aca84de7391a21f8b048356adace17b1e0d9091bfb5e444254ce |