Homework 5
Homework 5
1. Let S = {1, 2, 3, 4, 5, 6} and P({n}) = 1/6 for n ∈ S. Consider the random variable X
defined as X(n) = 21 (n − 3)(n − 5). Draw the graph of the probability mass function of
X, draw the graph of the cumulative distribution function of X, and calculate EX and
Var(X).
2. A man invented a fair 3-sided die and wrote the numbers 1, 2, and 3 on the sides.
This die is rolled once. You’ll get the amount of money equal to (n/3)2 if the number n
is showing. What is the expected amount that you’ll get?
On a different occasion, a usual 6-sided die is rolled. You’ll get (n/6)2 dollars if n is
showing. What is the expected amount that you’ll get in this case?
Then, a fair 1000-sided die was invented with numbers 1,...,1000 written on the sides.
The die is rolled once. You’ll get (n/1000)2 if n is showing. Can you calculate (not just
write a sum, but calculate approximately (a small error is allowed in this case)) what the
expected amount is?
3. (a) A coin that when flipped comes up heads with probability p is flipped until either
heads or tails has occurred twice. Find the expected number of flips.
(b) Solve a similar problem, but now the coin is flipped until either two heads or two
tails happen in a row. Find the expected number of flips.
4. Eight people sit at a round table. Three of these people are children. All seating
configurations are equally likely. You get paid a dollar for each pair of children that sit
next to each other (i.e., you can get paid up to 2 dollars (you get paid 2 dollars if three
children sit in a row, as there are two pairs of children sitting next to each other in this
case)). Find the expectation of the amount of money that you’ll get paid.