CalculatorCast

조건부 확률 계산기

P(A와 B)와 P(B)로부터 P(A|B)를 계산합니다.

소개

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.

공식

P(A|B) = P(A and B) / P(B), the probability of A given that B has occurred.

단계별 안내

  1. Enter the P(A and B).
  2. Enter the P(B).
  3. Click Calculate to see your result instantly.

실제 예시

Example: With P(A and B) = 0.2, P(B) = 0.5, the Conditional Probability Calculator gives P A Given B: 0.4.

자주 묻는 질문

What if P(B) is zero?
Conditional probability is undefined when P(B) = 0, since an event with zero probability cannot be conditioned on.
How is this different from P(A and B)?
P(A and B) is the probability both happen out of all possible outcomes; P(A|B) narrows the sample space to only outcomes where B already happened.
What inputs does the Conditional Probability Calculator need?
You'll need to provide: P(A and B), P(B). All fields use sensible defaults, so you can see a working example immediately and then adjust the values to match your own numbers.
How accurate is the Conditional Probability Calculator?
The Conditional Probability Calculator applies a fixed formula to the numbers you enter. Formula used: P(A|B) = P(A and B) / P(B), the probability of A given that B has occurred. The result is only as reliable as the values you provide, so double-check your inputs.
Is the Conditional Probability Calculator free to use?
Yes, the Conditional Probability Calculator is completely free, requires no signup, and runs instantly in your browser.

조건부 확률 계산기 소개

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.