Conditional Probability Calculator
Calculate the conditional probability P(A|B) using Bayes' theorem or direct formula.
Amortization schedule
| # | Payment | Principal | Interest | Balance |
|---|---|---|---|---|
Growth over time
| Year | Invested | Value |
|---|---|---|
Introduction
Conditional Probability Calculator - Compute P(A|B) from P(A and B) and P(B). Enter P(A and B), P(B) to get an instant result.
Formula
P(A|B) = P(A and B) / P(B), the probability of A given that B has occurred.
Step-by-step
- Enter the P(A and B).
- Enter the P(B).
- Click Calculate to see your result instantly.
Real-world example
Example: With P(A and B) = 0.2, P(B) = 0.5, the Conditional Probability Calculator gives P A Given B: 0.4.
Frequently Asked Questions
What if P(B) is zero?
How is this different from P(A and B)?
What inputs does the Conditional Probability Calculator need?
How accurate is the Conditional Probability Calculator?
Is the Conditional Probability Calculator free to use?
About the Conditional Probability Calculator
Conditional probability measures the likelihood of event A occurring given that event B has already occurred. It is a fundamental concept in probability theory with applications in medical testing, machine learning, risk assessment, and decision making. The Conditional Probability Calculator on CalculatorCast computes P(A|B) from the joint probability of both events and the probability of the given condition.
The formula for conditional probability is P(A|B) equals P(A and B) divided by P(B), provided P(B) is greater than zero. This formula says: among all outcomes where B occurs, what fraction also have A? For example, if 30 percent of students pass both a math and a physics test (P(both) equals 0.30) and 50 percent pass the physics test (P(physics) equals 0.50), then the probability of passing math given passing physics is 0.30 divided by 0.50, which equals 0.60, or 60 percent.
Conditional probability is the foundation of Bayes' theorem, which allows updating probability estimates as new information becomes available. Bayes' theorem states: P(A|B) equals P(B|A) times P(A) divided by P(B). This is the basis for Bayesian reasoning, which is used in spam filtering, medical diagnosis, and machine learning.
In medical testing, the positive predictive value (the probability that a positive test result actually indicates disease) is a conditional probability that depends on the test's sensitivity, specificity, and the prevalence of the disease in the population. Our calculator handles this medical diagnostic case as a specialized mode.
The independence of two events can be verified using conditional probability: A and B are independent if and only if P(A|B) equals P(A). Our calculator checks and reports independence for any pair of probabilities you enter.
The Conditional Probability Calculator is free on CalculatorCast and works on all devices without registration.