Beginner Topic 17 of 51 Math for Computing
Conditional Probability
Probability of an event given another occurred.
How it works
The conditional probability of A given B, P(A | B), is the probability that A occurs when we know B has occurred: P(A and B) divided by P(B), defined when P(B) is positive. It updates probabilities with information, and independence means P(A | B) equals P(A). The multiplication rule says P(A and B) equals P(A | B) times P(B), and the law of total probability sums over a partition of cases. Tree diagrams organize sequential conditional probabilities.
Where it is used
Medical test interpretation, spam filters, reliability of systems with dependent components, search relevance and risk modeling use conditional probability.
Common pitfall
Confusing P(A | B) with P(B | A), the prosecutor's fallacy, is the most common error; Bayes' theorem relates them. Ignoring base rates leads to surprising results, such as most positives being false for rare diseases. Conditioning on the wrong information, as in the Monty Hall problem, gives wrong answers. Define events precisely and use tables of counts.
Where it fits in the course
Conditional Probability is topic 17 of 51 in Math for Computing, rated Beginner. It follows Combinatorial Probability. The next topic is Bayes' Theorem.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Math for Computing quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Math for Computing quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Conditional Probability?
Where do people use Conditional Probability?
What is the most common mistake with Conditional Probability?
What should I learn before this topic?
How can I practice it?
Is Conditional Probability hard to learn?
How long does it take to learn Conditional Probability?
Which topics are related to Conditional Probability?
What should I study after Conditional Probability?
Related topics
- Combinatorial Probability (Math for Computing)
- Bayes' Theorem (Math for Computing)
- Variance and Standard Deviation (Math for Computing)
- Probability Distributions (Math for Computing)
- Conditional Statements (Programming Fundamentals)