Conditional independence

Short description: Probability theory concept

See also: Conditional dependence

Part of a series on statistics

Probability theory

* Probability axioms

* Probability space
* Sample space
* Elementary event
* Event
* Random variable
* Probability measure

* Complementary event
* Joint probability
* Marginal probability
* Conditional probability

* Independence
* Conditional independence
* Law of total probability
* Law of large numbers
* Bayes' theorem
* Boole's inequality

* Venn diagram
* Tree diagram

* v
* t
* e

In probability theory, conditional independence describes situations in which an observation is irrelevant or redundant when evaluating the certainty of a hypothesis. Conditional independence is usually formulated in terms of conditional probability, as a special case where the probability of the hypothesis given the uninformative observation is equal to the probability without. If A is the hypothesis, and B and C are observations, conditional independence can be stated as an equality:

P(A∣B,C)=P(A∣C)

where P(A∣B,C) is the probability of A given both B and C. Since the probability of A given C is the same as the probability of A given both B and C, this equality expresses that B contributes nothing to the certainty of A. In this case, A and B are said to be conditionally independent given C, written symbolically as: (A⊥⊥B∣C).

The concept of conditional independence is essential to graph-based theories of statistical inference, as it establishes a mathematical relation between a collection of conditional statements and a graphoid.

## Contents

* 1 Conditional independence of events
* 1.1 Proof of the equivalent definition
* 1.2 Examples
* 1.2.1 Coloured boxes
* 1.2.2 Proximity and delays
* 1.2.3 Dice rolling
* 1.2.4 Height and vocabulary
* 2 Conditional independence of random variables
* 3 Conditional independence of random vectors
* 4 Uses in Bayesian inference
* 5 Rules of conditional independence
* 5.1 Symmetry
* 5.2 Decomposition
* 5.3 Weak union
* 5.4 Contraction
* 5.5 Intersection
* 6 See also
* 7 References
* 8 External links

## Conditional independence of events

Let A, B, and C be events. A and B are said to be conditionally independent given C if and only if P(C)>0 andP(A∣B,C)=P(A∣C). This property is symmetric (more on this below) and often written as (A⊥⊥B∣C), which should be read as((A⊥⊥B)|C).

Equivalently, conditional independence may be stated as P(A,B|C)=P(A|C)P(B|C) where P(A,B|C) is the joint probability of A and B given C. This alternate formulation states that A and B are independent events, given C.

It demonstrates that (A⊥⊥B∣C) is equivalent to (B⊥⊥A∣C).

### Proof of the equivalent definition

P(A,B∣C)=P(A∣C)P(B∣C)⟺P(A,B,C)P(C)=(P(A,C)P(C))(P(B,C)P(C))definition of conditional probability⟺P(A,B,C)=P(A,C)P(B,C)P(C)multiply both sides by P(C)⟺P(A,B,C)P(B,C)=P(A,C)P(C)divide both sides by P(B, C)⟺P(A∣B,C)=P(A∣C)definition of conditional probability

### Examples

#### Coloured boxes

Each cell represents a possible outcome. The events R, B and Y are represented by the areas shaded red, blue and yellow respectively. The overlap between the events R and B is shaded purple.

The probabilities of these events are shaded areas with respect to the total area. In both examples R and B are conditionally independent given Y because:

Pr⁡(R,B∣Y)=Pr⁡(R∣Y)Pr⁡(B∣Y)[1]

but not conditionally independent given [not Y] because:

Pr⁡(R,B∣not Y)=Pr⁡(R∣not Y)Pr⁡(B∣not Y)

#### Proximity and delays

Let events A and B be defined as the probability that person A and person B will be home in time for dinner where both people are randomly sampled from the entire world. Events A and B can be assumed to be independent i.e. knowledge that A is late has minimal to no change on the probability that B will be late. However, if a third event is introduced, person A and person B live in the same neighborhood, the two events are now considered not conditionally independent. Traffic conditions and weather-related events that might delay person A, might delay person B as well. Given the third event and knowledge that person A was late, the probability that person B will be late does meaningfully change.[2]

#### Dice rolling

Conditional independence depends on the nature of the third event. If you roll two dice, one may assume that the two dice behave independently of each other. Looking at the results of one die will not tell you about the result of the second die. (That is, the two dice are independent.) If, however, the 1st die's result is a 3, and someone tells you about a third event - that the sum of the two results is even - then this extra unit of information restricts the options for the 2nd result to an odd number. In other words, two events can be independent, but NOT conditionally independent.[2]

#### Height and vocabulary

Height and vocabulary are dependent since very small people tend to be children, known for their more basic vocabularies. But knowing that two people are 19 years old (i.e., conditional on age) there is no reason to think that one person's vocabulary is larger if we are told that they are taller.

## Conditional independence of random variables

Two discrete random variables X and Y are conditionally independent given a third discrete random variable Z if and only if they are independent in their conditional probability distribution given Z. That is, X and Y are conditionally independent given Z if and only if, given any value of Z, the probability distribution of X is the same for all values of Y and the probability distribution of Y is the same for all values of X. Formally:

(X⊥⊥Y)∣Z⟺FX,Y∣Z=z(x,y)=FX∣Z=z(x)⋅FY∣Z=z(y)for all x,y,z

|
|

(Eq.2)

where FX,Y∣Z=z(x,y)=Pr⁡(X≤x,Y≤y∣Z=z) is the conditional cumulative distribution function of X and Y given Z.

Two events R and B are conditionally independent given a σ-algebra Σ if

Pr⁡(R,B∣Σ)=Pr⁡(R∣Σ)Pr⁡(B∣Σ) a.s.

where Pr⁡(A∣Σ) denotes the conditional expectation of the indicator function of the event A, χA, given the sigma algebra Σ. That is,

Pr⁡(A∣Σ):=E⁡[χA∣Σ].

Two random variables X and Y are conditionally independent given a σ-algebra Σ if the above equation holds for all R in σ(X) and B in σ(Y).

Two random variables X and Y are conditionally independent given a random variable W if they are independent given σ(W): the σ-algebra generated by W. This is commonly written:

X⊥⊥Y∣W or
X⊥Y∣W

This is read "X is independent of Y, given W"; the conditioning applies to the whole statement: "(X is independent of Y) given W".

(X⊥⊥Y)∣W

This notation extends X⊥⊥Y for "X is independent of Y."

If W assumes a countable set of values, this is equivalent to the conditional independence of X and Y for the events of the form [W=w]. Conditional independence of more than two events, or of more than two random variables, is defined analogously.

The following two examples show that X⊥⊥Y neither implies nor is implied by (X⊥⊥Y)∣W.

First, suppose W is 0 with probability 0.5 and 1 otherwise. When W = 0 take X and Y to be independent, each having the value 0 with probability 0.99 and the value 1 otherwise. When W=1, X and Y are again independent, but this time they take the value 1 with probability 0.99. Then (X⊥⊥Y)∣W. But X and Y are dependent, because Pr(X = 0) < Pr(X = 0|Y = 0). This is because Pr(X = 0) = 0.5, but if Y = 0 then it's very likely that W = 0 and thus that X = 0 as well, so Pr(X = 0|Y = 0) > 0.5.

For the second example, suppose X⊥⊥Y, each taking the values 0 and 1 with probability 0.5. Let W be the product X⋅Y. Then when W=0, Pr(X = 0) = 2/3, but Pr(X = 0|Y = 0) = 1/2, so (X⊥⊥Y)∣W is false. This is also an example of Explaining Away. See Kevin Murphy's tutorial [3] where X and Y take the values "brainy" and "sporty".

## Conditional independence of random vectors

Two random vectors 𝐗=(X1,…,Xl)T and 𝐘=(Y1,…,Ym)T are conditionally independent given a third random vector 𝐙=(Z1,…,Zn)T if and only if they are independent in their conditional cumulative distribution given 𝐙. Formally:

(𝐗⊥⊥𝐘)∣𝐙⟺F𝐗,𝐘|𝐙=𝐳(𝐱,𝐲)=F𝐗∣𝐙=𝐳(𝐱)⋅F𝐘∣𝐙=𝐳(𝐲)for all 𝐱,𝐲,𝐳

|
|

(Eq.3)

where 𝐱=(x1,…,xl)T, 𝐲=(y1,…,ym)T and 𝐳=(z1,…,zn)T and the conditional cumulative distributions are defined as follows.

F𝐗,𝐘∣𝐙=𝐳(𝐱,𝐲)=Pr⁡(X1≤x1,…,Xl≤xl,Y1≤y1,…,Ym≤ym∣Z1=z1,…,Zn=zn)F𝐗∣𝐙=𝐳(𝐱)=Pr⁡(X1≤x1,…,Xl≤xl∣Z1=z1,…,Zn=zn)F𝐘∣𝐙=𝐳(𝐲)=Pr⁡(Y1≤y1,…,Ym≤ym∣Z1=z1,…,Zn=zn)

## Uses in Bayesian inference

Let p be the proportion of voters who will vote "yes" in an upcoming referendum. In taking an opinion poll, one chooses n voters randomly from the population. For i = 1, ..., n, let Xi = 1 or 0 corresponding, respectively, to whether or not the ith chosen voter will or will not vote "yes".

In a frequentist approach to statistical inference one would not attribute any probability distribution to p (unless the probabilities could be somehow interpreted as relative frequencies of occurrence of some event or as proportions of some population) and one would say that X1, ..., Xn are independent random variables.

By contrast, in a Bayesian approach to statistical inference, one would assign a probability distribution to p regardless of the non-existence of any such "frequency" interpretation, and one would construe the probabilities as degrees of belief that p is in any interval to which a probability is assigned. In that model, the random variables X1, ..., Xn are not independent, but they are conditionally independent given the value of p. In particular, if a large number of the Xs are observed to be equal to 1, that would imply a high conditional probability, given that observation, that p is near 1, and thus a high conditional probability, given that observation, that the next X to be observed will be equal to 1.

## Rules of conditional independence

A set of rules governing statements of conditional independence have been derived from the basic definition.[4][5]

These rules were termed "Graphoid Axioms" by Pearl and Paz,[6] because they hold in graphs, where X⊥⊥A∣B is interpreted to mean: "All paths from X to A are intercepted by the set B".[7]

### Symmetry

X⊥⊥Y∣Z⇔Y⊥⊥X∣Z

Proof:

From the definition of conditional independence,

X⊥⊥Y∣Z⇔P(X,Y∣Z)=P(X∣Z)P(Y∣Z)⇔Y⊥⊥X∣Z

### Decomposition

X⊥⊥Y∣Z⇒h(X)⊥⊥Y∣Z

Proof From the definition of conditional independence, we seek to show that:

X⊥⊥Y∣Z⇒P(h(X),Y∣Z)=P(h(X)∣Z)P(Y∣Z)

. The left side of this equality is:

P(h(X)=a,Y=y∣Z=z)=∑X:h(X)=aP(X=x,Y=y∣Z=z)

, where the expression on the right side of this equality is the summation over X such that h(X)=a of the conditional probability of X,Y on Z. Further decomposing,

∑X:h(X)=aP(X=x,Y=y∣Z=z)=∑X:h(X)=aP(X=x∣Z=z)P(Y=y∣Z=z)=P(Y=y∣Z=z)∑X:h(X)=aP(X=x∣Z=z)=P(Y∣Z)P(h(X)∣Z)

. Special cases of this property include

* (X,W)⊥⊥Y∣Z⇒X⊥⊥Y∣Z
* Proof: Let us define A=(X,W) and h(⋅) be an 'extraction' function h(X,W)=X. Then:

(X,W)⊥⊥Y∣Z⇔A⊥⊥Y∣Z⇒h(A)⊥⊥Y∣ZDecomposition⇔X⊥⊥Y∣Z

* X⊥⊥(Y,W)∣Z⇒X⊥⊥Y∣Z
* Proof: Let us define V=(Y,W) and h(⋅) be again an 'extraction' function h(Y,W)=Y. Then:

X⊥⊥(Y,W)∣Z⇔X⊥⊥V∣Z⇔V⊥⊥X∣ZSymmetry⇒h(V)⊥⊥X∣ZDecomposition⇔Y⊥⊥X∣Z⇔X⊥⊥Y∣ZSymmetry

### Weak union

X⊥⊥Y∣Z⇒X⊥⊥Y∣(Z,h(X))

Proof:

Given X⊥⊥Y∣Z, we aim to show

X⊥⊥Y∣(Z,h(X))⇔X⊥⊥Y∣UwhereU=(Z,h(X))⇔Y⊥⊥X∣USymmetry⇔P(Y∣X,U)=P(Y∣U)⇔P(Y∣X,Z,h(X))=P(Y∣Z,h(X))

. We begin with the left side of the equation

P(Y∣X,Z,h(X))=P(Y∣X,Z)=P(Y∣Z)Since by symmetry Y⊥⊥X∣Z

. From the given condition

X⊥⊥Y∣Z⇒h(X)⊥⊥Y∣ZDecomposition⇔Y⊥⊥h(X)∣ZSymmetry⇒P(Y∣Z,h(X))=P(Y∣Z)

. Thus P(Y∣X,Z,h(X))=P(Y∣Z,h(X)), so we have shown that X⊥⊥Y∣(Z,h(X)).

Special Cases:

Some textbooks present the property as

* X⊥⊥(Y,W)∣Z⇒X⊥⊥Y∣(Z,W) [8].

* (X,W)⊥⊥Y∣Z⇒X⊥⊥Y∣(Z,W).

Both versions can be shown to follow from the weak union property given initially via the same method as in the decomposition section above.

### Contraction

X⊥⊥A∣BX⊥⊥B} and ⇒X⊥⊥A,B

Proof

This property can be proved by noticing Pr⁡(X∣A,B)=Pr⁡(X∣B)=Pr⁡(X), each equality of which is asserted by X⊥⊥A∣B and X⊥⊥B, respectively.

### Intersection

For strictly positive probability distributions,[5] the following also holds:

X⊥⊥Y∣Z,WX⊥⊥W∣Z,Y} and ⇒X⊥⊥W,Y∣Z

Proof

By assumption:

P(X|Z,W,Y)=P(X|Z,W)∧P(X|Z,W,Y)=P(X|Z,Y)⟹P(X|Z,Y)=P(X|Z,W)

Using this equality, together with the Law of total probability applied to P(X|Z):

P(X|Z)=∑w∈WP(X|Z,W=w)P(W=w|Z)=∑w∈WP(X|Y,Z)P(W=w|Z)=P(X|Z,Y)∑w∈WP(W=w|Z)=P(X|Z,Y)

Since P(X|Z,W,Y)=P(X|Z,Y) and P(X|Z,Y)=P(X|Z), it follows that P(X|Z,W,Y)=P(X|Z)⟺X⊥⊥Y,W|Z.

Technical note: since these implications hold for any probability space, they will still hold if one considers a sub-universe by conditioning everything on another variable, say K. For example, X⊥⊥Y⇒Y⊥⊥X would also mean that X⊥⊥Y∣K⇒Y⊥⊥X∣K.

## See also

* Graphoid
* Conditional dependence
* de Finetti's theorem
* Conditional expectation

## References

1. ↑ To see that this is the case, one needs to realise that Pr(R ∩ B | Y) is the probability of an overlap of R and B (the purple shaded area) in the Y area. Since, in the picture on the left, there are two squares where R and B overlap within the Y area, and the Y area has twelve squares, Pr(R ∩ B | Y) = ⁠2/12⁠ = ⁠1/6⁠. Similarly, Pr(R | Y) = ⁠4/12⁠ = ⁠1/3⁠ and Pr(B | Y) = ⁠6/12⁠ = ⁠1/2⁠.
2. ↑ 2.0 2.1 Could someone explain conditional independence?
3. ↑ "Graphical Models". http://people.cs.ubc.ca/~murphyk/Bayes/bnintro.html.
4. ↑ "Conditional Independence in Statistical Theory". Journal of the Royal Statistical Society, Series B 41 (1): 1–31. 1979.
5. ↑ 5.0 5.1 J Pearl, Causality: Models, Reasoning, and Inference, 2000, Cambridge University Press
6. ↑ du Boulay, Benedict; Hogg, David C.; Steels, Luc, eds (1986). "Advances in Artificial Intelligence II, Seventh European Conference on Artificial Intelligence, ECAI 1986, Brighton, UK, July 20–25, 1986, Proceedings". North-Holland. pp. 357–363. https://ftp.cs.ucla.edu/pub/stat_ser/r53-L.pdf.
7. ↑ Pearl, Judea (1988). Probabilistic reasoning in intelligent systems: networks of plausible inference. Morgan Kaufmann. ISBN 9780934613736. https://archive.org/details/probabilisticrea00pear.
8. ↑ Koller, Daphne; Friedman, Nir (2009). Probabilistic Graphical Models. Cambridge, MA: The MIT Press. ISBN 9780262013192.

## External links

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Conditional independence. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Conditional_independence&oldid=4158775"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template