# Conditional Probability

 Aand B: B:

Output: `Press calculate`

Amazon Kindle Scribe digital notebook with a 10 inch Paperwhite display

Still on my wishlist, but it is promising. The smaller kindles don't let me see enough of PDFs for technical sections.
As an Amazon Associate I earn from qualifying purchases. Thank you!

Formula:`P(A|B) = P(A and B) / P(B)`

## Introduction to Conditional Probability Calculator

Conditional probability is the probability of an event A, given that another event B has already occurred. The formula for calculating this is given by P(A|B), which is the probability of A and B occurring together, represented by P(A and B), divided by the probability of B, P(B). This concept is a fundamental aspect of probability theory and is used in a wide array of statistical applications including Bayesian inference and various predictive models.

## Parameter usage:

• `AandB` = Probability of both A and B occurring
• `B` = Probability of B occurring

## Output:

• `conditionalProbability` = Probability of A given B

## Data Validation:

Both probabilities must be values between 0 and 1, with B not equal to zero since you cannot condition on an event with zero probability.

## Summary:

This calculator determines the likelihood of one event based on the occurrence of a second event. It's a crucial concept in various fields such as finance, medicine, weather forecasting, and more.