



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!




Note: Please send your score to [email protected]
Problem 1.
a) True. proof:
P (A ∩ (B ∪ C)) = P ((A ∩ B) ∪ (A ∩ C)) (1) = P (A ∩ B) + P (A ∩ C) − P ((A ∩ B) ∩ (A ∩ C)) (2) = P (A ∩ B) + P (A ∩ C) − P (A ∩ B ∩ C) (3) = P (A)P (B) + P (A)P (C) − P (A)P (B)P (C) (4) = P (A)P (B) + P (A)P (C) − P (A)P (B ∩ C) (5) = P (A)(P (B) + P (C) − P (B ∩ C)) (6) = P (A)P (B ∪ C) (7)
(2): De Morgan law, (4), (6) : independence, (7) De Morgan law.
b) False. First,
V ar(X + Y ) − (V ar(X) + V ar(Y )) (8) = E((X + Y )^2 ) − E(X + Y )^2 − (E(X^2 ) − E(X)^2 + E(Y 2 ) − E(Y )^2 ) (9) = 2 E(XY ) − 2 E(X)E(Y ) (10)
So V ar(X + Y ) = V ar(X) + V ar(Y ) is equivalent to E(XY ) = E(X)E(Y ). A coun- terexample is as follows. The joint PMF of PXY is
It’s easy to verify that E(XY ) = 0 and E(X) = 0 thus E(XY ) = E(X)E(Y ), but X, Y are not independent.
c) False. A counterexample: X is uniformly distributed in the interval [− 0. 1 , 0 .1], then E(X) = 0, and fX (x) = 5, x ∈ [− 0. 1 , 0 .1].
Problem 1.
a) 10
b) 100p + 0 × (1 − p) = 100p
c)
1 + 10P (positive) + 100P (negative and defective ) = 1 + 10(P (positive|defective)P (defective) + P (positive|non-defective)P (non-defective)) +100P (non-negative|defective)P (defective) = 1 + 10(qp + q 5 (1 − p)) + 100(1 − q)p = 1 + 100p + 2q − 92 pq (11)
d) We pick the strategy (a) (b) or (c) with the minimum cost expectation. 0 ≤ p ≤ 1, 0 ≤ q ≤ 1 we want to determine the following three regions inside [0, 1] × [0, 1]: Region Ra is {(p, q) ∈ [0, 1] × [0, 1]| 10 ≤ 100 p, 10 ≤ 1 + 100p + 2q − 92 pq} Region Rb is {(p, q) ∈ [0, 1] × [0, 1]| 100 p ≤ 10 , 100 p ≤ 1 + 100p + 2q − 92 pq} Region Rc is {(p, q) ∈ [0, 1] × [0, 1]|1 + 100p + 2q − 92 pq ≤ 10 , 1 + 100p + 2q − 92 pq ≤ 100 p} In region Ri, i = a, b, c, we apply strategy i. For p ≤ 0 .1, 100p ≤ 10 and for p ≥ 0 .1, 10 ≤ 100 p. So only need to compare 100p and 1 + 100p + 2q − 92 pq when p ≤ 0 .1; 10 and 1 + 100p + 2q − 92 pq when p ≥ 0. 1
d.1)p ≤ 0 .1, compare 100p and 1 + 100p + 2q − 92 pq.
100 p ≤ 1 + 100p + 2q − 92 pq (12) (92p − 2)q ≤ 1 (13)
If the defective probability is too high (p very big), you should just throw it away. If the defective probability is too low, you should just send it to the customers. Otherwise, you should test the chip if the test is good enough (q reasonably big).
Problem 1. a)Only on odd number bounces, the request can be served. So the bouncing always ends at odd numbers: 1, 3 , 5 .... Write odd numbers as 2 × 1 − 1 , 2 × 2 − 1 , ..., 2 × k − 1 , ...
PX (X = 2k − 1) = (
)k, k = 1, 2 , ... PX (X = 2k) = 0, k = 1, 2 , ...
b) Notice that each time you have the request, the probability that you bounce the request to the neighbor with the file is 13 and the probability that you bounce the request to the neighbors without the file is 23 , similarly to part a)
PX (X = 2k − 1) = (
)k−^1
, k = 1, 2 , ... PX (X = 2k) = 0, k = 1, 2 , ...
j=
jPX (X = j) (17)
k=
(2k − 1)PX (X = 2k − 1) (18)
k=
(2k − 1)(
)k−^1
k=
(2k + 1)(
)k^
k=
k(
)k^
k=
)k^
The first part is twice of the expectation of a geometric random variable of parameter 13 , which is
2 ×
1 3
The second part is simply the sum of the PMF of a geometric random variable which is 1.
c) Suppose that you have n neighbors, A has the subversive file and B is the spy. The probability that the request is bounced to A is equal to the probability that the request is bounced to B, which is (^) n^1. So the probability that the request is served at bounce number 2 k − 1 and the spy does not get the request is:
fk =
n
n − 2 n )k−^1
So the probability that the spy gets the request is:
k=
fk = 1 −
k=
n
n − 2 n )k−^1 (22)
n
1 − n− n^2
It does not depend on n. Another interpretation is by symmetry. The probability that you bounce the request to A before you bounce it to B is equal to the probability that you bounce the request to B before you bounce it to A.
d) Let the n − 1’th and the n’th neighbor have the file. And define Xk = 1 if the k’th neighbor gets the request before it’s served, Xk = 0 if the k’th neighbor does not get the request before it’s served, for k = 1, 2 , ..., n − 2.
∑^ n−^2
k=
Xk
So
E(Y ) =
∑^ n−^2
k=
E(Xk) = (n − 2)E(X 1 )
The last equality is true because of the symmetry. Similar to c), the probability that the request is served at bounce number 2k − 1 and neighbor 1 does not get the request is:
fk =
n
n − 3 n )k−^1