Giter Club home page Giter Club logo

entropy-pooling's Introduction

pytest codecov Binder

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).

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 transformations of the Monte Carlo simulation 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.

entropy-pooling's People

Contributors

antonvorobets avatar dependabot[bot] avatar ft-adm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.