## What Is Conditional Probability?

Conditional probability is defined as the likelihood of an event or outcome occurring, based on the occurrence of a previous event or outcome. Conditional probability is calculated by multiplying the probability of the preceding event by the updated probability of the succeeding, or conditional, event.

For example:

- Event A is that it is raining outside, and it has a 0.3 (30%) chance of raining today.
- Event B is that you will need to go outside, and that has a probability of 0.5 (50%).
- P(A|B) = (0.3*0.5)/0.3 = 50%

A conditional probability would look at these two events in relationship with one another, such asÂ the probability that it is both rainingÂ *andÂ *you will need to go outside.

Conditional probability can be contrasted with unconditional probability.

### Key Takeaways

- Conditional probability refers to the chances that some outcome occurs given that another event has also occurred.
- It is often stated as the probability of "A given B" and written as P(A|B), where the probability of A depends on that of B happening.
- P(A|B) is derived by multiplying the probability of both A and B occurring and dividing that product by the probability of A by itself.

## Understanding Conditional Probability

As previously stated, conditional probabilities are contingent on a previous result. It also makes a number of assumptions. For example, suppose you are drawing three marblesâ€”red, blue and greenâ€”from a bag. Each marble has an equal chance of being drawn. What is the conditional probability of drawing the red marble after already drawing the blue one? First, the probability of drawing a blue marble is about 33% because it is one possible outcome out of three. Assuming this first event occurs, there will be two marbles remaining, with each having a 50% of being drawn. So, the chance of drawing a blue marble after already drawing a red marble would be about 16.5% (33% x 50%).

As another example to provide further insight into this concept, consider that a fair die has been rolled and you are asked to give the probability that it was a five. There are six equally likely outcomes, so your answer is 1/6. But imagine if before you answer, you get extra information that the number rolled was odd. Since there are only three odd numbers that are possible, one of which is five, you would certainly revise your estimate for the likelihood that a five was rolled from 1/6 to 1/3. ThisÂ *revised*Â probability that an eventÂ *A*Â has occurred, considering the additional information that another eventÂ *B*Â has definitely occurred on this trial of the experiment, is called theÂ *conditional probability of*Â *A*Â *given*Â *B*Â and is denoted byÂ P(A|B).

## Conditional Probability Formula

P(B|A) = P(A and B) / P(A)

*which you can also rewrite as: *

P(B|A) = P(Aâˆ©B) / P(A)

## Another Example of Conditional Probability

As another example, suppose a student is applying for admission to a university and hopes to receive an academicÂ scholarship. The school to which they are applying accepts 100 of every 1,000 applicants (10%) and awards academic scholarships to 10 of every 500 students who are accepted (2%). Of the scholarship recipients, 50% of them also receive university stipends for books, meals& and housing. For our ambitious student, the change of them being accepted then receiving a scholarship is .2% (.1 x .02). The chance of them being accepted, receiving the scholarship, then also receiving a stipend for books, etc. is .1% (.1 x .02 x .5). See also, Bayes' Theorem.

## Conditional Probability vs. Joint Probability and Marginal Probability

**Conditional probability**:Â p(A|B) is the probability of event A occurring, given that event B occurs. Example:Â given that you drew a red card, whatâ€™s the probability that itâ€™s a four (p(four|red))=2/26=1/13.Â So out of the 26 red cards (given a red card), there are two fours so 2/26=1/13.

**Marginal probability**: the probability of an event occurring (p(A)), it may be thought of as an unconditional probability.Â It is not conditioned on another event.Â Example:Â the probability that a card drawn is red (p(red) = 0.5).Â Another example:Â the probability that a card drawn is a 4Â (p(four)=1/13).

**Joint probability**:Â p(A and B).Â The probability of event AÂ **and**Â event B occurring.Â It is the probability of the intersection of two or more events.Â The probability of the intersection of A and B may be written p(A âˆ© B). Example:Â the probability that a card is a four and red =p(four and red) = 2/52=1/26.Â (There are two red fours in a deck of 52, theÂ 4 of heartsÂ and theÂ 4 of diamonds).

## Bayes' Theorem

Bayes' theorem,Â named after 18th-century British mathematician Thomas Bayes, is a mathematical formula for determining conditional probability. The theorem provides a way to revise existing predictions or theories (update probabilities) given new or additional evidence. In finance, Bayes' theorem can be used to rate the risk of lending money to potential borrowers.

Bayes' theorem is also called Bayes' Rule or Bayes' Law and is the foundation of the field of Bayesian statistics. This set of rules of probability allows one to update their predictions of events occurring based on new information that has been received, making for better and more dynamic estimates.