Conditional Probability Calculator
Calculate conditional probabilities, intersections, and analyze Bayesian events.
How to Use This Calculator
Enter What You Know: Start dropping your known variables into any of the relevant fields. Probabilities should be entered as decimals between 0 and 1 (e.g., 25% is entered as 0.25). Calculated fields will appear in blue.
What is Conditional Probability?
At its core, conditional probability is the likelihood of an event occurring given that another event has already happened.
Think of standard probability as looking at the whole universe of possibilities. Conditional probability shrinks that universe. If you are trying to guess whether it will rain today, the baseline probability might be 20%. But if you look outside and see dark, heavy clouds (Event B), the probability of rain (Event A) changes drastically. You are no longer asking “What is the chance of rain?” You are asking, “What is the chance of rain, given that it is extremely cloudy?“
In statistics, we write this as P(A | B), which reads as “the probability of A given B.”
Independent vs. Dependent Events
- Independent Events: The outcome of the first event has zero impact on the second. If you flip a coin and roll a die, getting heads doesn’t change the odds of rolling a six. In these cases, P(A | B) is simply equal to P(A).
- Dependent Events: The outcome of the first event directly alters the probability of the second. If you draw an Ace from a standard deck of 52 cards and don’t put it back, the odds of drawing a second Ace have now changed. The events are linked.
Core Probability Formulas
1. Basic Conditional Probability:P(A | B) = P(A ∩ B) / P(B)
Requires that P(B) is greater than 0.
2. The Multiplication Rule (Intersections):P(A ∩ B) = P(A | B) × P(B)
3. Law of Total Probability (Marginal Probability):P(B) = [P(B | A) × P(A)] + [P(B | Ā) × P(Ā)]
4. Bayes’ Theorem:P(A | B) = [P(B | A) × P(A)] / P(B)
Unpacking Bayes’ Theorem
One of the most powerful features of the tool above is its ability to automatically reverse conditional probabilities using Bayes’ Theorem.
Bayes’ Theorem allows you to update your beliefs based on new evidence. If you know the probability of a test returning a positive result when a patient has a disease P(Test+ | Disease), Bayes’ logic lets you flip that around to answer the much more practical question: If the test is positive, what is the actual probability the patient has the disease P(Disease | Test+)?
Our calculator handles this natively. By filling out the baseline probability of Event A and the conditional outcomes in the first panel, the logic engine automatically derives the reverse conditions.
Real-World Applications
- Medical Diagnostics: Doctors use it to determine the actual likelihood of an illness given a positive lab result, factoring in the false-positive rate and the disease’s overall rarity in the population.
- Finance and Risk Assessment: Insurance companies calculate premiums by analyzing the conditional probability of a claim given specific demographic data or driving histories.
- Quality Control: Manufacturers track the probability of a systemic failure given that a specific component has started exhibiting wear and tear.
- Machine Learning: Bayesian algorithms power email spam filters, calculating the probability that a message is junk given the presence of specific keywords.