Law of total probability

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

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

[edit | edit source]

The law of total probability is[1] a theorem that states, in its discrete case, if {Bn:n=1,2,3,} is a finite or countably infinite set of mutually exclusive and collectively exhaustive events, then for any event A

P(A)=nP(ABn)

or, alternatively,[1]

P(A)=nP(ABn)P(Bn),

where, for any n, if P(Bn)=0, then these terms are simply omitted from the summation since P(ABn) 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(AC)=P(A,C)P(C)=nP(A,Bn,C)P(C)=nP(ABn,C)P(BnC)P(C)P(C)=nP(ABn,C)P(BnC)

Taking the Bn as above, and assuming C is an event independent of any of the Bn:

P(AC)=nP(AC,Bn)P(Bn)

Continuous case

[edit | edit source]

The law of total probability extends to the case of conditioning on events generated by continuous random variables. Let (Ω,,P) be a probability space. Suppose X is a random variable with distribution function FX, and A an event on (Ω,,P). Then the law of total probability states

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

If X admits a density function fX, then the result is

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

Moreover, for the specific case where A={YB}, where B is a Borel set, then this yields

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

Example

[edit | edit source]

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:

P(A)=P(ABX)P(BX)+P(ABY)P(BY)=99100610+95100410=594+3801000=9741000

where

  • P(BX)=610 is the probability that the purchased bulb was manufactured by factory X;
  • P(BY)=410 is the probability that the purchased bulb was manufactured by factory Y;
  • P(ABX)=99100 is the probability that a bulb manufactured by X will work for over 5000 hours;
  • P(ABY)=95100 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

[edit | edit source]

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.[citation needed] 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

[edit | edit source]

Notes

[edit | edit source]
  1. ^ a b Zwillinger, D., Kokoska, S. (2000) CRC Standard Probability and Statistics Tables and Formulae, CRC Press. Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value). page 31.
  2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  3. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  4. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  5. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  6. ^ Probability: An Introduction, by Geoffrey Grimmett and Dominic Welsh, Oxford Science Publications, 1986, Theorem 1B.

References

[edit | edit source]
  • Introduction to Probability and Statistics by Robert J. Beaver, Barbara M. Beaver, Thomson Brooks/Cole, 2005, page 159.
  • Theory of Statistics, by Mark J. Schervish, Springer, 1995.
  • Schaum's Outline of Probability, Second Edition, by John J. Schiller, Seymour Lipschutz, McGraw–Hill Professional, 2010, page 89.
  • A First Course in Stochastic Models, by H. C. Tijms, John Wiley and Sons, 2003, pages 431–432.
  • An Intermediate Course in Probability, by Alan Gut, Springer, 1995, pages 5–6.