Permutations and Combinations
The biggest question to ask when deciding which one is being used is “does order matter?”
Ex: Stock Portfolio
Suppose there are 100 possible stocks
- You want to invest equally in five stocks (20% in each). How many possible portfolios are there? (Order doesn’t matter here)
- You want to form a 30%/25%/20%/15%/10% weighted portfolio of five stocks. How many possible portfolios are there? (Order does matter here)
Permutations
An ordered subset of distinct choices is called a permutation, and
General formula: factorial over factorial
Combinations
An unordered subset of choices is called a combination, and
Often written as can be written , which can be read as ” choose ”
General Formula:
It’s also good to know that choose is equivalent to choose , because the bottom term remains the same.
Sampling with Replacement
There are total different elements in a population or set, you want to create an ordered arrangement of elements.
If you pick an element, note it, and put it back, you are sampling with replacement.
Therefore, for every , we have options, because the option has been replaced. Therefore we have options.
General Formula:
Sampling without Replacement (Permutations)
There are total different elements in a population or set, you want to create an ordered arrangement of all elements. This is also a permutation.
If you pick an element and don’t put it back, you are sampling without replacement.
Therefore, we have options for our first sample, for our second, and so on.
General Formula:
Example: Arranging Books on a Bookshelf
Alex has 10 books that he is going to put on a shelf. Of these, 4 are math books, 3 are chemistry books, 2 are history books, and 1 is a language book. He wants to arrange them in such a way that all books of the same subject are placed together on the same shelf. How many arrangements are possible?
This will be blocks of permutations.
For math: options for arranging the books. For chemistry: options for arranging the books. For history: options for arranging the books. For language: option for arranging the book.
So, we have options to arrange the books.
This is then
Finally, we need to find an arrangement for the subjects themselves, which will be the number of categories factorial: . So, we multiple by , and get
Example: Find out the number of ways
- 3 boys and girls can sit in a row
- 3 boys and 3 girls can sit in a row if the boys and girls are next to each other
- 3 boys and 3 girls can sit in a row if only the boys must sit together
- 3 boys and 3 girls can sit together if no two people of the same sex are allowed to sit together