Law of total probability explained

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.

Statement

The law of total probability is[1] a theorem that states, in its discrete case, if

\left\{{Bn:n=1,2,3,\ldots}\right\}

is a finite or countably infinite set of mutually exclusive and collectively exhaustive events, then for any event

A

P(A)=\sumnP(A\capBn)

or, alternatively,[1]

P(A)=\sumnP(A\midBn)P(Bn),

where, for any

n

, if

P(Bn)=0

, then these terms are simply omitted from the summation since

P(A\midBn)

is finite.

The summation can be interpreted as a weighted average, and consequently the marginal probability,

P(A)

, is sometimes called "average probability";[2] "overall probability" is sometimes used in less formal writings.[3]

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

as above, and assuming

C

is an event independent of any of the

Bn

:

P(A\midC)=\sumnP(A\midC,Bn)P(Bn)

Continuous case

The law of total probability extends to the case of conditioning on events generated by continuous random variables. Let

(\Omega,l{F},P)

be a probability space. Suppose

X

is a random variable with distribution function

FX

, and

A

an event on

(\Omega,l{F},P)

. Then the law of total probability states

P(A)=

infty
\int
-infty

P(A|X=x)dFX(x).

If

X

admits a density function

fX

, then the result is

P(A)=

infty
\int
-infty

P(A|X=x)fX(x)dx.

Moreover, for the specific case where

A=\{Y\inB\}

, where

B

is a Borel set, then this yields

P(Y\inB)=

infty
\int
-infty

P(Y\inB|X=x)fX(x)dx.

Example

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}

is the probability that the purchased bulb was manufactured by factory X;

P(BY)={4\over10}

is the probability that the purchased bulb was manufactured by factory Y;

P(A\midBX)={99\over100}

is the probability that a bulb manufactured by X will work for over 5000 hours;

P(A\midBY)={95\over100}

is the probability that a bulb manufactured by Y will work for over 5000 hours.

Thus each purchased light bulb has a 97.4% chance to work for more than 5000 hours.

Other names

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.

See also

Notes

  1. Zwillinger, D., Kokoska, S. (2000) CRC Standard Probability and Statistics Tables and Formulae, CRC Press. page 31.
  2. Book: Paul E. Pfeiffer. Concepts of probability theory. 1978. Courier Dover Publications. 978-0-486-63677-1. 47–48.
  3. Book: Deborah J. Rumsey

    . Deborah Rumsey. Deborah J. Rumsey . Probability for dummies. 2006. For Dummies. 978-0-471-75141-0. 58.

  4. Book: Jim Pitman. Probability. 1993. Springer. 0-387-97974-3. 41.
  5. Book: Kenneth Baclawski. Introduction to probability with R. 2008. CRC Press. 978-1-4200-6521-3. 179.
  6. Probability: An Introduction, by Geoffrey Grimmett and Dominic Welsh, Oxford Science Publications, 1986, Theorem 1B.

References