Calculate compound probability for two or more events. Enter each probability as a percentage or decimal to find the chance that all or at least one occurs.
Related Calculators
- Probability Of Success After N Trials Calculator
- Marginal Frequency Calculator
- Type I Error Calculator
- Area to Z Score Calculator
- All Statistics Calculators
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| A AND B — independent | Finds the chance that two or three independent events all happen | Requires the probability of A and of B, with an optional third event C |
| A OR B — independent | Finds the chance that at least one of two or three independent events happens | Requires the probability of A and of B, with an optional third event C |
| Many independent events | Finds the chance that all, none or at least one of a list of independent events happen | Requires 2 to 1,000 probabilities, as percentages with a % sign or decimals from 0 to 1 |
| A OR B — mutually exclusive | Finds the chance of either event when the two cannot happen together | Requires the probability of A and of B |
| A OR B — known overlap | Finds the chance of either event when the chance of both is known | Requires the probability of A, of B and of A and B together |
| Exactly one of A or B — independent | Finds the chance that one event happens and the other does not | Requires the probability of A and of B |
| A AND B — conditional input | Finds the chance of both events when B depends on A | Requires the probability of A and the probability of B given A |
| A given B — from joint probability | Finds the chance of A once B is known to have happened | Requires the joint probability of A and B, and the probability of B |
| At least one success in n trials | Finds the chance of one or more successes in repeated independent trials | Requires the number of trials and the success probability per trial |
| All n trials succeed | Finds the chance that every trial succeeds | Requires the number of trials and the success probability per trial |
| Exactly k successes in n trials | Finds the binomial chance of a set number of successes | Requires the number of trials, the number of successes and the success probability per trial |
| Trials from target expected successes | Finds how many trials give a target average number of successes | Requires the target expected successes and the success probability per trial |
| Expected successes from n and p | Finds the average number of successes over many repeats | Requires the number of trials and the success probability per trial |
| Observed success share from counts | Converts counted successes into a share of the trials | Requires the total trials and the successful trials |
| Error probability from success probability | Finds the chance of failure as the complement of success | Requires the success probability |
| Success probability from error probability | Finds the chance of success as the complement of failure | Requires the error probability |
Each probability can be entered as a percent or as a decimal from 0 to 1. Results are shown as a percent with the decimal value and the complement, which is 1 minus the result. Trial counts are whole numbers up to 1,000,000.
Compound Probability Formulas
| P(A) | Probability of event A. P( ) around any event means its probability |
| A∩B | A and B both happen |
| B|A | B happens, given that A has happened |
| A∪B | A or B or both happen |
Events are independent when one happening does not change the chance of the other, so P(B|A) = P(B) [1]. The examples below use P(A) = 50% and P(B) = 40% unless they say otherwise.
A AND B — independent
0.50 × 0.40 = 20%. With a third independent event, the result is multiplied by P(C) as well: with P(C) = 25%, 0.50 × 0.40 × 0.25 = 5%.
A OR B — independent
P(A) × P(B)
0.50 + 0.40 − 0.20 = 70%. This is the inclusive or: at least one of the events happens. With a third event the calculator uses 1 − (1 − P(A))(1 − P(B))(1 − P(C)), which is 1 − 0.50 × 0.60 × 0.75 = 77.5% for P(C) = 25%.
Many independent events
The chance that none happen is (1 − p₁) × (1 − p₂) × … × (1 − pₙ), and the chance of at least one is 1 minus that. For chances of 50%, 40%, 25% and 20%, all four happen 0.50 × 0.40 × 0.25 × 0.20 = 1% of the time, none happen 0.50 × 0.60 × 0.75 × 0.80 = 18% of the time, and at least one happens 82% of the time. Every event in the list must be independent of all the others.
A OR B — mutually exclusive
Mutually exclusive events cannot happen together, so there is no overlap to subtract. With P(A) = 30% and P(B) = 20%, the result is 50%. The two probabilities cannot add up to more than 100%.
A OR B — known overlap
P(A∩B) [1]
This rule holds for any two events. With an overlap of 10%, 0.50 + 0.40 − 0.10 = 80%. The overlap cannot be larger than the smaller of P(A) and P(B).
Exactly one of A or B — independent
(1 − P(A))P(B)
The first term is A without B and the second is B without A: 0.50 × 0.60 + 0.50 × 0.40 = 50%.
A AND B — conditional input
This is the main formula. If P(A) = 50% and B follows A 30% of the time, P(A∩B) = 0.50 × 0.30 = 15%. Drawing two cards without replacement is the usual case: the chance of the second card depends on the first.
A given B — from joint probability
With a joint probability of 10% and P(B) = 40%, P(A|B) = 0.10 ÷ 0.40 = 25%. P(B) must be above zero, and the joint probability cannot exceed it.
At least one success in n trials
p is the success probability on each trial. Five trials at 10% each give 1 − 0.905 = 40.951%.
All n trials succeed
Five trials at 90% each all succeed 0.905 = 59.049% of the time.
Exactly k successes in n trials
(1 − p)n − k [2]
C(n,k) = n! ÷ (k!(n − k)!) counts the ways to place k successes among n trials [2]. For 3 successes in 10 trials at 20%, C(10,3) = 120 and the result is 120 × 0.203 × 0.807 = 20.1327%.
Trials from target expected successes
k is the target average number of successes. An average of 5 successes at 20% per trial takes 5 ÷ 0.20 = 25 trials. A fractional answer is also shown rounded up to whole trials. This is an average, not a guarantee of 5 successes.
Expected successes from n and p
Fifty trials at 20% average 50 × 0.20 = 10 successes.
Observed success share from counts
Five successes in 20 trials is a share of 5 ÷ 20 = 25%. This describes what was counted and is not a confidence interval.
Error probability from success probability
A 95% chance of success leaves a 5% chance of error.
Success probability from error probability
A 5% chance of error leaves a 95% chance of success.
Limits of This Estimate
- The independent functions give wrong answers for events that influence each other. Use the conditional input or known overlap functions for those.
- The trial functions assume every trial is independent and has the same success probability [2].
- Results are rounded for display, and very small probabilities are shown in scientific notation.
Sources
- Grinstead and Snell, Introduction to Probability (American Mathematical Society, 2nd revised edition): addition and complement rules, conditional probability, independence, the binomial formula and expected successes
- NIST/SEMATECH e-Handbook of Statistical Methods, 1.3.6.6.18 Binomial Distribution: the binomial probability formula and its assumptions
