AP Statistics · Unit 2 · Topic 2.6

    2.6 Conditional Probability

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    The conditional probability of A given B, written P(A∣B)P(A \mid B), is the probability that A happens when we know B has happened: P(A∣B)=P(A∩B)P(B)P(A \mid B) = \frac{P(A \cap B)}{P(B)}. Rearranged, it gives the general multiplication rule P(A∩B)=P(B)⋅P(A∣B)P(A \cap B) = P(B) \cdot P(A \mid B), which is how probabilities are multiplied along the branches of a tree diagram.

    What you need to know

    • Calculate conditional probabilities from a two-way table.
    • Use the formula P(A | B) = P(A and B) / P(B).
    • Apply the general multiplication rule.
    • Use a tree diagram to solve multi-stage problems, including finding P(B | A) from P(A | B).

    Conditioning shrinks the sample space

    In the survey of 300 students (sport and breakfast: 90; sport only: 30; breakfast only: 96; neither: 84), choose a student at random. Knowing the student plays sport restricts us to the 120 sport players, so

    P(breakfast∣sport)=90120=0.75=P(breakfast∩sport)P(sport)=0.300.40P(\text{breakfast} \mid \text{sport}) = \frac{90}{120} = 0.75 = \frac{P(\text{breakfast} \cap \text{sport})}{P(\text{sport})} = \frac{0.30}{0.40}

    The order matters. P(sport | breakfast) restricts to the 186 breakfast eaters instead: 90/186 ≈ 0.484. The given event, after the bar, decides the denominator.

    Tree diagrams and the multiplication rule

    Medical tests are the classic multi-stage problem. Suppose 2% of a population has a condition. A test is positive for 95% of people who have it and for 10% of people who don't (false positives). Draw a tree: first branch condition (0.02) or not (0.98); then test positive or negative.

    Multiplying along the branches
    PathCalculationProbability
    Condition and positive0.02 × 0.950.019
    Condition and negative0.02 × 0.050.001
    No condition and positive0.98 × 0.100.098
    No condition and negative0.98 × 0.900.882

    P(positive) adds the two positive paths: 0.019 + 0.098 = 0.117. Now reverse the condition: if someone tests positive, what is the chance they have the condition?

    P(condition∣+)=P(condition∩+)P(+)=0.0190.117≈0.162P(\text{condition} \mid +) = \frac{P(\text{condition} \cap +)}{P(+)} = \frac{0.019}{0.117} \approx 0.162

    Reading the question

    'Given', 'if', 'among' and 'of those who' all signal conditioning. 'P(positive | condition) = 0.95' and 'P(condition | positive) ≈ 0.16' are different questions with very different answers; confusing them is a famous error in courtrooms and newspapers.

    Turning a tree into a table

    Another way to see the medical test result is to imagine 10,000 people. About 200 have the condition, and 190 of them test positive. Of the 9,800 without it, about 980 test positive. So 190 + 980 = 1,170 people test positive, and only 190 of them, about 16%, have the condition. Picturing a round number of people turns the formula into simple counting, and it is a good check on any tree-diagram answer.

    This also explains why screening programmes retest people who are positive: a second, independent test raises the probability sharply, because the first positive result has already removed most of the healthy group.

    Key terms

    Conditional probability
    P(A | B), the probability of A given that B has occurred.
    General multiplication rule
    P(A and B) = P(B) × P(A | B).
    Tree diagram
    A diagram of a multi-stage process; multiply along branches and add the end probabilities you need.
    False positive
    A positive test result for someone who does not have the condition.

    Common mistakes

    • Confusing P(A | B) with P(B | A).

      The event after the bar is the one known to have happened; it gives the denominator.

    • Adding along branches of a tree.

      Multiply along a path; add across different paths that lead to the same result.

    • Using the grand total as the denominator for a conditional probability.

      Divide by the total of the given group only.

    How this topic is tested

    • Write the probability in notation first, e.g. P(condition | positive).
    • Label every tree branch with its probability; branches from one point add to 1.
    • For a reversed conditional, compute P(both) ÷ P(given) and show both numbers.

    Practice questions

    Original AP-style multiple-choice questions. Pick an answer to see the explanation.

    1. Question 1 · SP 3 · Analyze Data

      In a class, P(plays chess) = 0.25 and P(plays chess and plays piano) = 0.10. What is P(plays piano | plays chess)?

    2. Question 2 · SP 3 · Analyze Data

      Using the sport and breakfast survey, what is P(no breakfast | no sport)?

    3. Question 3 · SP 3 · Analyze Data

      A factory's machine A makes 60% of parts, with 3% defective; machine B makes 40%, with 5% defective. What is the probability a random part is defective?

    4. Question 4 · SP 3 · Analyze Data

      For the same factory, a part is defective. What is the probability it came from machine B?

    5. Question 5 · SP 3 · Analyze Data

      Which statement correctly uses the general multiplication rule?

    Free-response practice

    Write your answer first, then mark it against the scoring guide.

    Practices 3 and 4 · 4 points

    At a college, 30% of applicants apply early. Of early applicants, 50% are admitted; of regular applicants, 20% are admitted.

    1. (a) Calculate the probability that a randomly chosen applicant is admitted.
    2. (b) Calculate the probability that an admitted applicant applied early.
    3. (c) Interpret the probability in (b) in context.

    Connected topics

    Frequently asked questions

    Can P(A | B) be larger than P(A)?

    Yes. In the survey, P(breakfast) = 0.62 but P(breakfast | sport) = 0.75. When conditioning changes the probability, the events are not independent.

    Do I have to draw a tree?

    No, but trees make multi-stage problems much less error-prone, and graders accept them as work.

    What if P(B) = 0?

    P(A | B) is not defined, because B cannot happen.

    How this shows up on the exam42 multiple-choice questions and 4 free-response questions of 10 points. See what each one asks you to do.Full-length AP Statistics practice examsUnit 2 is one of 5 units on the exam. Two timed exams in the 2027 format (42 MCQ + 4 FRQ), with explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    Free Unit 2 cheat sheet

    Every topic in Unit 2: Probability, Random Variables, and Probability Distributions on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Statistics practice material is ready. No spam, and we'll delete it if you ask.

    Free Unit 2 practice test: 60 questions with explanations

    All topics in Unit 2: Probability, Random Variables, and Probability Distributions

    1. 2.1 Tabular and Graphical Representations for the Distributions of Two Categorical Variables
    2. 2.2 Summary Statistics for Two Categorical Variables
    3. 2.3 Estimating Probabilities Using Simulation
    4. 2.4 Introduction to Probability
    5. 2.5 Mutually Exclusive Events
    6. 2.6 Conditional Probability
    7. 2.7 Independent Events and Unions of Events
    8. 2.8 Introduction to Random Variables and Probability Distributions
    9. 2.9 Parameters of Random Variables
    10. 2.10 The Binomial Distribution
    11. 2.11 The Normal Distribution
    12. 2.12 Sampling Distributions and the Central Limit Theorem

    Other units in AP Statistics

    AP® is a trademark registered by College Board, which is not affiliated with, and does not endorse, this website.