






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







December 17, 2007
Solution:
P (D. majority) = P (at least 2 Democrats) =
( 6 2
)( 9 1
) ( 15 3
( 6 3
)( 9 0
) ( 15 3
)
P (D. majority | at least one R.) =
P (D. majority, at least one R.) P (at least one R.)
( 6 2
)( 5 1
) ( 15 ) −
( 11 )
P (ithcoin used | head) =
P (ithcoin used, head) P (head)
i 4 ·^
1 4 1 4 ·^
1 4 +^
2 4 ·^
1 4 +^
3 4 ·^
1 4 +^
4 4 ·^
1 4
i 10
Bin(100,
(and thus the standard deviation is σ =
V ar =
16 = 4). The probability of randomly guessing 30 questions is
Thus the test is well designed. For the extra points, I need n such that
n − 20 4
Inspecting the table, I get n ∼= 20 + 4 · 1 .64 = 26.54. Thus, for the test to be well designed, I need at least 27 questions.
f (x, y) =
{ cx−^2 if 0 < y < x^2 and | x |< 1 0 otherwise
i) Determine c. Find P (X ∈ (− 0. 5 , 0 .5), Y ∈ (0, 0 .5)). ii) Determine the marginal densities of X and Y. iii) Find P (Y > 0. 1 | X = 0.4) and P
( Y > 14 | X > (^34)
) .
Solution: To find c, you solve
∫ ∫ f (x, y) dx dy = c
∫ (^1)
− 1
∫ (^) x 2
0
x^2
dy dx = c
∫ (^1)
− 1
dx = 2c
Thus, c = 12.
∫ (^0). 5
− 0. 5
∫ (^) x 2
0
x^2
dy dx =...
(note that |x| < 0 .5 gives x^2 < 0 .25. Thus the upper limit of integration for y is x^2 , not 0.5)
fX (x) =
∫ (^) x 2
0
x^2
dy =
(i.e. X is uniform on [− 1 , 1])
fY (y) =
(∫ 1 √y
x^2
dx +
∫ (^) −√y
− 1
x^2
dx
∫ (^1) √y
x^2
dx =
y
Finally, one should note that the 2 conditional probabilities from iii are computed differently. For P
( Y > 14 | X > (^34)
) we apply the standard method (i.e. the definition of the conditional probability):
P
( Y >
( Y > 14 , X > (^34)
)
( X > (^34)
)
and then compute the denominator and numerator by integration. The same method would not work for P (Y > 0. 1 | X = 0.4) (you get 00 which is undetermined). Thus, to compute P (Y > 0. 1 | X = 0.4) you use
∫ (^) (0.4) 2
fY |X (y | 0 .4) dy,
where fY |X (y | x) =
f (x, y) f (x)
= x−^2 if 0 < y < x^2 and 0 else
n 6
We have Cov(X, Y ) = E[X · Y ] − E[X] · E[Y ] = E[X · Y ] −
n^2 6
Next, to compute E[X · Y ], we use the indicator variable method. Let
∑^ n
i=
Xi and Y =
∑^ n
j=
Yj ,
where Xi = 1 iff we get a 6 for the ith roll and similarly for Y.
E[X · Y ] = E[
∑ Xi ·
∑ Yj ] =
∑
i,j
E[Xi · Yj ]
Since Xi · Yj is a again an indicator variable, we have
E[Xi · Yj ] = P (Xi · Yj ) =
{ (^1) 36 if^ i^6 =^ j 0 if i = j
Thus
∑
i 6 =j
E[Xi · Yj ] +
∑
i=j
E[Xi · Yj ] = (n^2 − n) ·
n^2 − n 36
We conclude Cov(X, Y ) =
n^2 − n 36
n^2 36
n 36
Note that
E[X | Y = 1] = E[X] + 2 E[X | Y = 2] = E[X] + 4 E[X | Y = 3] = 1
We get
E[X] = E[E[X | Y ]] = 0. 5 · E[X | Y = 1] + 0. 3 · E[X | Y = 2] + 0. 2 · E[X | Y = 3] = 0. 5 · (E[X] + 2) + 0. 3 · (E[X] + 4) + 0. 2 · 1 = 0. 8 · E[X] + 2. 4
Thus, E[X] = 5 · 2 .4 = 12.
E[X] = E [E[X | Y ]]
Hint. Start from the joint distribution f (x, y) and write the formulas for the various expressions involved. (There is partial credit for this problem) Solution: fX|Y (x | y) =
f (x, y) fY (y) Then
E[X | Y ] =
∫ xfX|Y (x | y) dx =
fY (y)
∫ xf (x, y) dx (it is a function of y)
and
E[E[X | Y ]] =
∫ E[X | Y ] · fY (y) dy =
fY (y)
∫ xf (x, y) dx
) · fY (y) dy
∫ ∫ xf (x, y) dx dy
=
∫ ∫ xf (x, y) dy dx =
∫ x
∫ f (x, y) dy dx
=
∫ xfX (x) dx
= E[X]
B. The number of people buying from a certain shop has a Poisson distribution with mean λ = 50. The amount spent per person is normally distributed with mean μ = 20 and standard deviation σ = 10. Compute the expected revenue in one day and the variance. Solution: Let X be the revenue in one day and N be the number of people in the store. Again we use E[X] = E[E[X | N ]] What is the distribution of X | N? This means I know that N people are shopping and each spends N (20, 102 ). Thus, I have a sum of N normals, which is again a normal distribution with parameters E = N · 20 and Var = N · 102 , i.e.
X | N = N (N · 20 , N · 102 )
Thus E[X] = E[N (N · 20 , N · 102 )] = E[20N ] = 20E[N ] = 20 · 50 (since N = Poisson(50)). Similarly for variance:
Var[X] = Var[E[X | N ]] + E[Var[X | N ]] = Var[20N ] + E[100N ] = 400Var[N ] + 100E[N ] = 400 · 50 + 100 · 50
(again using N = Poisson(50) and the mean and variance of Poisson).