Combinatorics is the branch of mathematics that deals with the number of ways to combine different elements.
Combinatorics can be used as a tool for probability calculations. The combinations found in combinatorics can be used as outcomes in probability calculations.
If something is "either or," you add the numbers.
Example: You have two bowls with balls. In one bowl, there are 2 balls (one black and one white). In the other bowl, there are 3 balls (one green, one blue, and one red). How many combinations do you have if you either take a ball from bowl 1 or from bowl 2?
Solution: 2 + 3 = 5 possibilities
If something is "both and," you multiply the numbers.
Example: You have two bowls with balls. In one bowl, there are 2 balls (one black and one white). In the other bowl, there are 3 balls (one green, one blue, and one red). How many combinations do you have if you both take a ball from bowl 1 and a ball from bowl 2?
Solution: 2 * 3 = 6 possibilities
Diagram:
Both the calculation and the tree diagram show 6 possible combinations.
Addition: (Either or)
Multiplication: (Both and)
n = Number of available elements
r = Number of selected elements
Ordered with replacement:
Ordered without replacement:
Unordered with replacement:
Unordered without replacement: