# Independence (probability theory)

Part of a series on Statistics |

Probability theory |
---|

In probability theory, two events are **independent**, **statistically independent**, or **stochastically independent**^{[1]} if the occurrence of one does not affect the probability of occurrence of the other. Similarly, two random variables are independent if the realization of one does not affect the probability distribution of the other.

The concept of independence extends to dealing with collections of more than two events or random variables, in which case the events are pairwise independent if each pair are independent of each other, and the events are **mutually independent** if each event is independent of each other combination of events.

## Definition[edit]

### For events[edit]

#### Two events[edit]

Two events *A* and *B* are **independent** (often written as or ) if and only if their joint probability equals the product of their probabilities:

- .

Why this defines independence is made clear by rewriting with conditional probabilities:

- .

and similarly

- .

Thus, the occurrence of *B* does not affect the probability of *A*, and vice versa. Although the derived expressions may seem more intuitive, they are not the preferred definition, as the conditional probabilities may be undefined if *P*(*A*) or *P*(*B*) are 0. Furthermore, the preferred definition makes clear by symmetry that when *A* is independent of *B*, *B* is also independent of *A*.

#### More than two events[edit]

A finite set of events is **pairwise independent** if every pair of events is independent^{[2]}—that is, if and only if for all distinct pairs of indices *m*, *k*,

A finite set of events is **mutually independent** if every event is independent of any intersection of the other events^{[2]}—that is, if and only if for every *k*-element subset of ,

This is called the *multiplication rule* for independent events. Note that it is not a single condition involving only the product of all the probabilities of all single events (see below for a counterexample); it must hold true for all subsets of events.

For more than two events, a mutually independent set of events is (by definition) pairwise independent; but the converse is not necessarily true (see below for a counterexample).

### For real valued random variables[edit]

#### Two random variables[edit]

Two random variables *X* and *Y* are **independent** if and only if (iff) the elements of the π-system generated by them are independent; that is to say, for every *a* and *b*, the events {*X* ≤ *a*} and {*Y* ≤ *b*} are independent events (as defined above). That is, *X* and *Y* with cumulative distribution functions and , and probability densities and , are independent iff the combined random variable (*X*, *Y*) has a joint cumulative distribution function

or equivalently, if the joint density exists,

#### More than two random variables[edit]

A set of random variables is **pairwise independent** if and only if every pair of random variables is independent. Even if the set of random variables is pairwise independent, it is not necessarily mutually independent as defined next.

A set of random variables is **mutually independent** if and only if for any finite subset and any finite sequence of numbers , the events are mutually independent events (as defined above).

The measure-theoretically inclined may prefer to substitute events {*X* ∈ *A*} for events {*X* ≤ *a*} in the above definition, where *A* is any Borel set. That definition is exactly equivalent to the one above when the values of the random variables are real numbers. It has the advantage of working also for complex-valued random variables or for random variables taking values in any measurable space (which includes topological spaces endowed by appropriate σ-algebras).

#### Conditional independence[edit]

Intuitively, two random variables *X* and *Y* are conditionally independent given *Z* if, once *Z* is known, the value of *Y* does not add any additional information about *X*. For instance, two measurements *X* and *Y* of the same underlying quantity *Z* are not independent, but they are **conditionally independent given Z** (unless the errors in the two measurements are somehow connected).

The formal definition of conditional independence is based on the idea of conditional distributions. If *X*, *Y*, and *Z* are discrete random variables, then we define *X* and *Y* to be *conditionally independent given* *Z* if

for all *x*, *y* and *z* such that P(*Z* = *z*) > 0. On the other hand, if the random variables are continuous and have a joint probability density function *p*, then *X* and *Y* are conditionally independent given *Z* if

for all real numbers *x*, *y* and *z* such that *p*_{Z}(*z*) > 0.

If discrete *X* and *Y* are conditionally independent given *Z*, then

for any *x*, *y* and *z* with P(*Z* = *z*) > 0. That is, the conditional distribution for *X* given *Y* and *Z* is the same as that given *Z* alone. A similar equation holds for the conditional probability density functions in the continuous case.

Independence can be seen as a special kind of conditional independence, since probability can be seen as a kind of conditional probability given no events.

### Independent σ-algebras[edit]

The definitions above are both generalized by the following definition of independence for σ-algebras. Let be a probability space and let and be two sub-σ-algebras of . and are said to be **independent** if, whenever and ,

Likewise, a finite family of σ-algebras , where is an index set, is said to be independent if and only if

and an infinite family of σ-algebras is said to be independent if all its finite subfamilies are independent.

The new definition relates to the previous ones very directly:

- Two events are independent (in the old sense) if and only if the σ-algebras that they generate are independent (in the new sense). The σ-algebra generated by an event is, by definition,

- Two random variables
*X*and*Y*defined over Ω are independent (in the old sense) if and only if the σ-algebras that they generate are independent (in the new sense). The σ-algebra generated by a random variable*X*taking values in some measurable space*S*consists, by definition, of all subsets of Ω of the form*X*^{−1}(*U*), where*U*is any measurable subset of*S*.

Using this definition, it is easy to show that if *X* and *Y* are random variables and *Y* is constant, then *X* and *Y* are independent, since the σ-algebra generated by a constant random variable is the trivial σ-algebra {∅, Ω}. Probability zero events cannot affect independence so independence also holds if *Y* is only Pr-almost surely constant.

## Properties[edit]

### Self-independence[edit]

Note that an event is independent of itself if and only if

- .

Thus an event is independent of itself if and only if it almost surely occurs or its complement almost surely occurs; this fact is useful when proving zero–one laws.^{[3]}

### Expectation and covariance[edit]

If *X* and *Y* are independent, then the expectation operator *E* has the property

and the covariance cov(*X*, *Y*) is zero, since we have

(The converse of these, i.e. the proposition that if two random variables have a covariance of 0 they must be independent, is not true. See uncorrelated.)

### Characteristic function[edit]

Two random variables *X* and *Y* are independent if and only if the characteristic function of the random vector
(*X*, *Y*) satisfies

In particular the characteristic function of their sum is the product of their marginal characteristic functions:

though the reverse implication is not true. Random variables that satisfy the latter condition are called subindependent.

## Examples[edit]

### Rolling dice[edit]

The event of getting a 6 the first time a dice is rolled and the event of getting a 6 the second time are *independent*. By contrast, the event of getting a 6 the first time a dice is rolled and the event that the sum of the numbers seen on the first and second trial is 8 are *not* independent.

### Drawing cards[edit]

If two cards are drawn *with* replacement from a deck of cards, the event of drawing a red card on the first trial and that of drawing a red card on the second trial are *independent*. By contrast, if two cards are drawn *without* replacement from a deck of cards, the event of drawing a red card on the first trial and that of drawing a red card on the second trial are *not* independent, because a deck that has had a red card removed has proportionately fewer red cards.

### Pairwise and mutual independence[edit]

Consider the two probability spaces shown. In both cases, P(*A*) = P(*B*) = 1/2 and P(*C*) = 1/4. The random variables in the first space are pairwise independent because P(*A*|*B*) = P(*A*|*C*) =1/2 = P(*A*), P(*B*|*A*) = P(*B*|*C*) = 1/2 = P(*B*), and P(*C*|*A*) = P(*C*|*B*) = 1/4 = P(*C*); but the three random variables are not mutually independent. The random variables in the second space are both pairwise independent and mutually independent. To illustrate the difference, consider conditioning on two events. In the pairwise independent case, although any one event is independent of each of the other two individually, it is not independent of the intersection of the other two:

In the mutually independent case, however,

### Mutual independence[edit]

It is possible to create a three-event example in which

and yet no two of the three events are pairwise independent (and hence the set of events are not mutually independent).^{[4]} This example shows that mutual independence involves requirements on the products of probabilities of all combinations of events, not just the single events as in this example.

## See also[edit]

- Copula (statistics)
- Independent and identically distributed random variables
- Mutually exclusive events
- Subindependence
- Conditional independence
- Normally distributed and uncorrelated does not imply independent
- Mean dependence

## References[edit]

**^**Russell, Stuart; Norvig, Peter (2002).*Artificial Intelligence: A Modern Approach*. Prentice Hall. p. 478. ISBN 0-13-790395-2.- ^
^{a}^{b}Feller, W (1971). "Stochastic Independence".*An Introduction to Probability Theory and Its Applications*. Wiley. **^**Durrett, Richard (1996).*Probability: theory and examples*(Second ed.). page 62**^**George, Glyn, "Testing for the independence of three events,"*Mathematical Gazette*88, November 2004, 568. PDF

## External links[edit]

- Media related to Independence (probability theory) at Wikimedia Commons