Lably
Skip to content

Independence (probability theory)

When the occurrence of one event does not affect the likelihood of another

  • 11 min read
  • 5 chapters
  • 2 labs on Lably

Learn it on Lably

When dealing with collections of more than two events, two notions of independence need to be distinguished. The events are called pairwise independent if any two events in the collection are independent of each other, while mutual independence (or collective independence) of events means, informally speaking, that each event is independent of any combination of other events in the collection. A similar notion exists for collections of random variables. Mutual independence implies pairwise independence, but not the other way around. In the standard literature of probability theory, statistics, and stochastic processes, independence without further qualification usually refers to mutual independence.

Definition

For events

Two events

Two events A and B are independent (often written as A⊥B or A⊥⊥B, where the latter symbol often is also used for conditional independence) if and only if their joint probability equals the product of their probabilities:

A∩B≠∅ indicates that two independent events A and B have common elements in their sample space so that they are not mutually exclusive (mutually exclusive if and only if (iff) A∩B=∅). Why this defines independence is made clear by rewriting with conditional probabilities P(A∣B)=P(A∩B)P(B) as the probability at which the event A occurs provided that the event B has or is assumed to have occurred:

P(A∩B)=P(A)P(B)⟺P(A∣B)=P(A∩B)P(B)=P(A).

and similarly

P(A∩B)=P(A)P(B)⟺P(B∣A)=P(A∩B)P(A)=P(B).

Thus, the occurrence of B does not affect the probability of A, and vice versa. In other words, A and B are independent of each other. 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.

Odds

Stated in terms of odds, two events are independent if and only if the odds ratio of ⁠A⁠ and ⁠B⁠ is unity (1). Analogously with probability, this is equivalent to the conditional odds being equal to the unconditional odds:

O(A∣B)=O(A) and O(B∣A)=O(B),

or to the odds of one event, given the other event, being the same as the odds of the event, given the other event not occurring:

O(A∣B)=O(A∣¬B) and O(B∣A)=O(B∣¬A).

The odds ratio can be defined as

O(A∣B):O(A∣¬B),

or symmetrically for odds of ⁠B⁠ given ⁠A⁠, and thus is 1 if and only if the events are independent.

More than two events

A finite set of events {Ai}i=1n is pairwise independent if every pair of events is independent—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—that is, if and only if for every k≤n and for every k indices 1≤i1<⋯<ik≤n,

This is called the multiplication rule for independent events. It is not a single condition involving only the product of all the probabilities of all single events; 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.

Log probability and information content

Stated in terms of log probability, two events are independent if and only if the log probability of the joint event is the sum of the log probability of the individual events:

log⁡P(A∩B)=log⁡P(A)+log⁡P(B)

In information theory, negative log probability is interpreted as information content, and thus two events are independent if and only if the information content of the combined event equals the sum of information content of the individual events:

I(A∩B)=I(A)+I(B)

See Information content § Additivity of independent events for details.

For real valued random variables

Two random variables

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 x and y, the events {X≤x} and {Y≤y} are independent events (as defined above in Eq.1). That is, X and Y with cumulative distribution functions FX(x) and FY(y), are independent iff the combined random variable (X,Y) has a joint cumulative distribution function

More generally and equivalently if X and Y are real valued, if the pair of random variables (X,Y) has values in X×Y with joint probability distribution PX,Y and marginals PX and PY we have the equality of measures

PX,Y(d(x,y))=PX(dx)PY(dy),

i.e. for every Borel set A⊆X×Y we have

PX,Y(A)=∫APX,Y(d(x,y))=∫APX(dx)PY(dy)

where PX,Y(A)=P((X,Y)∈A). If X and Y are discrete valued this simplifies to

PX,Y(xi,yj)=PX(xi)PY(yj) for all i=1,..,|X|,j=1,..,|Y|,

while if X and Y are real valued and have probability densities pX(x) and pY(y) and joint probability density pX,Y(x,y) it becomes

pX,Y(x,y)=pX(x)pY(y)for almost all (x,y)∈R2.

where "almost all" means all except for a set of measure zero.

More than two random variables

A finite set of n random variables {X1,…,Xn} 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 finite set of n random variables {X1,…,Xn} is mutually independent if and only if for any sequence of numbers {x1,…,xn}, the events {X1≤x1},…,{Xn≤xn} are mutually independent events (as defined above in Eq.3). This is equivalent to the following condition on the joint cumulative distribution function FX1,…,Xn(x1,…,xn). A finite set of n random variables {X1,…,Xn} is mutually independent if and only if

It is not necessary here to require that the probability distribution factorizes for all possible k-element subsets as in the case for n events. This is not required because e.g. FX1,X2,X3(x1,x2,x3)=FX1(x1)⋅FX2(x2)⋅FX3(x3) implies FX1,X3(x1,x3)=FX1(x1)⋅FX3(x3).

Similarly to the case of two random variables, the general formulation of independence can be done measure-theoretically. A set of random variables (X1,…,Xn) with values in measurable spaces X1,×…×Xn with joint distribution PX1,…Xn, and marginals PX1…PXn are independent if and only if

PX1,…Xn(d(x1,…xn))=PX1(dx1)⋯PXn(dxn)

which again means that for every Borel set A⊆X1×⋯×Xn, we have

PX1,…,Xn(A)=∫APX1,…Xn(d(x1,…xn))=∫APX1(dx1)⋯PXn(dxn),

The 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 other measurable spaces (which includes topological spaces endowed by appropriate σ-algebras).

For real valued random vectors

Two random vectors X=(X1,…,Xm)T and Y=(Y1,…,Yn)T are called independent if

where FX(x) and FY(y) denote the cumulative distribution functions of X and Y and FX,Y(x,y) denotes their joint cumulative distribution function. Independence of X and Y is often denoted by X⊥⊥Y. Written component-wise, X and Y are called independent if

FX1,…,Xm,Y1,…,Yn(x1,…,xm,y1,…,yn)=FX1,…,Xm(x1,…,xm)⋅FY1,…,Yn(y1,…,yn)for all x1,…,xm,y1,…,yn.

For stochastic processes

For one stochastic process

The definition of independence may be extended from random vectors to a stochastic process. Therefore, it is required for an independent stochastic process that the random variables obtained by sampling the process at any n times t1,…,tn are independent random variables for any n.

Formally, a stochastic process {Xt}t∈T is called independent, if and only if for all n∈N and for all t1,…,tn∈T

where FXt1,…,Xtn(x1,…,xn)=P(X(t1)≤x1,…,X(tn)≤xn). Independence of a stochastic process is a property within a stochastic process, not between two stochastic processes.

For two stochastic processes

Independence of two stochastic processes is a property between two stochastic processes {Xt}t∈T and {Yt}t∈T that are defined on the same probability space (Ω,F,P). Formally, two stochastic processes {Xt}t∈T and {Yt}t∈T are said to be independent if for all n∈N and for all t1,…,tn∈T, the random vectors (X(t1),…,X(tn)) and (Y(t1),…,Y(tn)) are independent, i.e. if

Independent σ-algebras

The definitions above (Eq.1 and Eq.2) are both generalized by the following definition of independence for σ-algebras. Let (Ω,Σ,P) be a probability space and let A and B be two sub-σ-algebras of Σ. A and B are said to be independent if, whenever A∈A and B∈B,

P(A∩B)=P(A)P(B).

Likewise, a finite family of σ-algebras (τi)i∈I, where I is an index set, is said to be independent if and only if

∀(Ai)i∈I∈∏i∈Iτi:P(⋂i∈IAi)=∏i∈IP(Ai)

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 E∈Σ is, by definition,
σ({E})={∅,E,Ω∖E,Ω}.
  • 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.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Statistics and probability