In probability theory, the law (or formula) of total probability is a fundamental rule relating marginal probabilities to conditional probabilities. It expresses the total probability of an outcome which can be realized via several distinct events, hence the name.
The law of total probability is[1] a theorem that states, in its discrete case, if
\left\{{Bn:n=1,2,3,\ldots}\right\}
A
P(A)=\sumnP(A\capBn)
or, alternatively,[1]
P(A)=\sumnP(A\midBn)P(Bn),
where, for any
n
P(Bn)=0
P(A\midBn)
The summation can be interpreted as a weighted average, and consequently the marginal probability,
P(A)
The law of total probability can also be stated for conditional probabilities:
P({A|C})=
{P({A,C | |
)}}{{P( |
C)}}=
{\sum\limitsn{P({A,{Bn | |
,C} |
)}}}{{P(C)}}=
{\sum\limitsnP({A\mid{Bn | |
,C} |
)P({{Bn}\midC})P(C)}}{{P(C)}}=\sum\limitsnP({A\mid{Bn},C})P({{Bn}\midC})
Taking the
Bn
C
Bn
P(A\midC)=\sumnP(A\midC,Bn)P(Bn)
The law of total probability extends to the case of conditioning on events generated by continuous random variables. Let
(\Omega,l{F},P)
X
FX
A
(\Omega,l{F},P)
P(A)=
infty | |
\int | |
-infty |
P(A|X=x)dFX(x).
If
X
fX
P(A)=
infty | |
\int | |
-infty |
P(A|X=x)fX(x)dx.
Moreover, for the specific case where
A=\{Y\inB\}
B
P(Y\inB)=
infty | |
\int | |
-infty |
P(Y\inB|X=x)fX(x)dx.
Suppose that two factories supply light bulbs to the market. Factory X's bulbs work for over 5000 hours in 99% of cases, whereas factory Y's bulbs work for over 5000 hours in 95% of cases. It is known that factory X supplies 60% of the total bulbs available and Y supplies 40% of the total bulbs available. What is the chance that a purchased bulb will work for longer than 5000 hours?
Applying the law of total probability, we have:
\begin{align} P(A)&=P(A\midBX) ⋅ P(BX)+P(A\midBY) ⋅ P(BY)\\[4pt] &={99\over100} ⋅ {6\over10}+{95\over100} ⋅ {4\over10}={{594+380}\over1000}={974\over1000} \end{align}
where
P(BX)={6\over10}
P(BY)={4\over10}
P(A\midBX)={99\over100}
P(A\midBY)={95\over100}
Thus each purchased light bulb has a 97.4% chance to work for more than 5000 hours.
The term law of total probability is sometimes taken to mean the law of alternatives, which is a special case of the law of total probability applying to discrete random variables. One author uses the terminology of the "Rule of Average Conditional Probabilities",[4] while another refers to it as the "continuous law of alternatives" in the continuous case.[5] This result is given by Grimmett and Welsh[6] as the partition theorem, a name that they also give to the related law of total expectation.
. Deborah Rumsey. Deborah J. Rumsey . Probability for dummies. 2006. For Dummies. 978-0-471-75141-0. 58.