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.

Use decimals from 0 to 1. Events B1โ€“B4 must not overlap and must cover all outcomes. Leave both fields blank to omit an event.

Leave blank to use 1 minus the other event weights, e.g. 1 โˆ’ P(B1) for B and not-B.

Events 3 and 4


Related Calculators

Calculator Functions

FunctionWhat it doesWhat 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 scenariosRequires 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 probabilityFinds the probability that A and B both happenRequires P(A | B) and P(B)
Single event: conditional probabilityFinds the probability of A given that B has happenedRequires P(A โˆฉ B) and P(B)
Single event: event probabilityFinds the probability of B from a joint and a conditional probabilityRequires 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) = ฮฃ P(A | Bแตข) ร— P(Bแตข) [1]
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

P(A โˆฉ B) = P(A | B) ร— P(B) [1]

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

P(A | B) = P(A โˆฉ B) รท P(B)

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

P(B) = P(A โˆฉ B) รท P(A | B)

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

  1. 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