Combinatorics is an area of mathematics primarily concerned with counting, as well as properties of finite structures (such as graphs).
For the purposes of STAT410, we will only be addressing simple counting in combinatorics, for use in probability functions later.
Permutations and Combinations
A permutation of a set of elements is a rearrangement of the elements in a specific order. A k-permutation is an arrangement of elements from the -element set.
By definition of a set, elements must be distinct.
The total number of -permutations of an -element set is given by the formula
Example: Basic Permutations
Problem: How many ways can we seat 10 people in a row?
Solution: We are performing a -permutation where on our set of 10 people.
The total ways to create a -size subset from an -element set, known as a combination, is given by
Note that by definition of a subset, there is no element order.
Theorem: Binomial Theorem
For any positive integer ,
Proof
We begin with .
The product of the terms means that when we expand the binomial expression, we are “choosing” either the or term to multiply.
Thus, to find the coefficient of , the product of the terms requires that when we multiply each binomial together, we multiply (“choose”) the -term times. After this, the rest of the product’s terms are forced to be (and there’s only one way to pick ).
This gives us different ways to obtain the coefficient.
We give some more counting examples below.
Example: Basic Counting
There are 10 cows, 9 pigs, 8 horses. The
Total ways to pick 5 animals at once:
Because order does not matter, we are simply choosing 5 animals from our total of 27.
Total ways to get 5 animals where we get 3 cows, 2 pigs or 2 cows, 3 pigs:
We choose 3 cows and 2 pigs from our animal total to obtain
We choose 2 cows and 3 pigs from our animal total to obtain
Because these two groups of outcomes are distinct from one another, we add them together to find our total.
Example: Basic Counting (2)
There are 10 kids and 3 types of candy. How many ways can we distribute this candy such that exactly 3 children get type 1, 2 children get type 2, and 5 children get type 3?
We can think of our children as the distinct elements, and choose who gets what candy. So, we first select 3 children to get type 1, 2 children to get type 2, and 5 children to get type 3.
We can think about this another way as well. Say we have 10 children numbered 1-10, and we assign each a candy type of 1, 2, or 3 (for the total we’re looking for). We want to find the number of different ways we can order these candy types!
However, because there are repeated elements, we need to count some cases as one. We do this by dividing by the total number of possible cases that we want to count as one case.
In fact, this is called the multinomial coefficient, described below.
Theorem: Multinomial Coefficient (Permutations with Repetition)
Suppose there are distinct objects, and object occurs times.
Assume .
Then, the total number of rearrangements of the objects is
called the multinomial coefficient.
We can use the multinomial coefficient to generalize our previous binomial theorem.
Theorem: Multinomial Theorem
Example: Multinomial Coefficient
Find the coefficient of in .
To find the coefficient, we need to find the number of times we obtain in the product.
In other words, if we select 6 positions, where each represents the term we “selected” to multiply out, then we want to choose 3 positions to have , 1 position to have , and 2 positions to have .
This comes out to be
Example: Permutations and Combinations
How many arrangements of are there?
Suppose we have 7 positions. We want to choose 3 to fill with , 2 to fill with , and 2 to fill with . This comes out to be
What if the ‘s must all be together, but none of the ‘s can be together?
If the ‘s must be together, we block them together as one term to find arrangements of . Then, to find permutations where the ‘s are not together, we first will find the number of arrangements of (without the ‘s’).
Then, between every term , we can place ‘s suchthat they are not next to each other. This comes out to 5 positions, and we have 2 ‘s to place to give us
different ways to place our ‘s. Thus, our final result is