Opening your learning space
Starting the app …
Opening your learning space
Starting the app …
The conditional probability P(A|B) measures the probability of A given that B has already occurred.
Free to browse · flashcards or a multiple-choice quiz · import from Essential
Formula
All values dimensionless, between 0 and 1
| Symbol | Meaning | Unit |
|---|---|---|
| P(A|B) | Probability of A given B | dimensionless |
| P(A∩B) | Probability that both A and B occur | dimensionless |
| Probability of the condition | dimensionless |
P(A \mid B) = \frac{P(A \cap B)}{P(B)} \quad (P(B) > 0)Original schematic by Quanta
Free with a Quanta account. Your download stays ready after registration.
Andrei Kolmogorov made conditional probability a foundation of modern probability theory in 1933. Intuitively the sample space shrinks to B; A is measured only inside B. Rearranged, the formula gives the multiplication rule , the calculation rule for tree-diagram paths. A and B are stochastically independent exactly when .
Defined only for . P(A|B) and P(B|A) are different quantities and must not be swapped.
The sample space shrinks to B; A counts only inside B.
Multiplication rule
Path rule in the tree diagram: multiply probabilities along the path.
Bayes theorem
Reverses the direction of conditioning.
Test independence
Holds exactly when A and B are stochastically independent.
60% of the students are girls, 30% are athletic girls. Compute P(sport|girl).
.
Half of the girls do sport.
Two dice: A = "sum 8", B = "first die shows 6". Compute P(A|B).
Given B only the second die remains: sum 8 requires a 2, so .
Compare: , B changes the odds.
Confusing P(A|B) with P(B|A).
The condition stands after the bar; conversion only via Bayes theorem.
Equating with P(A|B).
measures in the whole sample space, P(A|B) only inside B.
Dividing by the wrong marginal total in the contingency table.
For P(A|B) divide by the marginal total of B.
Formula cluster
Multiplication rule, contingency table and Bayes build on the same definition.
Die roll: B = "even number" with , A = "number > 3". , so . .
Contingency tables and tree diagrams, medical test problems in exams, testing independence, risk assessment, basis of Bayes' theorem
Here is how to work through a typical Conditional Probability (P(A|B) = P(A∩B)/P(B)) task step by step:
Task
60% of the students are girls, 30% are athletic girls. Compute P(sport|girl).
Solution path
.
Half of the girls do sport.
Task
Two dice: A = "sum 8", B = "first die shows 6". Compute P(A|B).
Solution path
Given B only the second die remains: sum 8 requires a 2, so .
Compare: , B changes the odds.
Use the definition : divide the probability that both events occur together by the probability of the condition. Die example: B = "even number" has , A = "number greater than 3". Jointly favourable are {4, 6}, so . Hence . Intuitively the sample space shrinks to the three even numbers {2, 4, 6}, of which two exceed 3. Depending on the task you find in the contingency table (inner cell), in the tree diagram (path product) or by direct counting. The decisive step is to identify condition and target event cleanly: what is given, what is asked?
The direction of conditioning is swapped, and that usually changes the value drastically. P(A|B) asks: how likely is A given that B has occurred? P(B|A) asks the reverse. Famous medical test example: P(positive|ill) is the sensitivity of the test, often 99%. P(ill|positive) is what the tested person wants to know, and can still be small for a rare disease, because among the positives are many false alarms from the large healthy majority. The two quantities also have different denominators: P(A|B) normalizes to B, P(B|A) to A. They can only be converted via Bayes theorem: . Carelessly equating the two directions is called the prosecutor's fallacy and is one of the most consequential statistical errors.
Both representations organize the same information, but with different strengths. The contingency table holds the joint probabilities etc. in its four inner cells and the marginal probabilities at the edges. You read off a conditional probability by dividing an inner cell by its marginal total: P(A|B) = cell(A∩B)/margin(B). The tree diagram carries conditional probabilities directly on the second-level branches; the path rule multiplies along the path. Rule of thumb: if shares and percentages of a fixed population are given, the table is faster; if the task describes a temporal process in stages, the tree is more natural. For "reversed" questions (Bayes) it often helps to redraw the tree with the stages swapped.
When the occurrence of one does not change the probability of the other: . Equivalent and computationally handier is the product formula ; this is exactly what you verify in tasks. Example: in a double coin toss, "first coin heads" and "second coin heads" are independent: ✓. Counterexample die: A = "number > 3" and B = "even" are dependent, since , but . Important: independence is not mutual exclusivity! Disjoint events with positive probabilities are maximally dependent, because one rules out the other. And real-world independence should be justifiable, for example by separate random mechanisms.
Bayes theorem is a direct consequence of the definition. The joint probability can be decomposed in two ways: . Equating both expressions and solving for P(B|A) yields Bayes theorem: . It answers exactly the question of how to convert one conditioning direction into the other. The denominator P(A) is usually determined via total probability: P(A) = P(A|B)·P(B) + P(A|B̄)·P(B̄), the two tree-diagram paths leading to A. Typical exam application: from the sensitivity and false-positive rate of a test, compute the probability of really being ill given a positive result.
Quanta exam set
Curated exam set for "Conditional Probability":
Question (front)
Which formula describes Conditional Probability?
Answer in your set
Question (front)
How do you rearrange Conditional Probability for Multiplication rule?
Answer in your set
Question (front)
Which common mistake happens with Conditional Probability?
Answer in your set
+ 7 more cards: units, variables, derivation, example, exam task
The formula set contains 10 cards. After importing, review them and start practicing; your ratings determine later review intervals.
This list names subject references and further reading. A page or section number appears when it is part of the reference; these are not verbatim quotations.
Create a curated FSRS exam set for P(A|B) = P(A∩B)/P(B): formula recall, variables, derivation, rearrangement, worked example, common mistakes and exam context.
Curated formula set · LaTeX · FSRS spaced repetition · import from Essential