Interaction Information
The interaction information is equal in magnitude to the Co-Information, but has the opposite sign when taken over an odd number of variables:
Interaction information was first studied in the 3-variable case which, for \(X_{0:3} = X_0X_1X_2\), takes the following form:
The extension to \(n > 3\) proceeds recursively. For example,
See also
For more information, see Co-Information.
API
- interaction_information(dist, rvs=None, crvs=None)[source]
Calculates the interaction information.
- Parameters:
dist (Distribution) – The distribution from which the interaction information is calculated.
rvs (list, None) – The indexes of the random variable used to calculate the interaction information between. If None, then the interaction information is calculated over all random variables.
crvs (list, None) – The indexes of the random variables to condition on. If None, then no variables are condition on.
- Returns:
II – The interaction information.
- Return type:
- Raises:
ditException – Raised if dist is not a joint distribution or if rvs or crvs contain non-existant random variables.