probability Assignment No 2
probability Assignment No 2
probability Assignment No 2
Assignment No 2
1 Expectation and Variance
1. Directly from the definitions of expected value and variance, compute E(X) and
Var(X) when X has probability mass function given by the following table:
X -2 -1 0 1 2
p(X) 1/15 2/15 3/15 4/15 5/15
2. Suppose that X takes values between 0 and 1 and has probability density function
2x. Compute Var(X) and Var(X2).
3. The random variable X takes values -1, 0, 1 with probabilities 1/8, 2/8, 5/8 respec-
tively.
(a) Compute E(X).
(b) Give the pmf of Y = X2 and use it to compute E(Y ).
(c) Instead, compute E(X2) directly from an extended table.
(d) Compute Var(X).
6. Suppose 100 people all toss a hat into a box and then proceed to randomly pick out
a hat. What is the expected number of people to get their own hat back.
Hint: express the number of people who get their own hat as a sum of random variables
whose expected value is easy to compute.
7. Suppose I play a gambling game where I either win or lose k dollars. Suppose further
that the chance of winning is p = .5.
I employ the following strategy to try to guarantee that I win some money.
I bet $1; if I lose, I double my bet to $2, if I lose I double my bet again. I continue until
I win. Eventually I’m sure to win a bet and net $1 (run through the first few rounds and
you’ll see why this is the net).
If this really worked casinos would be out of business. Our goal in this problem is to
understand the flaw in the strategy.
(a) Let X be the amount of money bet on the last game (the one I win). X takes values
1, 2, 4, 8, Determine the probability mass function for X. That is, find p(2k), where k
is in {0, 1, 2, }.
(b) Compute E(X).
(c) Use your answer in part (b) to explain why the stategy is a bad one.
9. (a) Suppose that X is uniform on [0, 1]. Compute the pdf and cdf of X.
(b) If Y = 2X + 5, compute the pdf and cdf of Y.
9.1 (a) Suppose that X has probability density function fX (x) = λe−λx for x ≥ 0.
Compute the cdf, FX (x).
(b) If Y = X2, compute the pdf and cdf of Y.
9.2 Suppose that X is a random variable that takes on values 0, 2 and 3 with probabilities
0.3, 0.1, 0.6 respectively. Let Y = 3(X − 1)2.
(a) What is the expectation of X?
9.3 Suppose you roll a fair 6-sided die 100 times (independently), and you get $3 every
time you roll a 6. Let X1 be the number of dollars you win on rolls 1 through 25.
Let X2 be the number of dollars you win on rolls 26 through 50.
Let X3 be the number of dollars you win on rolls 51 through 75.
Let X4 be the number of dollars you win on rolls 76 throught 100.
Let X = X1 + X2 + X3 + X4 be the total number of dollars you win over all 100 rolls.
(a) What is the probability mass function of X?
(b) What is the expectation and variance of X?
(c) Let Y = 4X1. (So instead of rolling 100 times, you just roll 25 times and multiply your
winnings by 4.) (i) What are the expectation and variance of Y ?
(i) How do the expectation and variance of Y compare to those of X? (I.e., are they bigger,
smaller, or equal?) Explain (briefly) why this makes sense.
10 Let R be the rate at which customers are served in a queue. Suppose that R is
exponential with pdf f (r) = 2e−2r on [0, ∞).
Find the pdf of the waiting time per customer T = 1/R.
F (x) = x2 for 0 ≤ x ≤ 1.
Compute P ( 1 < X < 3 ).
2 4
(a) Compute P ( 14 ≤ X ≤ 34 ).
(b) What is the pdf of X?
Exponential Distribution
17 Suppose that buses arrive are scheduled to arrive at a bus stop at noon but are
always X minutes late, where X is an exponential random variable with probability density
function fX (x) = λe−λx. Suppose that you arrive at the bus stop precisely at noon.
(a) Compute the probability that you have to wait for more than five minutes for the bus
to arrive.
(b) Suppose that you have already waiting for 10 minutes. Compute the probability that
you have to wait an additional five minutes or more.
18 Normal Distribution: Throughout these problems, let φ and Φ be the pdf and cdf,
respectively, of the standard normal distribution Suppose Z is a standard normal random
variable and let X = 3Z + 1.
(a) Express P (X ≤ x) in terms of Φ
(b) Differentiate the expression from (a) with respect to x to get the pdf of X, f (x).
Remember that Φ'(z) = φ(z) and don’t forget the chain rule
(c) Find P (−1 ≤ X ≤ 1)
(d) Recall that the probability that Z is within one standard deviation of its mean is
approximately 68%. What is the probability that X is within one standard deviation of its
mean?
σ
19 (Sums of normal random variables)
Let X be independent random variables where X ∼ N (2, 5) and Y ∼ N (5, 9) (we use the
notation N (µ, σ2)). Let W = 3X − 2Y + 1.
(a) Compute E(W ) and Var(W ).
(b) It is known that the sum of independent normal distributions is normal. Compute P (W ≤ 6).
22 Data is taken on the height and shoe size of a sample of MIT students. Height is coded
by 3 values: 1 (short), 2 (average), 3 (tall) and shoe size is coded by 3 values 1 (small), 2
(average), 3 (large). The joint counts are given in the following table.
Shoe \ Height 1 2 3
1 234 225 84
2 180 453 161
3 39 192 157
Let X be the coded shoe size and Y the height of a random person in the sample.
(a) Find the joint and marginal pmf of X and Y .
(b) Are X and Y independent?
24 Let X and Y be two random variables and let r, s, t, and u be real numbers.
(a) Show that Cov(X + s, Y + u) = Cov(X, Y ).
(b) Show that Cov(rX, tY ) = rtCov(X, Y ).
(c) Show that Cov(rX + s, tY + u) = rtCov(X, Y ).
26 (Arithmetic Puzzle) The joint and marginal pmf’s of X and Y are partly given in
the following table.
X\
Y 1 2 3
1 1/6 0 . . . 1/3
2 . . . 1/4 . . . 1/3
3 . . . . . . 1/4 . . .
1/6 1/3 . . . 1
(a) Complete the table.
(b) Are X and Y independent?
27 (Simple Joint Probability) Let X and Y each have range {1,2,3,4}. The following
formula gives their joint pmf
i+j
P (X = i, Y = j) =
80
Compute each of the following:
(a) P (X = Y ).
(b) P (XY = 6).
(c) P (1 ≤ X ≤ 2, 2 < Y ≤ 4).
28 Toss a fair coin 3 times. Let X = the number of heads on the first toss, Y the total
number of heads on the last two tosses, and F the number of heads on the first two tosses.
(a) Give the joint probability table for X and Y . Compute Cov(X, Y ).
(b) Give the joint probability table for X and F . Compute Cov(X, F ).