MathematicsCalculus & ProbabilityAdvanced

Conditional Probability

Also known as:Posterior Probability (in Bayesian context)Restricted Probability

Conditional probability is the probability of an event A occurring given that another event B has already occurred, denoted P(A|B) and read "probability of A given B." It updates the original probability by restricting the sample space to the outcomes where B has occurred. Conditional probability is the cornerstone of Bayesian reasoning, decision trees, diagnostic testing, and machine learning classifiers.

Key Formula

P(A|B) = P(A ∩ B) / P(B), where P(B) > 0

LaTeX: P(A|B) = \frac{P(A \cap B)}{P(B)}, \quad P(B) > 0

SymbolMeaningUnit
P(A|B)Probability of A given that B has occurreddimensionless (0 to 1)
P(A ∩ B)Probability that both A and B occurdimensionless (0 to 1)
P(B)Probability that B occurs (must be > 0)dimensionless (0 to 1)

Worked Example

Problem

In a class of 30 students, 18 passed Mathematics and 12 passed both Mathematics and Science. What is the probability that a randomly selected student passed Science, given they passed Mathematics?

Solution

Step 1: Identify events: A = passed Science, B = passed Mathematics. Step 2: P(B) = 18/30 = 0.6. Step 3: P(A ∩ B) = P(passed both) = 12/30 = 0.4. Step 4: Apply conditional probability: P(A|B) = P(A ∩ B)/P(B) = 0.4/0.6. Step 5: Simplify: P(A|B) = 2/3 ≈ 0.667.

Answer

P(Science | Mathematics) = 2/3 ≈ 66.7%

Conditional Probability: Key Rules and Relations

RuleFormulaWhen to UseExample
DefinitionP(A|B) = P(A∩B)/P(B)Updating probability given new informationDisease given positive test
Multiplication ruleP(A∩B) = P(A|B)·P(B)Finding joint probabilityP(two aces drawn)
IndependenceP(A|B) = P(A)Events do not affect each otherCoin flips are independent
Total probabilityP(A) = Σ P(A|Bᵢ)·P(Bᵢ)Partitioning the sample spaceP(defective) by machine
Bayes' theoremP(B|A) = P(A|B)·P(B)/P(A)Reversing conditional probabilityPosterior probability

Interactive Tools

Khan Academy Conditional Probability

Open Tool

WolframAlpha Probability

Open Tool

Brilliant.org Conditional Probability

Open Tool
Venn diagram illustrating conditional probability P(A|B) as the ratio of the intersection to event B

Wikimedia Commons, CC BY-SA

Related Terms

The term "conditional" comes from Latin "condicionalis" (depending on a condition). The mathematical formulation of conditional probability was developed in the 18th and 19th centuries, with significant contributions by Thomas Bayes (1763) and Pierre-Simon Laplace.

probabilitystatisticsbayeseventsinferenceindependence