Calculates P(A|B) and/or P(B|A) given P(A) and/or P(B), and P(A∩B). Enter as many values as you have.
Learn More
Conditional Probability
The probability of an event occurring given that another event has already occurred. It is denoted as P(A∣B) (read as "P A given B"), where A is the event and B is the condition. For example, the probability of rolling a 6 () given that the die roll is even () is:
Even numbers highlighted, 6 emphasized
P(6∣Even)=31=0.333
The formal definition of conditional probability is given by the formula:
P(A∣B)=P(B)P(A∩B)By rearranging the formula, we can obtain the joint probability of A and B, which is also known as the multiplication rule:P(A∩B)=P(A∣B)×P(B)
If events A and B are independent, then the conditional probability of A given B is equal to the probability of A: P(A∣B)=P(A). Moreover, if A and B are mutually exclusive, then the conditional probability of A given B is zero: P(A∣B)=0.
Addition Rule (Union)
The probability that either of two events occurs (A or B) is the sum of their individual probabilities, minus the probability of both occurring together (if they can overlap).P(A∪B)=P(A)+P(B)−P(A∩B)For example, let A be the event of rolling an odd number(,,) and B be the event of rolling a number greater than 4 ().
First Die: rolling an odd number
Second Die: rolling a number greater than 4
The probability of rolling an odd number or a number greater than 4 is:P(A∪B)=P(A)+P(B)−P(A∩B)=63+62−61=32=0.667
Combination
A combination is a selection of objects where order doesn't matter. The number of combinations of n distinct objects taken r at a time is denoted as C(n,r) or nCr or(rn) and is calculated as:C(n,r)=(rn)=r!(n−r)!n!
For example, let's consider selecting 2 different even numbers from the set 6. The number of ways to do this is:C(3,2)=(23)=2!(3−2)!3!=2×13×2=3
This means there are 3 different ways to select 2 even numbers from 2, 4, and 6:
which are:
The order doesn't matter because () is considered the same as ().
Permutation
A permutation is an arrangement of objects where order matters. For example, (1, 2) is different from (2, 1). The number of permutations of n distinct objects taken r at a time is denoted as P(n,r) or nPr and is calculated as:P(n,r)=(n−r)!n!
For example, let's consider rolling three dice and getting different even numbers (2, 4, 6) on each die. The number of ways to do this is:P(3,3)=(3−3)!3!=3!=3×2×1=6
This means there are 6 different ways to arrange the even numbers 2, 4, and 6 on three dice:
which are:
The order matters because (2, 4, 6), (4, 6, 2), and (6, 2, 4) are all considered different arrangements.