MATH 2 • STATISTICS & PROBABILITY

Conditional Probability — I can compute conditional probabilities from a table, tree, or description and interpret them in context.

Learn how new information changes the likelihood of an event occurring.

Historical Context & Motivation

Imagine you're about to draw a card from a standard deck. You know the probability of drawing a heart is 13 out of 52, or ¼. But what if someone peeks at the card and tells you, "It's red"? Now the game has changed—half the deck is eliminated, and the probability of a heart jumps to ½. This is the core idea behind conditional probability: when you gain new information, the likelihood of an event can shift dramatically. Throughout history, mathematicians developed this concept to solve problems in gambling, medicine, law, and science.

1654
The Birth of Probability
Blaise Pascal and Pierre de Fermat exchanged letters about gambling problems, laying the foundation for probability theory. Their work on the "problem of points" introduced the idea that probability depends on what is already known.
1763
Bayes' Theorem Published
Thomas Bayes' essay, published posthumously, showed how to update the probability of a hypothesis as new evidence arrives. His theorem relies entirely on conditional probability and remains central to modern statistics.
1812
Laplace Formalizes the Rules
Pierre-Simon Laplace published his comprehensive treatise on probability, giving conditional probability a rigorous mathematical framework and applying it to problems in astronomy and law.
1933
Kolmogorov's Axioms
Andrey Kolmogorov established the modern axiomatic foundation of probability, formally defining conditional probability as P(A | B) = P(A ∩ B) / P(B). This framework is used worldwide today.

The central question conditional probability addresses is straightforward yet powerful: How does knowing that one event has already occurred change the probability of another event? Whether a doctor interprets a medical test, a weather forecaster updates a prediction, or you decide whether to carry an umbrella after seeing dark clouds, you are using conditional probability—even if you don't realize it.

Core Principles & Definitions

Before diving into calculations, let's establish the key vocabulary and ideas that make conditional probability work. Each concept builds on the previous one, so take them in order.

1

Sample Space

The sample space is the set of all possible outcomes of an experiment. When a condition is given, the sample space shrinks to only those outcomes that satisfy the condition.
2

Event

An event is a specific outcome or set of outcomes you care about. For example, "rolling a 5" or "drawing a face card" are events.
3

Conditional Probability

The conditional probability of event A given event B, written P(A | B), is the probability of A occurring when we already know that B has occurred.
4

Intersection (A ∩ B)

The intersection of A and B is the set of outcomes where both A and B happen at the same time. This is the numerator in the conditional probability formula.
5

Independence

Two events are independent if knowing one occurred does not change the probability of the other. Mathematically, A and B are independent when P(A | B) = P(A).
KEY TAKEAWAY
Think of conditional probability like a filter on a search engine. When you search for "shoes," you get millions of results (the full sample space). When you add the filter "size 10, red, under $80," you drastically narrow the results. Conditional probability works the same way—the "given" condition is your filter that shrinks the sample space, and you then count only the outcomes that match your desired event within that smaller world.

Visualizing Conditional Probability

One of the best ways to see conditional probability in action is with a Venn diagram. The diagram below shows two overlapping events, A and B, inside a sample space. When we condition on B, we ignore everything outside the B circle—our new "universe" becomes the B circle alone—and we look at how much of that circle is also inside A.

When we know B has occurred, our sample space shrinks to just the cyan circle. The conditional probability P(A | B) equals the pink overlap region (A ∩ B) divided by the entire cyan circle (B).

Notice how the formula directly mirrors the visual. The denominator P(B) represents the entire area of circle B—this is your new, restricted universe. The numerator P(A ∩ B) is the overlap—the portion of that restricted universe where A also happens. Dividing the overlap by the whole circle gives you the fraction of B's outcomes that are also A's outcomes. This visual intuition will help you set up every conditional probability problem you encounter.

The Mathematical Framework

Let's formalize the ideas from the Venn diagram into equations you can use. Every conditional probability calculation rests on one fundamental formula, and from it we can derive several useful variations.

CONDITIONAL PROBABILITY FORMULA
P(A | B) = P(A ∩ B) / P(B), where P(B) > 0
P(A | B) = the probability of event A occurring, given that event B has occurred. P(A ∩ B) = the probability that both A and B occur. P(B) = the probability that B occurs. We require P(B) > 0 because we cannot condition on an impossible event.
MULTIPLICATION RULE (REARRANGED)
P(A ∩ B) = P(A | B) × P(B)
By rearranging the conditional probability formula, you can find the probability of both events happening when you already know the conditional probability and the probability of the condition.
COUNTING VERSION (TWO-WAY TABLES)
P(A | B) = n(A ∩ B) / n(B)
When working with a two-way table, you can use counts instead of probabilities. n(A ∩ B) is the number of outcomes in both A and B, and n(B) is the total number of outcomes in B.
⚠️ Watch the Order!
P(A | B) and P(B | A) are not the same thing. "The probability that it is raining given that the ground is wet" is very different from "the probability that the ground is wet given that it is raining." Always identify which event is the condition (after the bar) and which event is what you are trying to find (before the bar).

Tables, Trees, and Descriptions

Conditional probability problems typically give you data in one of three forms: a two-way table, a tree diagram, or a verbal description. Each representation highlights the same underlying information in a different way, and knowing how to read all three is essential.

Two-Way (Contingency) Table

Survey of 500 students by grade and sport participation
Plays a SportDoes Not PlayTotal
Sophomore80120200
Junior11090200
Senior6040100
Total250250500

To find P(Plays a Sport | Junior), restrict your attention to the Junior row only. There are 200 juniors total and 110 of them play a sport, so P(Plays a Sport | Junior) = 110 / 200 = 0.55 or 55%. Notice that you never look at sophomores or seniors—they are outside the condition.

Tree Diagram

A tree diagram for a medical test. The first branch splits by disease status (given probabilities). The second branch shows test results conditioned on disease status. Multiply along each complete path to find joint (intersection) probabilities at the endpoints.

Tree diagrams are especially useful when the problem gives you conditional probabilities directly (like test accuracy rates). You read the branches left to right, and the probability on each branch is already a conditional probability. The probability P(+ | D) = 0.95 means "the probability the test is positive, given the person has the disease." To find the joint probability of both events, you multiply along the entire path from Start to the endpoint.

Verbal Descriptions

Sometimes the data comes as a word problem: "60% of customers order coffee, 25% order both coffee and a pastry, and 40% order a pastry." To find P(Pastry | Coffee), identify the "given" event (Coffee) and the overlap (both), then apply the formula: P(Pastry | Coffee) = 0.25 / 0.60 ≈ 0.417. The key skill with verbal descriptions is translating words into the correct notation before calculating.

Worked Example: Conditional Probability from a Table

A school surveyed 400 students about their preferred study method and whether they earned an A on the last exam. The results are shown below.

Study method vs. exam performance for 400 students
Earned an ADid Not Earn ATotal
Study Groups7248120
Solo Study108172280
Total180220400

Question: Given that a student uses study groups, what is the probability that they earned an A? In other words, find P(A | Study Groups).

Computing P(Earned an A | Study Groups)
1
Step 1 — Identify the conditionThe phrase "given that a student uses study groups" tells us that Study Groups is the condition. This means our restricted sample space is the Study Groups row. The total number of students in study groups is 120.
n(Study Groups) = 120
2
Step 2 — Find the intersection countWe need the number of students who are in study groups AND earned an A. Looking at the cell where "Study Groups" and "Earned an A" intersect, we find 72 students.
n(A ∩ Study Groups) = 72
3
Step 3 — Apply the counting formulaUsing the counting version of the conditional probability formula: P(A | Study Groups) = n(A ∩ Study Groups) / n(Study Groups) = 72 / 120.
72 / 120 = 0.60
4
Step 4 — Interpret in contextAmong students who use study groups, 60% earned an A on the last exam. Compare this to the overall A rate for the school: 180 / 400 = 45%. Students who used study groups earned A's at a higher rate than the school average, which suggests (but does not prove) that study groups may be beneficial.
P(A | Study Groups) = 0.60 or 60%

Strengths & Limitations of Each Representation

Two-way tables, tree diagrams, and verbal descriptions each have their own advantages. The table below compares them so you know which tool to reach for depending on the situation.

RepresentationStrengthsLimitations
Two-Way TableGreat for organizing large data sets; easy to read off totals and intersections; works well when both variables are categoricalLimited to two categorical variables; does not naturally show sequential events or multi-stage experiments
Tree DiagramVisually shows the sequence of events; branches display conditional probabilities directly; multiplication along paths gives joint probabilitiesBecomes unwieldy with more than 3 stages or many branches per stage; harder to read total category counts at a glance
Verbal DescriptionMirrors real-world problem presentation; flexible for any scenario; forces you to practice translating context into mathEasy to misidentify which event is the condition; no visual structure to check work; requires careful notation
KEY TAKEAWAY
Think of it this way: a two-way table is like a spreadsheet—perfect for looking up specific intersections. A tree diagram is like a flowchart—ideal when events happen in sequence. A verbal description is like a story—you have to extract the data yourself. The formula P(A | B) = P(A ∩ B) / P(B) works exactly the same way no matter which representation you start with. The representation only changes how you find the numbers to plug in.

Connection to Bayes' Theorem & Independence

Conditional probability is not the end of the story—it's the beginning. Two important extensions you'll encounter in future courses build directly on what you've learned here.

ConceptWhat You Know NowWhat Comes Next
Bayes' TheoremP(A | B) = P(A ∩ B) / P(B) lets you find the probability of A given BBayes' Theorem lets you reverse the condition: compute P(B | A) when you know P(A | B), P(A), and P(B). Essential in medical testing, spam filters, and machine learning.
Independence TestingYou can check if P(A | B) = P(A) to see if events are independentIn statistics, chi-squared tests formally determine whether two categorical variables are independent using observed vs. expected counts from two-way tables.
Law of Total ProbabilityYou add joint probabilities across branches of a tree to get marginal probabilitiesThe Law of Total Probability formalizes this: P(A) = P(A | B₁)P(B₁) + P(A | B₂)P(B₂) + ⋯ for all partitions of the sample space.

For now, the critical skill is computing and interpreting conditional probabilities accurately. Once you're comfortable with P(A | B), stepping into Bayes' Theorem or independence testing in a later course will feel like a natural extension rather than a brand-new concept. Every advanced probability idea rests on the conditional probability foundation you are building right now.

Practice Problems

PROBLEM 1CONCEPTUAL
In your own words, explain why P(A | B) is generally different from P(B | A). Give a real-life example where confusing the two could lead to a wrong conclusion.
PROBLEM 2BASIC CALCULATION
A bag contains 5 red, 3 blue, and 2 green marbles. You randomly draw one marble and are told it is not green. What is the probability the marble is red?
PROBLEM 3INTERMEDIATE
Use the following two-way table. Of 300 customers at a restaurant, 180 ordered dessert, 140 ordered coffee, and 90 ordered both dessert and coffee. Find P(Dessert | Coffee) and P(Coffee | Dessert). Are these equal? Explain.
PROBLEM 4APPLIED
A factory has two machines. Machine X produces 60% of all parts and has a 4% defect rate. Machine Y produces 40% of all parts and has a 7% defect rate. If a randomly selected part is defective, which machine is more likely to have produced it? (Hint: find the joint probability of each machine-and-defect combination, then compare.)
PROBLEM 5CRITICAL THINKING
A school reports that 70% of students who participate in extracurriculars graduate with honors, while only 40% of all students graduate with honors. A parent concludes, "Extracurriculars cause students to graduate with honors." Is this conclusion justified based solely on conditional probability? Discuss at least two reasons why or why not.

Lesson Summary

Conditional probability measures how the likelihood of an event changes when you know another event has occurred. The fundamental formula is P(A | B) = P(A ∩ B) / P(B), where the denominator restricts the sample space to only those outcomes where B has occurred. You can compute conditional probabilities from a two-way table by dividing the intersection cell by the condition's row or column total, from a tree diagram by reading conditional probabilities along branches and multiplying to get joint probabilities, or from a verbal description by carefully translating words into the formula.

Always remember that P(A | B) ≠ P(B | A) in general—the order matters. Interpreting your result in context is just as important as the calculation: state what the probability means for the specific situation described. This foundation prepares you for Bayes' Theorem, independence testing, and more advanced probability and statistics topics.

Varsity Tutors • Math 2 • Conditional Probability