In
probability theory
Probability theory or probability calculus is the branch of mathematics concerned with probability. Although there are several different probability interpretations, probability theory treats the concept in a rigorous mathematical manner by expre ...
, the chain rule (also called the general product rule) describes how to calculate the probability of the intersection of, not necessarily
independent
Independent or Independents may refer to:
Arts, entertainment, and media Artist groups
* Independents (artist group), a group of modernist painters based in Pennsylvania, United States
* Independentes (English: Independents), a Portuguese artist ...
, events or the
joint distribution
A joint or articulation (or articular surface) is the connection made between bones, ossicles, or other hard structures in the body which link an animal's skeletal system into a functional whole.Saladin, Ken. Anatomy & Physiology. 7th ed. McGraw- ...
of
random variables
A random variable (also called random quantity, aleatory variable, or stochastic variable) is a mathematical formalization of a quantity or object which depends on random events. The term 'random variable' in its mathematical definition refers ...
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
In probability theory and related fields, a stochastic () or random process is a mathematical object usually defined as a family of random variables in a probability space, where the index of the family often has the interpretation of time. Stoc ...
and in applications, e.g. the study of
Bayesian network
A Bayesian network (also known as a Bayes network, Bayes net, belief network, or decision network) is a probabilistic graphical model that represents a set of variables and their conditional dependencies via a directed acyclic graph (DAG). Whi ...
s, which describe a
probability distribution
In probability theory and statistics, a probability distribution is a Function (mathematics), function that gives the probabilities of occurrence of possible events for an Experiment (probability theory), experiment. It is a mathematical descri ...
in terms of conditional probabilities.
Chain rule for events
Two events
For two
events and
, the chain rule states that
:
,
where
denotes the
conditional probability
In probability theory, conditional probability is a measure of the probability of an Event (probability theory), event occurring, given that another event (by assumption, presumption, assertion or evidence) is already known to have occurred. This ...
of
given
.
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
be choosing the first urn, i.e.
, where
is the
complementary event
In probability theory, the complement of any event ''A'' is the event ot ''A'' i.e. the event that ''A'' does not occur.Robert R. Johnson, Patricia J. Kuby: ''Elementary Statistics''. Cengage Learning 2007, , p. 229 () The event ''A'' and ...
of
. Let event
be the chance we choose a white ball. The chance of choosing a white ball, given that we have chosen the first urn, is
The intersection
then describes choosing the first urn and a white ball from it. The probability can be calculated by the chain rule as follows:
:
Finitely many events
For events
whose intersection has not probability zero, the chain rule states
:
Example 1
For
, i.e. four events, the chain rule reads
:
.
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
. Obviously, we get the following probabilities
:
.
Applying the chain rule,
:
.
Statement of the theorem and proof
Let
be a probability space. Recall that the
conditional probability
In probability theory, conditional probability is a measure of the probability of an Event (probability theory), event occurring, given that another event (by assumption, presumption, assertion or evidence) is already known to have occurred. This ...
of an
given
is defined as
:
Then we have the following theorem.
Chain rule for discrete random variables
Two random variables
For two discrete random variables
, we use the events
and
in the definition above, and find the joint distribution as
:
or
:
where
is the
probability distribution
In probability theory and statistics, a probability distribution is a Function (mathematics), function that gives the probabilities of occurrence of possible events for an Experiment (probability theory), experiment. It is a mathematical descri ...
of
and
conditional probability distribution
In probability theory and statistics, the conditional probability distribution is a probability distribution that describes the probability of an outcome given the occurrence of a particular event. Given two jointly distributed random variables X ...
of
given
.
Finitely many random variables
Let
be random variables and
. By the definition of the conditional probability,
:
and using the chain rule, where we set
, we can find the joint distribution as
:
Example
For
, i.e. considering three random variables. Then, the chain rule reads
:
Bibliography
*
*
* , p. 496.
References
{{reflist
Bayesian inference
Bayesian statistics
Mathematical identities
Probability theory