This calculator helps you compute the probabilities of conditional events, unions, combinations, and permutations. It also explains the concepts of basic probability with examples using dice rolls.
Basic Probability Calculator
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.
Permutation & Combination Generator
Enter items separated by commas
Quick Examples
Interactive Dice Simulator
Learn More
Conditional Probability
Even numbers highlighted, 6 emphasized
The formal definition of conditional probability is given by the formula:
By rearranging the formula, we can obtain the joint probability of and , which is also known as the multiplication rule:If events and are independent, then the conditional probability of given is equal to the probability of : . Moreover, if and are mutually exclusive, then the conditional probability of given is zero: .
Addition Rule (Union)
First Die: rolling an odd number
Second Die: rolling a number greater than 4
Combination
This means there are 3 different ways to select 2 even numbers from 2, 4, and 6:
The order doesn't matter because () is considered the same as ().
Calculating Combinations in R
In R, you can calculate combinations using the choose() function, which is equivalent to the mathematical notation or .
choose(3, 2) # Output: 3
Permutation
This means there are 6 different ways to arrange the even numbers 2, 4, and 6 on three dice:
The order matters because (2, 4, 6), (4, 6, 2), and (6, 2, 4) are all considered different arrangements.
Calculating Permutations in R
In R, you can calculate permutations by using a combination of factorial() functions, which is equivalent to the mathematical notation .
factorial(3) / factorial(3-2) # Output: 6