



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Solutions to the final exam questions of a university course on probability theory. The topics covered include expected winnings from a game, the chi-squared distribution, joint probability density functions, and conditional probabilities. Students can use this document as study notes, summaries, or as a reference for understanding these concepts.
Typology: Exams
1 / 6
This page cannot be seen from the preview
Don't miss anything!




[25]
E(Y|x) =
1500 , if x < 1000 , or x ≥ 2000 , and, 2000 , if 1000 ≤ x < 2000.
Remark: Since you don’t know beforehand what the amounts in the envelopes will be, one could randomize one’s choice of the strategy x, i.e., replace x by a non-negative random variable X so that we could now compute the expected winnings with this strategy as
E(Y) = E(E(Y|X)),
by the conditional expectation formula, and this last is always ≥ 1500, and if P (1000 ≤ X < 2000) > 0 , then E(Y) > 1500. It pays to guess!
(i) What are the possible values of Y?
(ii) What is the formula for the probability density function fY(y)?
FY(y) = P (Y ≤ y) = P (−
y ≤ Z ≤
y) =
2 π
∫ √y
−√y
e−^
t 22 dt,
for y ≥ 0. Taking the derivative of this integral with respect to y we get
d dy
FY(y) =
2 π
y
e−y/^2 −
y
e−y/^2 },
where the first term inside the {}’s comes from differentiating the upper end point of the integral and the second term comes from differentiating the lower endpoint of the integral, using the fundamental theorem of calculus and the chain rule. Altogether we have
fY(y) =
2 πy
e−y/^2 , for 0 < y.
(iii) Y has the same distribution as one of the Gamma distributions. For which parameters (s, λ) is the Gamma distribution the same as that of Y?
−λs(λy)s− 1 Γ(s). Comparing the exponents on the e’s above, we see that −y 2 should match −λy, which gives λ = 12. Now comparing the exponents on the y’s in both expressions we get y−^1 /^2 = ys−^1 , which gives s = 12. All that is left to match is the constant Γ(s), and the law of total probability then tells us that Γ(^12 ) =
π. Note that this last part is not a part of the question: that is, once you have matched the s and λ, and have only constant factors left to compare, the law of total probability tells you that they have to match, and it isn’t necessary to show this to know that the probability density functions are the same.
[30]
fX,Y(x, y) =
12 xy(1 − x) 0 < x < 1 , 0 < y < 1 , 0 otherwise
(i) Check that fX,Y(x, y) is indeed a probability density function.
S fX,Y(x, y)^ dx dy^ = 1, which is true and is an elementary calculus exercise to check.
(ii) What is the probability density function of X? What is the p.d.f. of Y?
fX(x) =
0
12 xy(1 − x)dy = 12x(1 − x)
0
ydy = 6x(1 − x), 0 < x < 1.
and
fY(y) = 12y
0
x(1 − x)dx = 2y, 0 < y < 1.
then what can you say about the RV’s U 1 , U 2?
Now let X, Y be two independent RV’s both ∼ Exponential[λ]. Recall that these may be thought of as waiting time distributions.
(ii) Use moment generating functions to show that X + Y ∼ Gamma[2, λ]. What is the interpretation of this in terms of waiting times?
MX+Y(t) = MX(t) · MY(t) =
λ λ − t
λ λ − t
λ λ − t
where we have used the tables for moment generating functions. Again using the table for the m.g.f. for the Gamma[s, λ] distribution, we see that the m.g.f. is ( (^) λλ−t )s, and so we have matched a Gamma distribution with s = 2 and λ as given.
In terms of waiting tiimes, it says that we can interpret Gamma[2,λ] as the waiting time distribution, waiting for the arrival of first one, then another event according to independent Exp[λ] distributions.
(iii) If X + Y = T > 0, what are the possible values of X? What is the conditional distribution for X, given that X + Y = T? Interpret this in terms of waiting times.
fX|X+Y=T (x) =
fX,Y(x, T − x) fX+Y(T )
λ^2 e−λx^ · e−λ(T^ −x) λe−λT^ (λT )(2−1)^
where the last numerator comes from the Gamma[2, λ] distribution. Doing a little algebra to cancel stuff top and bottom simplifies things to:
fX|X+Y=T (x) =
, for 0 ≤ x ≤ T,
i.e., X is unformly distributed over the interval [0, T ]. This means , in terms of waiting times, that if we know the second of these two arrivals occurs at time T , then the first arrival was a random time anywhere prior to time T , i.e., uniformly distributed on the interval [0, T ].
Now, I will accept an argument like the above, but strictly speaking, you should make a change of variables first. I will show you the argument in detail, and point out why you get the right answer either way in this case (something = 1, so you can’t see the possible difference).
Let us change (random) variables from X, Y, to X, S = X + Y. At the level of possible values, this amounts to (x, s) = g(x, y) = (x, x + y) = (g 1 (x, y), g 2 (x, y)). The change of variables formula gives us
fX,S(x, s) = fX,Y(g−^1 (x, s)) · | det(Dg(g−^1 (x, s))|,
where
Dg(x, y) =
∂g 1 ∂x
∂g 1 ∂y
∂g 2 ∂x
∂g 2 ∂y
and so, det(Dg(g−^1 (x, s)) = 1, and
fX,S(x, s) = fX,Y(x, s − x) = λe−λ xλe−λ(s−x)^ = λ^2 e−λs, 0 ≤ x ≤ s.
We also have fS(s) = λe−λs(λs)^2 −^1 = λ^2 se−λs.
Now,
fX|X+Y=T (x) = fX|S=T (x) =
fX,S(x, T ) fS (T )
λ^2 e−λT λ^2 T e−λT^
, 0 ≤ x ≤ T,
as found above.
[30]
E(SN ) = N E(X 1 ) = 100N.
To estimate this, we are thinking of N so large that 2000 is an outlier on the short side, so we are probably looking for an N significantly > 20. In terms of the CLT, we want:
and since the cumulative distribution function FZ(z) = Φ(z), we have to choose N at least large enough to make 10030 N√^ −N^2000 ≥ 1 .645, since Φ(1.645) = 0. 95. That is, we want to guarantee that 100 N − 1. 645 · 30
Now replacing
N by t ( and N by t^2 ), we want to guarantee that
100 t^2 − 1. 645 · 30 t − 2000 ≥ 0.
Now you can either do the next step by trial and error or a calculator, or just say what should happen at this point. I would try to solve these equations for the first value of t > 0 where the parabola crosses the x-axis, that is, solve
100 t^2 − 1. 645 · 30 t − 2000 = 0.
The positive root is t = 4.726, or N ≥ 22 .332. So, according to this estimate, we have to have at least 23 components to get the components working at least 2000 hours, with probability ≥ 95%.