ArticleslgStudy

science

Conditional mutual information

Conditional mutual information is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Conditional mutual information rather than just read about it. In short: In probability theory, particularly information theory, the conditional mutual information is, in its most basic form, the expected value of the mutual information of two random variables given the value of a third. Definition For random variables X, Y, and Z with support sets 𝒳, 𝒴 and 𝒵, we define the conditional mutual information as I(X;Y|Z)=∫𝒵DKL(P(X,Y)|Z‖PX|Z⊗PY|Z)dPZ.

Conditional mutual information — main illustration
Conditional mutual information — illustration

Key takeaways

  • Conditional mutual information belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Conditional mutual information to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Conditional mutual information from memory before moving on to harder problems.

Reference excerpt

In probability theory, particularly information theory, the conditional mutual information is, in its most basic form, the expected value of the mutual information of two random variables given the value of a third.

Definition For random variables X, Y, and Z with support sets 𝒳, 𝒴 and 𝒵, we define the conditional mutual information as I(X;Y|Z)=∫𝒵DKL(P(X,Y)|Z‖PX|Z⊗PY|Z)dPZ. This may be written in terms of the expectation operator: I(X;Y|Z)=𝔼Z[DKL(P(X,Y)|Z‖PX|Z⊗PY|Z)]. Thus I(X;Y|Z) is the expected (with respect to Z) Kullback–Leibler divergence from the conditional joint distribution P(X,Y)|Z to the product of the conditional marginals PX|Z and PY|Z. Compare with the definition of mutual information.

In terms of PMFs for discrete distributions For discrete random variables X, Y, and Z with support sets 𝒳, 𝒴 and 𝒵, the conditional mutual information I(X;Y|Z) is as follows

I(X;Y|Z)=∑z∈𝒵pZ(z)∑y∈𝒴∑x∈𝒳pX,Y|Z(x,y|z)log⁡pX,Y|Z(x,y|z)pX|Z(x|z)pY|Z(y|z) where the marginal, joint, and/or conditional probability mass functions are denoted by p with the appropriate subscript. This can be simplified as I(X;Y|Z)=∑z∈𝒵∑y∈𝒴∑x∈𝒳pX,Y,Z(x,y,z)log⁡pZ(z)pX,Y,Z(x,y,z)pX,Z(x,z)pY,Z(y,z).

In terms of PDFs for continuous distributions For (absolutely) continuous random variables X, Y, and Z with support sets 𝒳, 𝒴 and 𝒵, the conditional mutual information I(X;Y|Z) is as follows

I(X;Y|Z)=∫𝒵(∫𝒴∫𝒳log⁡(pX,Y|Z(x,y|z)pX|Z(x|z)pY|Z(y|z))pX,Y|Z(x,y|z)dxdy)pZ(z)dz where the marginal, joint, and/or conditional probability density functions are denoted by p with the appropriate subscript. This can be simplified as I(X;Y|Z)=∫𝒵∫𝒴∫𝒳log⁡(pZ(z)pX,Y,Z(x,y,z)pX,Z(x,z)pY,Z(y,z))pX,Y,Z(x,y,z)dxdydz.

Some identities Alternatively, we may write in terms of joint and conditional entropies as

I(X;Y|Z)=H(X,Z)+H(Y,Z)−H(X,Y,Z)−H(Z)=H(X|Z)−H(X|Y,Z)=H(X|Z)+H(Y|Z)−H(X,Y|Z). This can be rewritten to show its relationship to mutual information

I(X;Y|Z)=I(X;Y,Z)−I(X;Z) usually rearranged as the chain rule for mutual information

I(X;Y,Z)=I(X;Z)+I(X;Y|Z) or

I(X;Y|Z)=I(X;Y)−(I(X;Z)−I(X;Z|Y)). Another equivalent form of the above is

I(X;Y|Z)=H(Z|X)+H(X)+H(Z|Y)+H(Y)−H(Z|X,Y)−H(X,Y)−H(Z)=I(X;Y)+H(Z|X)+H(Z|Y)−H(Z|X,Y)−H(Z). Like mutual information, conditional mutual information can be expressed as a Kullback–Leibler divergence:

I(X;Y|Z)=DKL[p(X,Y,Z)‖p(X|Z)p(Y|Z)p(Z)]. Or as an expected value of simpler Kullback–Leibler divergences:

I(X;Y|Z)=∑z∈𝒵p(Z=z)DKL[p(X,Y|z)‖p(X|z)p(Y|z)], I(X;Y|Z)=∑y∈𝒴p(Y=y)DKL[p(X,Z|y)‖p(X|Z)p(Z|y)].

More general definition A more general definition of conditional mutual information, applicable to random variables with continuous or other arbitrary distributions, will depend on the concept of regular conditional probability. Let (Ω,ℱ,𝔓) be a probability space, and let the random variables X, Y, and Z each be defined as a Borel-measurable function from Ω to some state space endowed with a topological structure. Consider the Borel measure (on the σ-algebra generated by the open sets) in the state space of each random variable defined by assigning each Borel set the 𝔓-measure of its preimage in ℱ. This is called the pushforward measure X∗𝔓=𝔓(X−1(⋅)). The support of a random variable is defined to be the topological support of this measure, i.e. suppX=suppX∗𝔓. Now we can formally define the conditional probability measure given the value of one (or, via the product topology, more) of the random variables. Let M be a measurable subset of Ω, (i.e. M∈ℱ,) and let x∈suppX. Then, using the disintegration theorem:

𝔓(M|X=x)=limU∋x𝔓(M∩{X∈U})𝔓({X∈U})and𝔓(M|X)=∫Md𝔓(ω|X=X(ω)), where the limit is taken over the open neighborhoods U of x, as they are allowed to become arbitrarily smaller with respect to set inclusion. Finally we can define the conditional mutual information via Lebesgue integration:

I(X;Y|Z)=∫Ωlog⁡(d𝔓(ω|X,Z)d𝔓(ω|Y,Z)d𝔓(ω|Z)d𝔓(ω|X,Y,Z))d𝔓(ω), where the integrand is the logarithm of a Radon–Nikodym derivative involving some of the conditional probability measures we have just defined.

Note on notation In an expression such as I(A;B|C), A, B, and C need not necessarily be restricted to representing individual random variables, but could also represent the joint distribution of any collection of random variables defined on the same probability space. As is common in probability theory, we may use the comma to denote such a joint distribution, e.g. I(A0,A1;B1,B2,B3|C0,C1). Hence the use of the semicolon (or occasionally a colon or even a wedge ∧) to separate the principal arguments of the mutual information symbol. (No such distinction is necessary in the symbol for joint entropy, since the joint entropy of any number of random variables is the same as the entropy of their joint distribution.)

Properties

Nonnegativity It is always true that

I(X;Y|Z)≥0, for discrete, jointly distributed random variables X, Y and Z. This result has been used as a basic building block for proving other inequalities in information theory, in particular, those known as Shannon-type inequalities. Conditional mutual information is also non-negative for continuous random variables under certain regularity conditions.

Interaction information Conditioning on a third random variable may either increase or decrease the mutual information: that is, the difference I(X;Y)−I(X;Y|Z), called the interaction information, may be positive, negative, or zero. This is the case even when random variables are pairwise independent. Such is the case when: X∼Bernoulli(0.5),Z∼Bernoulli(0.5),Y={Xif Z=01−Xif Z=1in which case X, Y and Z are pairwise independent and in particular I(X;Y)=0, but I(X;Y|Z)=1. (Y here is the xor of X and Z so Z acts as the "secret key" for "plaintext" X and ciphertext "Y")

Chain rule for mutual information The chain rule (as derived above) provides two ways to decompose I(X;Y,Z):

I(X;Y,Z)=I(X;Z)+I(X;Y|Z)=I(X;Y)+I(X;Z|Y) The data processing inequality is closely related to conditional mutual information and can be proven using the chain rule.

Interaction information

The conditional mutual information is used to inductively define the interaction information, a generalization of mutual information, as follows:

I(X1;…;Xn+1)=I(X1;…;Xn)−I(X1;…;Xn|Xn+1), where

I(X1;...;Xn−1|Xn)=𝔼Xn[I(X1;...;Xn−1)|Xn]. Because the conditional mutual information can be greater than or less than its unconditional counterpart, the interaction information can be positive, negative, or zero, which makes it hard to interpret.

References

Illustrations

Conditional mutual information illustration
Conditional mutual information: Venn diagram of information theoretic measures for three variables x, y, and z, represented by the lower left, lower right, and upper circles, respectively. The conditional mutual informations I(x;z|y), I(y;z|x) and I(x;y|z) are represented by the yellow, cyan, and magenta regions, respectively.
Venn diagram of information theoretic measures for three variables x, y, and z, represented by the lower left, lower right, and upper circles, respectively. The conditional mutual informations I(x;z|y), I(y;z|x) and I(x;y|z) are represented by the yellow, cyan, and magenta regions, respectively.

Worked examples

Example 1 — a first encounter with Conditional mutual information

Start with the simplest possible case. Write down what Conditional mutual information claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Conditional mutual information before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Conditional mutual information ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Conditional mutual information

In research
Conditional mutual information appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Conditional mutual information in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Conditional mutual information is common in secondary-school and first-year university syllabi. It links to neighbouring topics Entropy and information, Information theory, so understanding it makes those chapters shorter.
In everyday life
Look for Conditional mutual information outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Conditional mutual information” →

How to study Conditional mutual information in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Conditional mutual information means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Conditional mutual information out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Conditional mutual information in simple terms?

In probability theory, particularly information theory, the conditional mutual information is, in its most basic form, the expected value of the mutual information of two random variables given the value of a third. Definition For random variables X, Y, and Z with support sets 𝒳, 𝒴 and 𝒵, we def…

Why does Conditional mutual information matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Conditional mutual information?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Conditional mutual information.

Tags

  • Entropy and information
  • Information theory

Keep exploring