This is an outline of the topics we covered in class. These notes are not a substitute for your own note-taking. I highly recommend that you take your own notes during class. If you ever miss a class for any reason, reach out to another student in class to get a copy of their notes.
Let \(R\) be the roll of a fair D6. What is the average value of \(R\text{?}\) The sample space is \(\Omega = \{1, 2, 3, 4, 5, 6\}\text{.}\) To find the average:
Let \(X\) be a discrete random variable taking values \(x_1, x_2, \dotsc, x_n\) with probabilities \(p_1, p_2, \dotsc, p_n\text{.}\) The expected value of \(X\) is:
Suppose we flip a fair coin 100 times. Let \(H_1, H_2, \dotsc, H_{100}\) indicate heads on each flip. Then \(\Pr(H_i = 1) = \frac{1}{2}\text{,}\) so \(E(H_i) = \frac{1}{2}\) for every \(i\text{.}\)
What if \(X\) indicates a run of 4 heads starting at flip 3? That is, flips 3, 4, 5, and 6 must come up heads, and all other flips can come up either heads or tails. Since these flip results are independent, the probabilities multiply:
Itβs worth putting this side-by-side with DefinitionΒ 73 to compare the structure of each formula. These both say: "multiply each value of the random variable by the probability, then accumulate all of those products". Expected value is a weighted average of random variable values, with the probabilities as the weights.
This mistake will often be easy to catch. For example, this random variable takes values between 0 and 1, so it doesnβt seem very likely that the average value is 1!
Revisiting the previous example, the theorem says we donβt need to first create the distribution table for \(X^2\text{.}\) We can use the distribution table for \(X\text{,}\) and just apply the square to each value:
Flip a fair coin 100 times. What is the expected number of runs of 4 heads? As in the binomial EV calculation, define indicator random variables \(R_1, R_2, \dotsc, R_{97}\) each indicating a run of 4 heads starting at the specified flip. Then \(\E(R_i) = \frac{1}{16}\) for each \(i\text{.}\) Let \(T\) be the number of runs of 4 heads. Then:
Instead, consider the following argument. If we flip a coin until we see heads, we either see heads on flip 1 or not. In the first case, \(T = 1\text{.}\) In the second case, what is the average value of \(T\text{?}\) Starting at flip 2, it will take on average \(\E(T)\) flips to see heads. Since we already flipped the coin once, the total number of flips will be \(1 + \E(T)\text{.}\) So, we can write: