Conditional probability explained simply

By Jude Wallis · Published

Conditional probability is the probability that one event happens given that another event is known to have happened. It is written P(A∣B)P(A \mid B) and calculated as P(A∣B)=P(A∩B)P(B)P(A \mid B) = \frac{P(A \cap B)}{P(B)}. The condition narrows the outcomes you consider to those in BB.

AP Statistics: Unit 2 (topics 2.6 Conditional Probability, 2.7 Independent Events and Unions of Events). Conditional probability is Unit 2, topic 2.6 in the Fall 2026 AP Statistics course, and using it to check independence is part of topic 2.7.

What conditional probability measures

An ordinary probability such as P(A)P(A) is taken over every possible outcome. A conditional probability is taken over part of them. You are told that event BB has happened, so only the outcomes in BB are still possible, and you ask how likely AA is among those.

Suppose 105 of 250 seniors have a car. The probability that a randomly selected senior has a car is 105250=0.42\frac{105}{250} = 0.42. Now suppose you are told the senior has a job, and 60 of the 100 seniors with jobs have cars. The probability changes to 60100=0.60\frac{60}{100} = 0.60. The new information changed the group you are looking at from all 250 seniors to the 100 with jobs.

The notation P(A∣B)P(A \mid B) is read "the probability of AA given BB". The event after the bar is the condition, the thing known to be true. The event before the bar is the one whose probability you want.

The conditional probability formula

P(A∣B)=P(A∩B)P(B)P(A \mid B) = \frac{P(A \cap B)}{P(B)}
  • P(A∣B)P(A \mid B) is the probability of AA given that BB has occurred.
  • P(A∩B)P(A \cap B) is the probability that both AA and BB occur. The symbol ∩\cap is read "and".
  • P(B)P(B) is the probability of the condition. It must be greater than 0.

The denominator is the probability of the given event. That reflects the shrinking of the sample space: you divide by the size of the group you now know you are in.

With counts, the formula simplifies to:

P(A∣B)=number of outcomes in both A and Bnumber of outcomes in BP(A \mid B) = \frac{\text{number of outcomes in both } A \text{ and } B}{\text{number of outcomes in } B}

Both forms give the same answer. The count version is usually faster with a two-way table.

Finding conditional probability from a two-way table

A two-way table makes the condition visible. The given event picks out one row or one column, and that row or column total becomes the denominator.

  1. Find the condition, the event after "given" (or after words like "if", "among", or "of those who").
  2. Go to that row or column. Ignore the rest of the table.
  3. The denominator is that row or column total.
  4. The numerator is the cell in that row or column where the other event also occurs.

A common error is using the grand total as the denominator. That gives the joint probability P(A∩B)P(A \cap B), not the conditional probability. See conditional vs joint probability and how to read a two-way table.

The general multiplication rule

Rearranging the formula gives a rule for "and" probabilities:

P(A∩B)=P(B)⋅P(A∣B)P(A \cap B) = P(B) \cdot P(A \mid B)

In words: the probability that both events happen is the probability of the first, times the probability of the second given the first.

This is the rule behind tree diagrams. Each second-stage branch of a tree carries a conditional probability, and multiplying along a path gives the probability of that path. In the seniors example, P(job and car)=P(job)⋅P(car∣job)=(0.40)(0.60)=0.24P(\text{job and car}) = P(\text{job}) \cdot P(\text{car} \mid \text{job}) = (0.40)(0.60) = 0.24, which matches 60250\frac{60}{250}.

See how to use a tree diagram for multi-stage problems.

Conditional probability and independence

Two events are independent when knowing that one occurred does not change the probability of the other:

P(A∣B)=P(A)P(A \mid B) = P(A)

This is the test for independence. Compute the conditional probability and the unconditional one, and compare.

In the seniors example, P(car∣job)=0.60P(\text{car} \mid \text{job}) = 0.60 and P(car)=0.42P(\text{car}) = 0.42. They differ, so having a car and having a job are not independent for these seniors. Seniors with jobs are more likely to have cars.

When events are independent, the general multiplication rule reduces to P(A∩B)=P(A)⋅P(B)P(A \cap B) = P(A) \cdot P(B). Use that shortcut only when independence is given or has been checked. Independence is also what the binomial distribution requires of its trials, and it is the null hypothesis of the chi-square test for independence.

Common mistakes

  1. Reversing the condition. P(A∣B)P(A \mid B) and P(B∣A)P(B \mid A) are different questions with different denominators. In the example they are 0.60 and about 0.571. See P(A|B) vs P(B|A).
  2. Dividing by the grand total. A conditional probability divides by the total for the given event.
  3. Confusing "and" with "given". P(job and car)=0.24P(\text{job and car}) = 0.24 is out of all seniors. P(car∣job)=0.60P(\text{car} \mid \text{job}) = 0.60 is out of seniors with jobs.
  4. Multiplying P(A)⋅P(B)P(A) \cdot P(B) without checking independence. For the seniors, (0.42)(0.40)=0.168(0.42)(0.40) = 0.168, which is not the actual joint probability of 0.24.
  5. Confusing independent with mutually exclusive. Mutually exclusive events cannot happen together, so if one occurs the probability of the other drops to 0. For events that each have a nonzero probability, that is strong dependence. See disjoint vs independent events.
  6. Not identifying the condition in the wording. "Of the seniors with jobs, what proportion have cars?" is conditional even though the word "given" never appears.

Conditional probability in AP Statistics

Conditional probability is Unit 2, topic 2.6 in the Fall 2026 AP Statistics course, and topic 2.7 covers independent events. Unit 2 carries 15-25% of the multiple-choice section.

A p-value is a conditional probability: the probability of a result at least as extreme as the observed one, given that the null hypothesis is true. The probabilities of Type I and Type II errors are conditional in the same way.

Be ready to calculate a conditional probability from a two-way table, a tree diagram, or given probabilities, to use the general multiplication rule, to decide whether two events are independent with a numerical comparison, and to interpret the result in context.

Work the conditional probability practice set, then the two-way tables practice set and the independence practice set.

Jobs and cars among 250 seniors

A school surveys all 250 of its seniors. Of the 100 seniors who have a job, 60 have a car and 40 do not. Of the 150 seniors who do not have a job, 45 have a car and 105 do not. One senior is selected at random. (a) Find P(car∣job)P(\text{car} \mid \text{job}). (b) Find P(job∣car)P(\text{job} \mid \text{car}). (c) Are having a car and having a job independent?

  1. Organize the totals: 100 seniors have a job and 150 do not. 60+45=10560 + 45 = 105 have a car and 40+105=14540 + 105 = 145 do not. The table total is 250.

  2. (a) The condition is having a job, so look only at the 100 seniors with jobs. Of those, 60 have a car: P(car∣job)=60100=0.60P(\text{car} \mid \text{job}) = \frac{60}{100} = 0.60.

  3. Check with the formula: P(job and car)=60250=0.24P(\text{job and car}) = \frac{60}{250} = 0.24 and P(job)=100250=0.40P(\text{job}) = \frac{100}{250} = 0.40, so P(car∣job)=0.240.40=0.60P(\text{car} \mid \text{job}) = \frac{0.24}{0.40} = 0.60.

  4. (b) The condition is now having a car, so look only at the 105 seniors with cars. Of those, 60 have a job: P(job∣car)=60105≈0.571P(\text{job} \mid \text{car}) = \frac{60}{105} \approx 0.571.

  5. (c) Compare P(car∣job)=0.60P(\text{car} \mid \text{job}) = 0.60 with P(car)=105250=0.42P(\text{car}) = \frac{105}{250} = 0.42. They are not equal.

  6. As a second check, among seniors without a job, P(car∣no job)=45150=0.30P(\text{car} \mid \text{no job}) = \frac{45}{150} = 0.30. The probability of having a car depends on whether the senior has a job.

(a) P(car∣job)=0.60P(\text{car} \mid \text{job}) = 0.60. (b) P(job∣car)≈0.571P(\text{job} \mid \text{car}) \approx 0.571. (c) Not independent, because P(car∣job)=0.60P(\text{car} \mid \text{job}) = 0.60 does not equal P(car)=0.42P(\text{car}) = 0.42. Seniors with a job are more likely to have a car.

Frequently asked questions

What is conditional probability in simple terms?

It is the probability of an event when you already know that some other event has happened. The known event narrows the set of possible outcomes, and the probability is recalculated within that narrower set.

What is the formula for conditional probability?

P(A∣B)=P(A∩B)P(B)P(A \mid B) = \frac{P(A \cap B)}{P(B)}: the probability that both events occur, divided by the probability of the given event. With counts, it is the number of outcomes in both AA and BB divided by the number of outcomes in BB.

What is the difference between P(A|B) and P(B|A)?

They condition on different events, so they have different denominators and usually different values. In the worked example, the probability of a car given a job is 0.60, and the probability of a job given a car is about 0.571. Always identify which event is known.

How do you use conditional probability to check independence?

Compare P(A∣B)P(A \mid B) with P(A)P(A). If they are equal, the events are independent. If they differ, the events are not independent. You can also compare P(A∣B)P(A \mid B) with P(A∣not B)P(A \mid \text{not } B), which are equal exactly when the events are independent.