Apply the law of total probability: enter P(A | B) and P(B) for up to four events to get P(A), or solve for a joint or conditional probability.
Related Calculators
- Event Rate Calculator
- Chances Of Winning Calculator
- Drop Chance Calculator
- EVPI Calculator
- All Statistics Calculators
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Total probability (up to four events) | Finds the overall probability of event A from its probability under each of two to four separate scenarios | Requires P(A | B) and P(B) for each event B, as decimals from 0 to 1. One P(B) may be left blank |
| Single event: joint probability | Finds the probability that A and B both happen | Requires P(A | B) and P(B) |
| Single event: conditional probability | Finds the probability of A given that B has happened | Requires P(A โฉ B) and P(B) |
| Single event: event probability | Finds the probability of B from a joint and a conditional probability | Requires P(A โฉ B) and P(A | B) |
Every probability is entered as a decimal from 0 to 1, so 25% is 0.25. Each result is shown as a decimal and as a percent. In Total probability (up to four events), events 3 and 4 are optional, and an event is left out by leaving both of its fields blank.
Law of Total Probability Formulas
| P(A) | Total probability of event A |
| Bแตข | The separate events, or scenarios, under which A can happen |
| P(A | Bแตข) | Probability of A given that Bแตข has happened |
| P(Bแตข) | Probability of Bแตข. These add up to 1 |
| ฮฃ | Sum over all the events Bแตข |
The events Bแตข must form a partition: they cover every possible outcome and no two of them can happen together [1]. The result is a weighted average of the conditional probabilities, with the probabilities of the scenarios as the weights [1].
Total probability (up to four events)
Each P(A | Bแตข) is multiplied by its P(Bแตข) and the products are added. With P(A | Bโ) = 0.3, P(Bโ) = 0.4, P(A | Bโ) = 0.6 and P(Bโ) = 0.6, the total is 0.3 ร 0.4 + 0.6 ร 0.6 = 0.48, or 48%. With three events at 0.01, 0.02 and 0.05 and weights of 0.5, 0.3 and 0.2, it is 0.005 + 0.006 + 0.010 = 0.021.
One P(B) may be left blank, and the calculator fills it with 1 minus the others. This suits the common case of B and not-B, where P(not B) = 1 โ P(B). The entered weights must add up to 1. The calculator does not rescale them, and it stops with a message when they do not.
Single event: joint probability
This is the multiplication rule, and it is one term of the sum above [1]. With P(A | B) = 0.3 and P(B) = 0.4, the joint probability is 0.12. A single term is the chance of A happening together with that one B, which is less than the total P(A) unless B is certain.
Single event: conditional probability
The multiplication rule solved for the conditional probability. A joint probability of 0.12 with P(B) = 0.4 gives 0.3. P(B) cannot be 0, and a joint probability larger than P(B) is rejected because the answer would be above 1.
Single event: event probability
The multiplication rule solved for P(B). A joint probability of 0.12 with P(A | B) = 0.3 gives 0.4. P(A | B) cannot be 0.
Limits of This Estimate
- The calculator checks that the weights add up to 1, but it cannot check that the events really are separate and cover every outcome. Overlapping events or a missing scenario give a wrong total.
- An event with a probability of 0 adds nothing to the total, whatever conditional probability is entered for it.
- No more than four events can be entered. A partition with more parts has to be worked in the same way by hand: multiply each pair and add the products.
Sources
- MIT OpenCourseWare, RES.6-012 Introduction to Probability, Lecture 2.7: Total Probability Theorem: the theorem, the partition condition, the multiplication rule and the weighted-average reading
