where, for any, if, then these terms are simply omitted from the summation since is finite.
The summation can be interpreted as aweighted average, and consequently the marginal probability,, 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:
Taking the as above, and assuming is an eventindependent of any of the:
The law of total probability extends to the case of conditioning on events generated by continuous random variables. Let be aprobability space. Suppose is a random variable with distribution function, and an event on. Then the law of total probability states
If admits a density function, then the result is
Moreover, for the specific case where, where is aBorel set, then this yields
Suppose that two factories supplylight bulbs to the market. FactoryX's bulbs work for over 5000 hours in 99% of cases, whereas factoryY's bulbs work for over 5000 hours in 95% of cases. It is known that factoryX 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:
where
is the probability that the purchased bulb was manufactured by factoryX;
is the probability that the purchased bulb was manufactured by factoryY;
is the probability that a bulb manufactured byX will work for over 5000 hours;
is the probability that a bulb manufactured byY will work for over 5000 hours.
Thus each purchased light bulb has a 97.4% chance to work for more than 5000 hours.
The termlaw of total probability is sometimes taken to mean thelaw of alternatives, which is a special case of the law of total probability applying todiscrete 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 thepartition theorem, a name that they also give to the relatedlaw of total expectation.