Calculate the probability of overlapping events from P(A) and P(B): get the union, the overlap, A only, B only and neither, or start from counts.

Leave unknown values blank. With only P(A) and P(B), the events are treated as independent unless you pick an assumption.

Optional settings


Related Calculators

Calculator Functions

FunctionWhat it doesWhat it requires
Union / intersectionFinds the probability that at least one of two events happens, or solves for whichever of the four linked probabilities is left blankRequires P(A) and P(B), with the overlap or the union if known, and an event assumption as an option
Conditional probabilitiesFinds the overlap and the union from a conditional probability, or the conditional probabilities from the overlapRequires enough of P(A), P(B), the overlap, P(A | B) and P(B | A) to fix the overlap
From countsFinds the same probabilities from counts in a sampleRequires the total sample count, the count in A, the count in B and the count in both

Probabilities are entered as percentages from 0 to 100, and unknown values are left blank. Every result comes with a table of twelve probabilities: A, B, both, at least one, A only, B only, exactly one, neither, not A, not B, and the two conditional probabilities. Inputs that contradict each other are rejected.

Overlapping Probability Formulas

P(AโˆชB) = P(A) + P(B) โˆ’
P(AโˆฉB) [1]
AโˆชBA or B or both happen, so P(AโˆชB) is the probability of at least one event
P(A)Probability of event A
P(B)Probability of event B
AโˆฉBBoth A and B happen, so P(AโˆฉB) is the overlap

Adding P(A) and P(B) counts the outcomes that lie in both events twice, so the overlap is subtracted once [1].

Union / intersection

With P(A) = 3%, P(B) = 5% and an overlap of 2%, the probability of at least one event is 3 + 5 โˆ’ 2 = 6%, and the probability of neither is 94%. Any three of the four values give the fourth: with P(A) = 30%, P(B) = 50% and a union of 65%, the overlap is 30 + 50 โˆ’ 65 = 15%.

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

This holds when A and B are independent [1]. The calculator uses it when only P(A) and P(B) are entered, or when Independent is selected. For 30% and 50% the overlap is 15% and the union is 65%. With Mutually exclusive selected the overlap is zero and the union is the plain sum [1], here 80%.

Conditional probabilities

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

P(A | B) is the probability of A given that B has happened, and it needs P(B) above zero [1]. Rearranged, the overlap is P(A | B) ร— P(B). With P(A) = 30%, P(B) = 50% and P(A | B) = 40%, the overlap is 0.40 ร— 50 = 20% and the union is 30 + 50 โˆ’ 20 = 60%. P(B | A) works the same way with P(A) as the divisor.

From counts

P(A) = nA รท N

Each probability is its count divided by the total sample count N. In a sample of 200 with 60 in A, 100 in B and 30 in both, P(A) = 30%, P(B) = 50%, the overlap is 15% and the union is 65%, which is 130 of the 200. The count in both cannot exceed either event count, and the union cannot exceed the sample.

Limits of This Estimate

  • All values must refer to the same sample space. Probabilities from different populations or time periods cannot be combined this way.
  • When only P(A) and P(B) are entered, the events are treated as independent. If they are related, enter the overlap, the union or a conditional probability instead.
  • A valid overlap lies between P(A) + P(B) โˆ’ 100% (or zero, if that is negative) and the smaller of P(A) and P(B). Values outside that range are rejected.

Sources

  1. C. M. Grinstead and J. L. Snell, Introduction to Probability, 2nd edition (American Mathematical Society): addition rule for two events, disjoint events, conditional probability and independence