Mathematics, Statistics & Geometry

Conditional Probability Calculator

Calculate the probability of an event given that another event has occurred. Find P(A|B) instantly using the conditional probability formula.

P(A|B) - Conditional Probability
40
Decimal Form0.4
Calculation StepsFormula: P(A|B) = P(A ∩ B) / P(B) P(A ∩ B) = 0.2 P(B) = 0.5 P(A|B) = 0.2 / 0.5 = 0.400000 Percentage = 40.0000%

Calculated locally in your browser. Fast, secure, and private.

Analyzing Dependent Events

The Conditional Probability Calculator is an essential tool for evaluating how the likelihood of one event changes when we know another event has already occurred. This forms the basis of all predictive modeling and Bayesian logic.

P(AB)=P(AB)P(B)\begin{aligned} P(A|B) = \frac{P(A \cap B)}{P(B)} \end{aligned}

Where:
P(A|B)=
The probability of A occurring given that B has occurred
P(AB)P(A \cap B)=
The probability of both A and B occurring together
P(B)=
The probability of the condition B occurring

Understanding the Formula

The formula P(A|B) = P(A ∩ B) / P(B) is highly intuitive when you visualize it: Instead of looking at the entire universe of possibilities, knowing that Event B has happened shrinks our "universe" down to just the P(B) circle. We then look at how much of Event A exists inside that new, smaller circle (the intersection).

Inputs Explained

  1. P(A and B): Also known as the intersection or joint probability. This is the chance that both events happen simultaneously.
  2. P(B): The probability of the condition. This must be greater than zero (an event that is impossible cannot be a condition).

Real-World Use Cases

  • Insurance: Calculating the probability of a driver having an accident (A), given that they are under 25 years old (B).
  • E-commerce: Finding the likelihood a customer buys a warranty (A), given that they just purchased an electronic device (B).
  • Meteorology: Predicting the probability of rain (A), given that the humidity is over 90% (B).

Frequently Asked Questions

Conditional probability is the likelihood of an event occurring, based on the occurrence of a previous event. It restricts the 'sample space' to only scenarios where the condition is true.

Joint probability P(A ∩ B) is the chance of both happening out of ALL possible scenarios. Conditional probability P(A|B) is the chance of A happening, given that we ALREADY KNOW B has happened.

In statistics, the vertical bar '|' means 'given'. So P(A|B) is read as 'The probability of A given B'.

Yes, almost always. Because you are dividing P(A and B) by a fraction P(B), the resulting conditional probability is typically larger.

If the events are completely independent (like flipping two different coins), then knowing B tells you nothing about A. In this case, P(A|B) simply equals P(A).