calculator.onl
Categories50

Two-event probability calculator

Of 100 people, 60 play guitar and 50 sing. If 10 do both, everyone does at least one. If 40 do both, only 70 do at least one.

A worked example

At least one: P(A∪B) 90% · Both: P(A∩B) 20%
Choose a known intersection if P(A∩B) is available. Choose independence only when your model justifies it; independence is not inferred from P(A) and P(B).

Enter the probability of A on a 0–1 scale. For example, 60% is 0.6.

Enter the probability of B on a 0–1 scale. For example, 50% is 0.5.

Enter the probability that both occur. It must lie between max(0, P(A)+P(B)−1) and min(P(A), P(B)). This field is ignored in independence mode.

Updates as you type

Check the active inputs and their stated limits.

YOUR RESULT

At least one: P(A∪B)

0.9

Calculated from your inputs

Both: P(A∩B)0.2
A only: P(A\B)0.4
B only: P(B\A)0.3
Neither A nor B0.1
Exactly one event0.7
Conditional P(A|B)0.4
Conditional P(B|A)0.3333
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

When this calculator is useful

Analyze two events from their marginal probabilities and a known intersection, or from an explicit independence assumption. For a related calculation, try Binomial probability calculator.

What to enter

InputWhat it meansExample value
How the events are relatedChoose a known intersection if P(A∩B) is available. Choose independence only when your model justifies it; independence is not inferred from P(A) and P(B).Enter their intersection
P(A), from 0 to 1Enter the probability of A on a 0–1 scale. For example, 60% is 0.6.0.6
P(B), from 0 to 1Enter the probability of B on a 0–1 scale. For example, 50% is 0.5.0.5
Both: P(A∩B)Enter the probability that both occur. It must lie between max(0, P(A)+P(B)−1) and min(P(A), P(B)). This field is ignored in independence mode.0.1

How the calculation works

  1. Use the supplied intersection, or multiply the marginal probabilities only if independence is selected.
  2. Subtract the intersection from each marginal to find A-only and B-only; subtract the union from 1 for neither.
  3. Add the exclusive regions for exactly one. Divide the intersection by the conditioning event probability for a conditional result, if that denominator is positive.
The formulaP(A∪B) = P(A)+P(B)−P(A∩B); P(A|B) = P(A∩B)/P(B)

A worked example

At least one: P(A∪B) · 60% + 50% − 10% = 100% → 60% + 50% − 40% = 70%

Example you can load

What to enter
Result for this example · At least one: P(A∪B)1

This is a fixed example; changing the form above does not change these numbers.

Assumptions & limits

Probabilities are numbers from 0 to 1, with up to 9 decimals in the form. This is event algebra, not a fitted probability distribution or an estimate of missing probabilities. The intersection must satisfy the feasibility bounds. Conditioning on an event of probability zero is undefined. Decimal arithmetic is exact before finite-number display conversion. The diagram is schematic, not proportional in area.

Frequently asked questions

Are mutually exclusive events independent?

Generally no. Mutually exclusive events have intersection zero. Independent events have intersection P(A)P(B), which is positive when both marginal probabilities are positive.

Why can an intersection be too small?

The union cannot exceed 1. For example, probabilities 0.8 and 0.7 require at least 0.5 overlap, even though an overlap of 0.2 is below each marginal.

Why is a conditional result sometimes undefined?

P(A|B) divides by P(B). If P(B)=0, that division has no value in this elementary event model; the calculator reports a status instead of zero.