



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 various probability problems involving independent and dependent events, random variables, and their distributions. Topics include finding probabilities of more than a certain number of debates occurring at a convention, calculating expected values, and determining the minimum-mean-square-error estimate. The document also covers the uniform distribution, the uniform vs. Gaussian distributions, and the maximum-likelihood and minimum-mean-square-error decision rules.
Typology: Exams
1 / 7
This page cannot be seen from the preview
Don't miss anything!




University of Illinois Spring 2008
TRUE P (A ∪ B) ≥ max{P (A), P (B)}. (A ⊂ A ∪ B, B ⊂ A ∪ B) TRUE P (A ∩ B) ≤ min{P (A), P (B)}. (A ∩ B ⊂ A, A ∩ B ⊂ B) TRUE If A and B are independent, P (A|B) + P (Ac|Bc) = 1. TRUE P (A|B)P (B) + P (Ac|Bc)P (Bc) = 1 − P (A ⊕ B). FALSE P (A|B)P (B) + P (Ac|B)P (B) = P (A). (true if RHS were P (B)) TRUE If P (A) = P (B), then P (A|B) = P (B|A). FALSE If P (A|B) = P (B|A), then P (A) = P (B). Conclusion does not hold if P (A|B) = P (B|A) = 0. TRUE If P (A|B) = P (A), then P (Bc|A) = 1 − P (B). A and B are independent events (b) X and Y are random variables such that var(X ) = var(Y) = σ^2 < ∞. var(2X + 3Y + 4) = 4σ^2 + 9σ^2 + 12 · cov(X , Y) = var(3X − 2 Y + 1) = 9σ^2 + 4σ^2 − 12 · cov(X , Y) implies that cov(X , Y) = 0. TRUE X and Y are uncorrelated random variables. FALSE X and Y are independent random variables. TRUE var(2X + 3Y + 4) = var(2X − 3 Y + 1). TRUE cov(X + Y, X − Y) = 0.
P {X > 2 n} = pqpq · · · pq + qpqp · · · qp = 2(pq)n. Note that this formula does not hold for n = 0. (Why not? and what is the value of P {X > 0 } anyway?) (b) For n ≥ 0, find the probability that more than 2 n + 1 debates occur at the DNC. Solution: By the same argument as in part (a) that the winners must alternate, we get that P {X > 2 n + 1} = (pq)np + (qp)nq = (pq)n^ which does hold for n = 0.
(c) Find E[X ]. Hint: use the results of parts (a) and (b). Solution: Since X is a positive integer-valued random variable, we have that
k=
P (X > k) =
n=
P {X > 2 n} +
n=
P {X > 2 n + 1}
n=
P {X > 2 n} + 1 +
n=
P {X > 2 n + 1}
n=
2(pq)n^ + 1 +
n=
(pq)n^ = −1 + 3
1 + (pq) + (pq)^2 + · · ·
= (^1) −^3 pq − 1 = 2 + 1 −^ pqpq.
Notice that E[X ] = 2 if p = 0 or q = 0 which makes perfect sense. On the other hand, symmetry indicates that the maximum value of E[X ] should occur when p = q = 12 , and surprisingly, this maximum value is only 3; on average, three or fewer debates can be expected to occur at the DNC! Alternatively, we can steal the result from part (d) that P {X = 2n + 1} = (pq)n for n ≥ 1, and use the same argument as in part (d) to deduce that for n ≥ 1, P {X = 2n} = P {X > 2 n − 1 } − P {X > 2 n} = (pq)n−^1 − 2(pq)n = (pq)n−^1 (1 − 2 pq) = (p^2 + q^2 )(pq)n−^1. Since X ≥ 2, we get
k=
k · P {X = k} = (p^2 + q^2 )
n=
2 n · (pq)n−^1 +
n=
(2n + 1)(pq)n
= 2(p^2 + q^2 )
n=
n(pq)n−^1 + 2(pq)
n=
n(pq)n−^1 +
n=
(pq)n
= 2(p^2 + q^2 + pq) (^) (1 −^1 pq) 2 + (^1) −^1 pq − 1
2 p^2 + 2q^2 + 2pq + 1 − pq − 1 + 2pq − (pq)^2 (1 − pq)^2
= 2(p
(^2) + q (^2) + 2pq) − pq − (pq) 2 (1 − pq)^2
= 2(p^ +^ q)
(^2) − pq − (pq) 2 (1 − pq)^2
=^2 −^ pq^ −^ (pq)
2 (1 − pq)^2 =
(2 + pq)(1 − pq) (1 − pq)^2 =
2 + pq 1 − pq just as before.
(d) Find P {X = 2n + 1} and P {X = 2n + 1
X > 2 n}. Solution: For integer-valued X , P (X = k + 1) = P {X > k} − P {X > k + 1}. So, P {X = 2n + 1} = P {X > 2 n} − P {X > 2 n + 1} = 2(pq)n^ − (pq)n^ = (pq)n. Note that since P {X > 0 } = 1 6 = 2(pq)^0 , the result P {X = 2n + 1} = (pq)n^ does not hold for n = 0. For n = 0, P {X = 1} = P {X > 0 } − P {X > 1 } = 1 − 1 = 0 as should be obvious if we just think about the problem a bit! From this we get
lies below the parabola in the right-hand figure above. Thus, we have that
P {real solutions} = P {X 2 ≥ Y} =
u=
∫ (^) u 2
v=
(u + v)dvdu
u=
uv +
v^2 2
u^2
v=
du =
u=
u^3 +
u^4 2
dv
u^4 4
5 10
1
0
(c) Find the conditional pdf fY^ ∣∣X (v
β) of Y given that X = β, where 0 < β < 1. Be sure to specify the value of fY^ ∣∣X (v
β) for all real numbers v.
Solution: fY^ ∣∣X (v
β) =
fX ,Y (β, v) fX (β) =^
β + v β + (^12)
= 2( 2 ββ^ ++ 1^ v) for 0 < v < 1, and fY|X (v
β) = 0 otherwise. The pdf is illustrated in the left-hand figure below. Using the formula for the area of a trapezoid, it is easily verified that the area under the curve equals 1.
2 3
2 β 2 β+
2 β+
4 3
(d) Find the minimum-mean-square-error (MMSE) estimate of Y given that X = β where 0 < β < 1. Solution: The MMSE estimator of Y given that X = β is the mean of the conditional pdf fY^ ∣∣X (v
β), viz.,
E[X |Y = β] =
0
2 v(β + v) 2 β + 1 dv^ =^
2 β + 1
βv^2 +
2 v^3 3
1
0
β + 2/ 3 2 β + 1 =
3 β + 2 6 β + 3. Note that the MMSE estimator is a nonlinear function of β, varying from value 2 3 at^ β^ = 0 to^
5 9 <^
2 3 at^ β^ = 1. Since both^ X^ and^ Y^ are more likely to be close to 1 than to 0, the estimated value of Y is pretty large even when β, the observed value of X , is close to 0. When β is close to 1, the estimated value of Y is still large but closer to 12 because the conditional pdf of Y is much “more uniform” when β is large than when β is small (e.g.. compare the middle and right-hand sketches in the figure on the previous page).
the pdf of X is f 1 (u) =
4 (2^ − |u|),^ |u|^ <^2 , 0 , otherwise.
(a) The maximum-likelihood decision rule can be stated in the form |X |
Hx ≷ H 1 −x
η.
Specify whether x denotes 0 or 1, and find the values of η, the probability of false alarm PFA, and the probability of missed detection PMD. Solution: The easiest way to solve this problem is to sketch the two pdfs as shown in the left-hand figure below.
1 3
1 2
1 4
1 12
It is obvious that the maximum-likelihood decision is in favor of H 1 if |X | < 1, and hence x = 0, η = 1. By inspection, we get that PFA = 2 × 14 = 12 while PMD = 2 ×
1 4
The graphically-challenged can proceed as follows. For − 2 < u < 2, the likelihood ratio is Λ(u) = f^1 (u) f 0 (u)
=^0 .25(2^ − |u|)
= 2 − |u|. When X = u is the observation, the maximum-likelihood decision rule decides in favor of H 1 if Λ(u) > 1. Hence Γ 1 = {u : |u| < 1 } and Γ 0 = {u : 1 < |u| < 2 }, that is, the ML decision rule is that if |X | > 1, the decision is that H 0 is the true hypothesis. Thus, we have x = 0, and η = 1. PFA =
Γ 1
f 0 (u) du =
− 1
4 du^ =
Γ 0
f 1 (u) du = 2
1
(2 − u) du =^1 2
2 u − u
2 2
2
1
(b) Suppose that the hypotheses have a priori probabilities π 0 = 1/3 and π 1 = 2/3. What is the error probability P (E) of the maximum-likelihood decision rule? Solution: The probability of error of the ML decision rule is
P (E) = π 0 PFA + π 1 PMD =
(c) The MAP (also known as the minimum-error-probability or Bayesian) decision
rule can be stated in the form |X |
Hx ≷ H 1 −x
ξ. Specify whether x denotes 0 or 1,
and find the values of ξ and the error probability P (E). Solution: Sketching π 0 f 0 (u) and π 1 f 1 (u) as in the right-hand figure above, we easily see that the MAP decision is in favor of H 1 if |X | < 1 .5, and hence x = 0, ξ = 1.5. By inspection, we get that π 0 PFA = 3 × 121 = 14 = 13 × 34 while π 1 PMD = 2 ×
1 2 ×^
1 12
= 241 = 23 × 161 , that is, PFA = 34 , and PMD = 161.
α
exp(−u) exp(α − u) du = exp(α)^12 exp(− 2 u)
∞
α
=^12 exp(−α).
0
exp(−u) exp(α − u) du = exp(α)
2 exp(−^2 u)
∞
0
2 exp(α).
We can combine these two cases and write fZ (α) = 12 exp(−|α|), −∞ < α < ∞.
and we see that cov(W, Z) = 0 when b = 2.