Exercises MEF - 7 - 2018 - Solution
Exercises MEF - 7 - 2018 - Solution
Exercise 1
Compute the following expression using Leibniz’s Formula:
Z α
ln(1 + αβ)
F 0 (α) for F (α) = dβ.
0 β
Solution 1
α
ln(1 + α2 ) ln(1 + α2 ) ln(1 + αβ) ln(1 + α2 )
Z α
0 1 β
F (α) = + dβ = + =2 .
α 0 β 1 + αβ α α 0 α
Exercise 2
A laboratory is running blood tests in order to detect a disease. This test detects 95% of diseased and detects by
error the disease to 1% of healthy people. We know that 0.5% of the population has this disease. Compute the
probability that someone is indeed sick given that the test detected the disease.
Solution 2
Let the event A be ”the person is sick”. Let the event B be ”the test says the person is sick”. We want to compute
P(A | B) and have the following information:
95
P(B | A) =
100
1
P(B | Ac ) =
100
1
P(A) =
200
First of all, let us compute P(B):
1
Using Bayes’s formula, we obtain:
P(B | A)P(A)
P(A | B) =
P(B)
95 1 10000
= × ×
100 200 147
95
=
294
= 0.323
Therefore, the person is sick only one third of the times the test says she is sick. We cannot rely on this test!
Exercise 3
There are exactly 64350 gold coins in a chest. One of them is drawn randomly and tossed 5 times. Each time the
outcome is ”heads”.
Solution 3
(a) For each tossing the probability of the outcome “heads” is P (”heads”) = 12 . Outcomes of consecutive
tossings are independent events =⇒ probability of 5 consecutive outcomes “heads” is P (5 ”heads”) = 215 .
(b) One can apply Bayes’s Theorem:
1 1
P (counterf eit) = =
N 64350
P (5 ”heads” | counterf eit) = 1.(Obviously)
1
0
64350 1
P = 1 29 30
1 = .
64350 ·1+ 64350 ·0+ 1− 64350 · 25
2011
2
Exercise 4
Let A and B be two independent events.
1) Show that Ac and B c are independent.
2) Show that Ac and B are independent.
3) Compute P(A | B)
Solution 4
1)
P(Ac ∩ B c ) = 1 − P(A ∪ B)
= 1 − (P(A) + P(B) − P(A ∩ B))
= 1 − P(A) − P(B) − P(A)P(B)
= (1 − P(A))(1 − P(B))
= P(Ac )P(B c )
Therefore, Ac and B c are independent.
2)
P(Ac ∩ B) = P(B) − P(A ∩ B)
= P(B) − P(A)P((B)
= P(B)(1 − P(A))
= P(B)P(Ac )
Therefore, Ac and B are independent.
3) We know that A and B are independent, therefore we have
P(A ∩ B) P(A)P(B)
P(A | B) = = = P(A)
P(B) P(B)
Exercise 5
Let A1 , A2 , A3 be independent random events such that 0 < Pr(Ai ) < 1. Check if the following events are
independent:
(a) A1 ∩ Ac2 and A3 ,
(b) A1 ∩ A2 and A2 ∪ A3 .
Solution 5
(a) The sets are independent.
(b) The sets are not independent.
3
Exercise 6
For events A, B, C, C1 , C2 such that 0 < P (C) < 1 which of the following statements are true?
Solution 6
(a) False. Counterexample: let C = Ac =⇒ P (A ∩ C) = P (A ∩ Ac ) = 0 > P (B ∩ Ac ) which cannot be true.
(b) True. Since A and B are independent from C =⇒ P (A ∩ C) = P (A) P (C) , P (B ∩ C) = P (B) P (C).
Thus from P (A) > P (B) follows P (A ∩ C) > P (B ∩ C).
(c) True. We have P (A |C ) P (C) ≥ P (B |C ) P (C) , P (A |C c ) P (C c ) ≥ P (B |C c ) P (C c ) =⇒
Exercise 7
Given a complete probability space (Ω, F, P). Prove that the conditional probability defined by
P (A ∩ B)
P ( A| B) = ,
P (B)
with A, B ∈ F is a probability measure.
Solution 7
From the lecture notes we know that a probability measure is defined by the three axioms of Kolmogorov, i.e
(a) P (∅) = 0,
(b) P (Ω) = 1,
S∞ P∞
(c) P ( i=1 Ai ) = i=1 P (Ai ) for disjoint sets A1 , A2 , . . . ∈ F.
Thus, we have just to check whether the conditional probability measure satisfies all three conditions. In order
to show that all conditions are in fact true we fix the event B and just write Q (A) := P ( A| B) as short-hand
notation. Assume that all axioms are fulfilled for unconditional probabilities, like P (A) for any set A ∈ F.
Ad 1.
P (∅ ∩ B) P (∅)
Q (∅) = = = 0,
P (B) P (B)
Ad 2.
P (Ω ∩ B) P (B)
Q (Ω) = = = 1,
P (B) P (B)
4
Ad 3.
∞ ∞
! S∞ S∞ P∞
[ P (( i=1 Ai ) ∩ B) P ( i=1 (B ∩ Ai )) i=1 P (B ∩ Ai )
X
Q Ai = = = = Q (Ai ) ,
i=1
P (B) P (B) P (B) i=1
Exercise 8
(Exercise Session 2013) Let us assume the random variable Xt to be distributed as follows ∀t = 1...T :
1
2 if x = 1,
P[Xt = x] = 1
2 if x = −1.
Then we rewrite the sum of those independent random variables as:
t
X
Wt = Xi .
i=1
Solution 8
E[Xt ] = 21 × 1 + 21 × (−1) = 0
V[Xt ] = E[Xt2 ] − E[Xt ]2
E[Xt2 ] = 12 × 12 + 12 × (−1)2 = 1, ⇒
V[Xt ] = 1 − 02 = 1
With this, we can compute the expectation and the variance of Wt .
Pt
E[Wt ] = E[ i=1 Xi ]
Pt
= i=1 E[Xi ] = 0
| {z }
Pt =0
V[Wt ] = V[ i=1 Xi ]
Pt
= i=1 V[Xi ] = t
| {z }
=1
Exercise 9
Suppose that the random variable X the following pdf
( √
√ cx if x ∈ [0, 2 3],
fX (x) = x2 +4 √
0 if x∈/ [0, 2 3].
5
Solution 9
(a) Recall the definition of the pdf:
R +∞
−∞
fX (x)dx = 1
√
R 2√3 √ 2 3
We get: √ cu du = c u2 + 4 = 1 ⇒ 2c = 1 ⇒ c = 1
0 u2 +4 0 2
0, x<0
√
R min(x,2√3) 1 u √ √ √
1 min(x,2 3)
(b) FX (x) = 0 2
2 u2 +4 du = 2 u + 4 0
√ = 21 x2 + 4 − 1, x ∈ 0, 2 3 ;
√
1, x>2 3
1 1 1 1
2
(c) FY (y) = P (Y ≤ y) = P X + 4 ≤ y = P −(y − 4) 2 ≤ X ≤ (y − 4) 2 = FX (y − 4) 2 −FX −(y − 4) 2
1 1 1 1
Since −(y − 4) 2 has has to be negative, FX −(y − 4) 2 = 0 and FX (y − 4) 2 = 12 y 2 − 1
1 1
⇒ FY (y) = 21 y 2 − 1, (pdf) fY (y) = 14 y − 2 .
Exercise 10
(optional) Suppose that the random variable X has an exponential distribution with pdf
exp(−x) if x > 0,
fX (x) =
0 if x 6 0.
(b) Y = ln X.
Solution 10
The cdf fro the exponential distribution is
Z x Z x
−u x
FX (x) = e du = e−u du = −e−u 0
= 1 − e−x .
−∞ 0
1
1 − y1
(a) Y = 1/X, y > 0 (cdf) FY (y) = e− y , (pdf) fY (y) = y2 e .
y y
(b) Y = ln X, y ∈ R. (cdf) FY (y) = 1 − e−e , (pdf) fY (y) = ey−e