Very Important
Very Important
1
.10
2
.30
3
.40
4
.20
(a) Find var(X) and sd(X), the variance and standard deviation of X.
Solution:
var(X) = (.10)(1 2.7)2 + (.30)(2 2.7)2 + (.40)(3 2.7)2 + (.20)(4 2.7)2
= .81.
The standard deviation of X is given by
p
sd(X) = var(X) = 0.9.
Page 2
-6
0
-6
16
16
0.25
(b) What are your expected winnings? That is, what is , the expectation of W ?
Solution:
Using the PDF computed in part (a), the expected value of W is
= (.50)(6) + (.25)(0) + (.25)(16)
= 1.
On average, we win $1 every time we play the game.
Page 3
81 = 9.
(d) What are the interpretations of the expectation and standard deviation of W ?
Solution: If we played the game many many times, then the average of our winnings
over all times we played would be close to the $1, and the standard deviations of our
winnings over all times we played would be close to $9.
Page 4
Page 5
Page 6
Advanced Problems
7. Bernoulli random variable. Suppose you flip a biased coin that lands Heads with probability
p and lands tails with probability 1 p. Define the random variable
(
1 if the coin lands Heads;
X=
0 if the coin lands Tails.
This random variable is called a Bernoulli random variable with success probability p.
(a) What is the PDF of X?
Solution:
x
p(x)
0
1p
1
p
8. Suppose you have a biased coin that lands Heads with probability p and lands Tails with
probability 1 p. You flip the coin 2 times. Let Y be the number of times the coin lands
Heads.
(a) What is E(Y )?
Solution:
E(Y ) = p + p = 2p.
Page 7
(c) Suppose instead that you flip the coin n times, and let Y count the number of Heads.
What are the expectation and variance of Y ?
Hint: Y = X1 + X2 + + Xn .
Solution:
E(Y ) = np;
Page 8