Report

Help us improve this tool

Conditional Probability Calculator

Calculate conditional probabilities P(A|B), joint probabilities, and full probability tree values from event probabilities with step-by-step breakdown.

O M T

What Is Conditional Probability?

Conditional probability measures the likelihood of an event occurring given that another event has already occurred. It is written as $P(A|B)$ and read as "the probability of A given B."

Conditional Probability Formula

The fundamental formula for conditional probability is:

$$P(A|B) = \frac{P(A \cap B)}{P(B)}$$

Where $P(A \cap B)$ is the joint probability of both events occurring and $P(B)$ is the probability of the conditioning event.

How to Use This Calculator

Enter $P(A)$, $P(B|A)$, and $P(B|\bar{A})$ (the probability of B given A does not occur). The calculator builds the full probability tree and computes all joint and conditional probabilities, including $P(A|B)$, $P(A|\bar{B})$, and their complements.

Real-World Example

Suppose 5% of a population has a disease. A test has 91% sensitivity (true positive rate) and 95% specificity (true negative rate). If a person tests positive, what is the probability they actually have the disease? Using conditional probability, $P(D|T+) \approx 48.9\%$, showing that a positive test alone does not guarantee infection.

Frequently Asked Questions

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

P(A|B) is the probability of A given B occurred. P(B|A) is the probability of B given A occurred. These are generally not equal unless the events are symmetric.

Can conditional probability be zero?

Yes. If the probability of the conditioning event B is zero, then P(A|B) is undefined. If A and B are mutually exclusive, P(A|B) is zero when P(B) is greater than zero.

How is this related to Bayes' theorem?

Bayes' theorem rearranges the conditional probability formula to update prior beliefs. This calculator computes the full probability tree that Bayes' theorem builds upon.

What situations involve conditional probability?

Medical testing, weather forecasting, game outcomes, and any scenario where one event's occurrence changes the likelihood of another event.

Related Tools

Explore related probability tools: