| Trouble viewing the formulas? You need a MathML compatible browser. |
Total probability theorem
From LogicWiki
The Total Probability Theorem is a theorem of the Probability Calculus that is useful in solving many problems of probability. It is used when you need to determine the probability of a simple sentence but you are given only the probability of that sentence conditional on a collection of other sentences that form a partition. These conditional probabilities can be thought of as partial probabilities of the sentence you're interested in; what the total probability theorem does is combine them to determine the total probability of that sentence.
There are two versions of the total probability theorem: a simple version and a more general version. The simple version is a special case of the general version, so there really is only one version of the theorem. Sometimes it is easier to apply just the simple version, though, so we give both.
Contents |
The Simple Total Probability Theorem
This version of the theorem states that for any sentences
The proof of this theorem relies on the fact that and are logically equivalent (this can be seen by constructing a truth table).
By Rule 7, .
Now notice that and are mutually exclusive (because and are mutually exclusive), we can apply Rule 3 to get:
.
To deal with these conjunctions, we apply Rule 4 twice. This gives
and .
Substituting these into the previous step gives the final result:
.
Example of the Simple Theorem
Consider the following question: If it’s cloudy in the afternoon, there’s a 45% chance it will rain tonight. If it’s not cloudy in the afternoon, there’s a 5% chance it will rain tonight. There’s an 80% chance that it will be cloudy this afternoon. What is the probability of it raining tonight?
This question asks for the probability of a simple sentence - the probability of it raining tonight. You are given two conditional probabilities: If it’s cloudy in the afternoon, there’s a 45% chance it will rain tonight and If it’s not cloudy in the afternoon, there’s a 5% chance it will rain tonight. Letting abbreviate "it is cloudy this afternoon" and abbreviate "it will rain tonight," this gives us and (these are the partial probabilities; what we want is the total probability ).
You are also told that there’s an 80% chance that it will be cloudy this afternoon, which means . By Rule 5, this means that . You now have everything you need to solve this problem using the total probability theorem.
.
Thus, the probability of it raining tonight is 0.37.
Remember! The total probability theorem is used when you're asked to find the probability of a sentence and are given certain conditional probabilities of that sentence.
The General Total Probability Theorem
The simple version of the total probability theorem is used to determine the probability of a sentence that's distributed over another sentence and its negation. The general version of this theorem is used to determine the probability of a sentence that's distributed over a partition of sentences. Because a sentence and its negation are an example of a partition, the simple version of the total probability theorem is a special case of the general version.
For any sentence and any partition , this theorem states that:
It is proven analogously to the simple version, beginning with the fact that and are logically equivalent (in virtue of being a partition).
By Rule 7, .
Since each of these disjuncts is mutually exclusive with the others, we can apply Rule 3 times to get:
Then applying Rule 4 to these terms gives:
Example of the General Theorem
You are planning on purchasing a new widget from the widget store. There are four different factories that produce widgets, located in California, Kansas, Minnesota, and Arizona. The California plant produces 400 widgets a month, Kansas produces 350, Minnesota produces 150 and Arizona produces 100. Widgets made in California have a 5% failure rate, those made in Kansas have a 20% failure rate, those made in Minnesota have a 12% failure rate, while those made in Arizona have a 30% failure rate. When you buy a widget, you don't know which factory it was produced in. What is the probability that the widget you buy will fail?
Since you're only buying one widget, and that widget must come from one of the four factories and cannot come from more than one, the following sentences form a partition:
"The widget was made in California," abbreviated as
"The widget was made in Kansas," abbreviated as
"The widget was made in Minnesota," abbreviated as
"The widget was made in Arizona," abbreviated as
From the production numbers, you can determine the probability of these sentences. Notice that there are 1000 widgets produced in a month, which tells you that:
You need to determine , where abbreviates "The widget is defective." You are given the following information from the failure rates:
Now it's just a matter of applying the general version of the theorem, which yields:
There is a 13.8% chance that the widget you buy will be defective.
See Also
Probability Spaces (for a picture of the total probability theorem), Bayes' Theorem (in which the total probability theorem is used)
