ArticleslgStudy

mathematics

Chain rule (probability)

Chain rule (probability) is a mathematics 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 Chain rule (probability) rather than just read about it. In short: In probability theory, the chain rule (also called the general product rule) 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. This rule allows one to express a joint probability in terms of only conditional probabilities.

Key takeaways

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

Reference excerpt

In probability theory, the chain rule (also called the general product rule) 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. This rule allows one to express a joint probability in terms of only 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

ℙ(A∩B)=ℙ(B∣A)ℙ(A), where ℙ(B∣A) denotes the conditional probability of B given A.

Example A Jar A has 1 black ball and 2 white balls, and another Jar 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 A∩B then describes choosing the first urn and a white ball from it. The probability can be calculated by the chain rule as follows:

ℙ(A∩B)=ℙ(B∣A)ℙ(A)=23⋅12=13.

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

ℙ(A1∩A2∩…∩An)=ℙ(An∣A1∩…∩An−1)ℙ(A1∩…∩An−1)=ℙ(An∣A1∩…∩An−1)ℙ(An−1∣A1∩…∩An−2)ℙ(A1∩…∩An−2)=ℙ(An∣A1∩…∩An−1)ℙ(An−1∣A1∩…∩An−2)⋅…⋅ℙ(A3∣A1∩A2)ℙ(A2∣A1)ℙ(A1)=ℙ(A1)ℙ(A2∣A1)ℙ(A3∣A1∩A2)⋅…⋅ℙ(An∣A1∩⋯∩An−1)=∏k=1nℙ(Ak∣A1∩⋯∩Ak−1)=∏k=1nℙ(Ak|⋂j=1k−1Aj).

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

ℙ(A1∩A2∩A3∩A4)=ℙ(A4∣A3∩A2∩A1)ℙ(A3∩A2∩A1)=ℙ(A4∣A3∩A2∩A1)ℙ(A3∣A2∩A1)ℙ(A2∩A1)=ℙ(A4∣A3∩A2∩A1)ℙ(A3∣A2∩A1)ℙ(A2∣A1)ℙ(A1).

Example 2 We randomly draw 4 cards (one at a time) 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,ℙ(A2∣A1)=351,ℙ(A3∣A1∩A2)=250,ℙ(A4∣A1∩A2∩A3)=149. Applying the chain rule,

ℙ(A1∩A2∩A3∩A4)=452⋅351⋅250⋅149=246497400.

Statement of the theorem and proof Let (Ω,𝒜,ℙ) be a probability space. Recall that the conditional probability of an A∈𝒜 given B∈𝒜 is defined as

ℙ(A∣B):={ℙ(A∩B)ℙ(B),ℙ(B)>0,0ℙ(B)=0. Then we have the following theorem.

Chain rule for discrete random variables

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

ℙ(X=x,Y=y)=ℙ(X=x∣Y=y)ℙ(Y=y), or

ℙ(X,Y)(x,y)=ℙX∣Y(x∣y)ℙY(y), where ℙX(x):=ℙ(X=x) is the probability distribution of X and ℙX∣Y(x∣y) conditional probability distribution of X given Y.

Finitely many random variables Let X1,…,Xn be random variables and x1,…,xn∈ℝ. By the definition of conditional probability,

ℙ(Xn=xn,…,X1=x1)=ℙ(Xn=xn|Xn−1=xn−1,…,X1=x1)ℙ(Xn−1=xn−1,…,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=x1∣X2=x2,…,Xn=xn)ℙ(X2=x2,…,Xn=xn)=ℙ(X1=x1)ℙ(X2=x2∣X1=x1)ℙ(X3=x3∣X1=x1,X2=x2)⋅…⋅ℙ(Xn=xn∣X1=x1,…,Xn−1=xn−1)

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=x3∣X2=x2,X1=x1)ℙ(X2=x2,X1=x1)=ℙ(X3=x3∣X2=x2,X1=x1)ℙ(X2=x2∣X1=x1)ℙ(X1=x1)=ℙX3∣X2,X1(x3∣x2,x1)ℙX2∣X1(x2∣x1)ℙX1(x1).

Bibliography René L. Schilling (2021), Measure, Integral, Probability & Processes - Probab(ilistical)ly the Theoretical Minimum (1 ed.), Technische Universität Dresden, Germany, ISBN 979-8-5991-0488-9{{citation}}: CS1 maint: location missing publisher (link) William Feller (1968), An Introduction to Probability Theory and Its Applications, vol. I (3 ed.), New York / London / Sydney: Wiley, ISBN 978-0-471-25708-0 Russell, Stuart J.; Norvig, Peter (2003), Artificial Intelligence: A Modern Approach (2nd ed.), Upper Saddle River, New Jersey: Prentice Hall, ISBN 0-13-790395-2, p. 496.

References

Worked examples

Example 1 — a first encounter with Chain rule (probability)

Start with the simplest possible case. Write down what Chain rule (probability) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, 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 Chain rule (probability) 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 Chain rule (probability) 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 Chain rule (probability)

In research
Chain rule (probability) appears in mathematics 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 Chain rule (probability) 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
Chain rule (probability) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Bayesian inference, Bayesian statistics, Mathematical identities, so understanding it makes those chapters shorter.
In everyday life
Look for Chain rule (probability) 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 “Chain rule (probability)” →

How to study Chain rule (probability) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Chain rule (probability) 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 Chain rule (probability) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Chain rule (probability) in simple terms?

In probability theory, the chain rule (also called the general product rule) 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. This rule allows one to ex…

Why does Chain rule (probability) matter?

Because it connects several mathematics 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 Chain rule (probability)?

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 Chain rule (probability).

Tags

  • Bayesian inference
  • Bayesian statistics
  • Mathematical identities
  • Probability theory

Keep exploring