Chain rule (probability)

From HandWiki
Short description: Probability theory concept

In probability theory, the chain rule[1] (also called the general product rule[2][3]) describes how to calculate the probability of the intersection of, not necessarily independent, events or the joint distribution of random variables respectively, using conditional probabilities. The rule is notably used in the context of discrete stochastic processes and in applications, e.g. the study of Bayesian networks, which describe a probability distribution in terms of conditional probabilities.

Chain rule for events

Two events

For two events A and B, the chain rule states that

(AB)=(BA)(A),

where (BA) denotes the conditional probability of B given A.

Example

An Urn A has 1 black ball and 2 white balls and another Urn B has 1 black ball and 3 white balls. Suppose we pick an urn at random and then select a ball from that urn. Let event A be choosing the first urn, i.e. (A)=(A)=1/2, where A is the complementary event of A. Let event B be the chance we choose a white ball. The chance of choosing a white ball, given that we have chosen the first urn, is (B|A)=2/3. The intersection AB then describes choosing the first urn and a white ball from it. The probability can be calculated by the chain rule as follows:

(AB)=(BA)(A)=2312=13.

Finitely many events

For events A1,,An whose intersection has not probability zero, the chain rule states

(A1A2An)=(AnA1An1)(A1An1)=(AnA1An1)(An1A1An2)(A1An2)=(AnA1An1)(An1A1An2)(A3A1A2)(A2A1)(A1)=(A1)(A2A1)(A3A1A2)(AnA1An1)=k=1n(AkA1Ak1)=k=1n(Ak|j=1k1Aj).

Example 1

For n=4, i.e. four events, the chain rule reads

(A1A2A3A4)=(A4A3A2A1)(A3A2A1)=(A4A3A2A1)(A3A2A1)(A2A1)=(A4A3A2A1)(A3A2A1)(A2A1)(A1).

Example 2

We randomly draw 4 cards without replacement from deck with 52 cards. What is the probability that we have picked 4 aces?

First, we set An:={draw an ace in the nth try}. Obviously, we get the following probabilities

(A1)=452,(A2A1)=351,(A3A1A2)=250,(A4A1A2A3)=149.

Applying the chain rule,

(A1A2A3A4)=452351250149.

Statement of the theorem and proof

Let (Ω,𝒜,) be a probability space. Recall that the conditional probability of an A𝒜 given B𝒜 is defined as

(AB):={(AB)(B),(B)>0,0(B)=0.

Then we have the following theorem.

Chain rule —  Let (Ω,𝒜,) be a probability space. Let A1,...,An𝒜. Then

(A1A2An)=(A1)(A2A1)(A3A1A2)(AnA1An1)=(A1)j=2n(AjA1Aj1).

Chain rule for discrete random variables

Two random variables

For two discrete random variables X,Y, we use the eventsA:={X=x}and B:={Y=y}in the definition above, and find the joint distribution as

(X=x,Y=y)=(X=xY=y)(Y=y),

or

(X,Y)(x,y)=XY(xy)Y(y),

where X(x):=(X=x)is the probability distribution of X and XY(xy) conditional probability distribution of X given Y.

Finitely many random variables

Let X1,,Xn be random variables and x1,,xn. By the definition of the conditional probability,

(Xn=xn,,X1=x1)=(Xn=xn|Xn1=xn1,,X1=x1)(Xn1=xn1,,X1=x1)

and using the chain rule, where we set Ak:={Xk=xk}, we can find the joint distribution as

(X1=x1,Xn=xn)=(X1=x1X2=x2,,Xn=xn)(X2=x2,,Xn=xn)=(X1=x1)(X2=x2X1=x1)(X3=x3X1=x1,X2=x2)(Xn=xnX1=x1,,Xn1=xn1)

Example

For n=3, i.e. considering three random variables. Then, the chain rule reads

(X1,X2,X3)(x1,x2,x3)=(X1=x1,X2=x2,X3=x3)=(X3=x3X2=x2,X1=x1)(X2=x2,X1=x1)=(X3=x3X2=x2,X1=x1)(X2=x2X1=x1)(X1=x1)=X3X2,X1(x3x2,x1)X2X1(x2x1)X1(x1).

Bibliography

References

  1. Schilling, René L. (2021). Measure, Integral, Probability & Processes - Probab(ilistical)ly the Theoretical Minimum. Technische Universität Dresden, Germany. p. 136ff. ISBN 979-8-5991-0488-9. 
  2. Schum, David A. (1994). The Evidential Foundations of Probabilistic Reasoning. Northwestern University Press. p. 49. ISBN 978-0-8101-1821-8. 
  3. Klugh, Henry E. (2013). Statistics: The Essentials for Research (3rd ed.). Psychology Press. p. 149. ISBN 978-1-134-92862-0.