---
library: "bootstrap"
slug: "MutualInformation"
name: "MutualInformation"
ref: "MutualInformation#e714"
hash: "sema:MutualInformation#mh:SHA-256:e714024fcd78de043d4d86021d907157d7f44f7a9c719b1d760f5810dd762a8b"
type: "Primitives"
layer: "Physics"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/MutualInformation"
---

# MutualInformation

Information-theoretic dependence between two variables

Physics · Primitives

## Mechanism

The substrate information-theoretic measure of dependence between two random variables, defined generally as the Kullback-Leibler divergence between their joint distribution and the product of their marginals. When the relevant [Entropy](https://semahash.org/vocabularies/bootstrap/patterns/Entropy.md) terms are finite, I(X; Y) = H(X) + H(Y) − H(X, Y), equivalently the reduction in one variable's entropy from knowing the other. Zero mutual information indicates statistical independence; a positive value indicates dependence, but its unnormalized magnitude has no universal scale. The property exists whether or not anyone estimates it. Distinct from normalized correlation coefficients, whose sensitivity depends on the selected method, and from mere co-occurrence.

## Invariants

- Non-negativity: I(X; Y) ≥ 0 for all random variables X, Y.
- Symmetry: I(X; Y) = I(Y; X).
- Zero iff independent: I(X; Y) = 0 if and only if X and Y are statistically independent.
- Discrete entropy bound: for discrete X and Y with finite entropies, I(X; Y) ≤ min(H(X), H(Y)).

## Failure modes

- Estimator conflation: reading a finite-sample estimate of zero as proof of independence. Zero-iff-independent is a property of the population quantity, not of an estimate.

## Where this came from

—

## Builds on

- [Entropy](https://semahash.org/vocabularies/bootstrap/patterns/Entropy.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: MutualInformation#e714
- Hash: sema:MutualInformation#mh:SHA-256:e714024fcd78de043d4d86021d907157d7f44f7a9c719b1d760f5810dd762a8b

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/MutualInformation
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/MutualInformation.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
