Combinatorics is the branch of mathematics that deals with the number of possible ways to combine different elements.
Combinatorics can be used as a tool in probability theory.
The combinations found in combinatorics can be used as outcomes in probability calculations.
If something is “either–or”, the numbers should be added together.
Example: There are 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 possible choices are there if you take a ball either from bowl 1 or from bowl 2?
Solution by calculation:
There are 2 + 3 possibilities = 5 possibilities
If something is “both–and”, the numbers should be multiplied.
Example: There are 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 possible combinations are there if you take a ball both from bowl 1 and from bowl 2?
Solution by calculation:
There are 2·3 possibilities = 6 possibilities
Solution using a tree diagram:
Som both the calculation and the tree diagram show, there are 6 possible combinations.
Addition: (Either–or)
Multiplication:
n = Number of elements to choose from.
r = Number of elements chosen
Ordered with replacement:
Ordered without replacement:
Unordered with replacement:
Unordered without replacement: