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.
Related Calculators
- Posterior Probability Calculator
- Failure Probability Calculator
- Defective Probability Calculator
- Chances Of Winning Calculator
- All Statistics Calculators
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Union / intersection | Finds the probability that at least one of two events happens, or solves for whichever of the four linked probabilities is left blank | Requires P(A) and P(B), with the overlap or the union if known, and an event assumption as an option |
| Conditional probabilities | Finds the overlap and the union from a conditional probability, or the conditional probabilities from the overlap | Requires enough of P(A), P(B), the overlap, P(A | B) and P(B | A) to fix the overlap |
| From counts | Finds the same probabilities from counts in a sample | Requires 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) [1]
| AโชB | A 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โฉB | Both 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%.
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) 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
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
- 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
