There’s an important distinction between the experiments “Toss a coin three times” and “Toss three identical coins at once”.
For the first, the outcomes are distinct, so we can use tuples to represent the events (thus ordering the outcomes) and use the product rule to count the sample space:
For the second, the outcomes are not distinct, so our sample space is different:
Definition. An ordered sequence is called a permutation. An unordered subset is called a combination.
We denote by the number of permutations of size that can be made with objects, and likewise by (or ) the number of combinations.
Ex. A match between two teams has 5 rounds. Each round is one-on-one. The coach needs to pick 5 players out of 9 team members to play. How many choices do they have in total?
The rounds are ordered, so we need to count permutations: .
By this logic, we see that in general,
Ex. Draw four cards from a standard deck of cards, including two jokers (54 cards in total). What is the probability that all four cards are the same rank?
The order of the cards doesn’t matter, so to find the size of the whole sample space we need to count combinations: .
For each combination of elements, there are permutations that represent it.
By this logic, we see that in general,
Returning to the problem, since each rank is equally likely to be selected, our final probability is simply
Ex. Suppose a music playlist contains 100 songs. Ten of them are by The Cranberries. Songs are selected randomly from the list and played. What is the probability that the first Cranberries song played is the sixth song played?
We can represent the playlist as an ordered sequence. Since we only care about the songs up to and including the sixth, we can ignore the rest of the list, giving us a sequence of length 6. Thus, .
In order for our event to succeed, the first five songs need to be not by The Cranberries, and the sixth one does. Thus, . (Note that even though the order of these songs doesn’t matter, we’ve represented our sample space with permutations, so we must represent the event with permutations as well. Otherwise we’re comparing apples to oranges.)
Finally,
If you want to know the probability that some event occurred, and you already know that another event occurred in the same experiment, then you can shrink your sample size to accommadate for this extra information, which affects the probability.
Definition. For any two events and with , the conditional probability of , given that occurred, is defined by
Ex. A store is analyzing the behavior of its shoppers, focusing on the purchase of milk products and diapers. They sampled 100 customers: