Assume a standard 6-sided dice.
What is the expected number of times a die must be rolled until the numbers 1 through 6 have all shown up at least once?
Let be the number of times the die is rolled. Let's express as the sum of simpler r.v.s:
where is the number of rolls until the unique number shows up, is the number of additional rolls until the unique number, and so on. Note that always equals 1. Using the story of the Geometric, , , etc.
By linearity of expectation:
Alice and Bob have just met, and wonder whether they have a mutual friend. Each has 50 friends, out of 1000 other people who live in their town. They think that it's unlikely that they have a friend in common, saying each of us is only friends with 5% of the people here, so it would be very unlikely that our two 5%'s overlap.
Assume that Alice's 50 friends are a random sample of the 1000 people (equally likely to be any 50 of the 1000), and similarly for Bob. Also assume that knowing who Alice's friends are gives no information about who Bob's friends are. Let be the number of mutual friends they have.
Let be an indicator random variable representing whether the th person is a mutual friend of Alice and Bob. Then, we can write
Here, we used linearity of expectation and then the fundamental bridge. The probability that any particular person is a mutual friend of Alice and Bob is because being a friend of Alice and a friend of Bob are independent events.
Find the PMF of .
Suppose that Alice is friends with a fixed group of 50 people. We need to calculate the probability that out of those 50 people, exactly of them are also Bob's friends. This would be the probability .
First, we need to pick $k$ of these 50 of Alice's friends to be Bob's friends as well. Then, we need to choose other friends for Bob from the 950 remaining non-Alice friends. We multiply those two together to get the total number of ways Bob can have 50 friends. Finally, we divide by the number of ways Bob could have any 50 friends out of 1000. We get:
Is the distribution of X one of the important distributions we have looked at? If so, which?
Yes, this is the PMF of a hypergeometric distribution. We can think of the problem as follows: Bob is choosing 50 balls out of 50 white balls (Alice's friends) and 950 black balls (not Alice's friends). The number of white balls he ends up choosing is distributed .
A coin with probability of Heads is flipped times. The sequence of outcomes canbe divided into runs (blocks of H's or blocks of T's), e.g., becomes , which has 5 runs.
Find the expected number of runs.
Hint: Start by finding the expected number of tosses (other than the first) where the outcome is different from the previous one.
Let be an indicator random variable for whether or not the th flip is different from the st, for . The probability that the th flip is different from the st is equal to , meaning . Let be the number of flips such that that flip is different from the previous one. Then and
The number of flips for which this is true is one less than the number of runs, so the expected number of runs is: .