Your Equation

Library / Foundations: Maths / FMA-30

Foundations: Maths

Conditional probability

Chance of A given that B has already happened.

Ref
FMA-30
Rev
v1
Field
Foundations: Maths
Result
P(A|B) [%]

Requires P(B) > 0. For independent events P(A ∩ B) = P(A)P(B). For any events, subtract the overlap when adding probabilities for their union.

Once you know B has happened, the chance of A is the share of B’s outcomes that also include A.

Calculator

Solve for
%
%
230
%
560
  • As a fraction0.4
  • Probability B does not happen70 %

What drives the result

Each variable is moved across its typical range while the others stay at the values above. The longest bar is the key driver.

Conditional probability (%) current value 40 %
P(A∩B)Probability of bothKey driver
6.67100
P(B)Probability of B
2097.3
  • Conditioning shrinks the sample space to B alone.
  • If P(A|B) equals P(A), then A and B are independent.
Chart data as tables

Ranked variables

VariableTypical rangeLowest resultHighest resultSwing (%)Local stepChange in result
P(A∩B) Probability of both2 to 30 %6.66710093.33+10%+4 pp
P(B) Probability of B5 to 60 %2097.377.3+10%−3.64 pp

Sweep of Probability of both

Probability of both (%)Conditional probability (%)
26.667
5.518.33
930
12.541.67
1653.33
19.565
2376.67
26.588.33
30100

Sweep one variable

Conditional probability (%)Hover, touch, or use the arrow keys on the chart
020406080100 51015202530 Probability of both (%) now 40

Variables and how each one contributes

P(A|B)

Conditional probability

Result · %

What the equation gives you. Everything else feeds it.

P(A∩B)

Probability of both

% · typical 2 to 30

Chance that A and B both happen. Directly proportional.

P(B)

Probability of B

% · typical 5 to 60

Chance that B happens. Inversely proportional.

Worked example with the values above

  1. P(A ∩ B) = 12 %, P(B) = 30 %.
  2. Divide: 12 / 30 = 0.4.
  3. P(A | B) = 40 %.

Assumptions and limits

  • P(B) is greater than zero.
  • Probabilities refer to the same population.

Common mistakes

  • Dividing by P(A) instead of P(B).
  • Confusing P(A|B) with P(B|A).

Statistics and uncertainty

Conditional probabilities estimated from small samples are noisy; the error grows when P(B) is rare since few cases qualify.

Where it is used

  • Detection probabilities given a cue (false alarms and misses).
  • Fault diagnosis given a symptom.

Maths you need

  • Probability: 0 to 1 scale
  • Venn diagrams: overlap of events

Related formulas

Practise this formula