Assignment 2 Solution: X Y X, Y I I I
Assignment 2 Solution: X Y X, Y I I I
1. We place at random n points in the interval (0,1) and we denote by random variables
X and Y the distance from the origin to the first and the last points respectively. Find
FX (x), FY (y) and FX,Y (x, y).
Solution: Let X = min Zi , and Y = max Zi , where Zi is i.i.d uniformly distributed in the
interval (0, 1). Then, the CDF of X is
The CDF of Y is
FY (y) = P (Y y) = P (max Zi y)
= P {all n points are in the interval(0, y)}
= yn
(a) If x > y,
FX,Y (x, y) = P {max Zi y} = y n
(b) If x y,
2. Problem 2 Solution:
C = A B = {1 X 2.5}
For x 0, Z x
1 /2 h i
FX (x) = e d = 1 ex/2 x0
0 2
(a)
1
(b)
3. Problem 3 Solution:
P (i) = [0.0183, 0.0733, 0.1465, 0.1954, 0.1954, 0.1563, 0.1042, 0.0595, 0.0298]
F (i) = [0.0183, 0.0916, 0.2381, 0.4335, 0.6289, 0.7852, 0.8894, 0.9489, 0.9787]
2
0.2
0.18
0.16
0.14
0.12
pmf of X
0.1
0.08
0.06
0.04
0.02
0
0 1 2 3 4 5 6 7 8
x
(b)
5
X
P (0 X 5) = P (X = k) = FX (5) = 0.7852
k=0
5. Problem 5 Solution:
3
(a) The mean of X is
Z Z 1
5
E[X] = xfX (x) dx = x (1 x4 ) dx
0 4
Z 1 Z 1
5 5 5 1 21 1 61 5
= x dx x dx = x |0 x |0 =
4 0 0 4 2 6 12
(b)
Z 1 Z 1
5 5
E[4X + 2] = (4x + 2) (1 x4 ) dx = (1 + 2x x4 2x5 )dx
0
4
0 2
5 1 2 11
= 1+1 =
2 5 6 3
(c) The second moment is
Z 1 Z 1
5 5 2
E[X 2 ] = x2 (1 x4 ) dx = (x x6 ) dx
0
4
0 4
5 1 1 5
= =
4 3 7 21
7. Problem 7 Solution: X has a Binomial distribution with parameters (n = 3, p = 0.7).
The pmf is give as:
3
P (X = 0) = 0.70 (1 0.7)3 = 0.33 = 0.027
0
3
P (X = 1) = 0.71 (1 0.7)2 = 3 0.7 0.32 = 0.189
1
3
P (X = 2) = 0.72 (1 0.7)1 = 3 0.72 0.3 = 0.441
2
3
P (X = 3) = 0.73 (1 0.7)0 = 1 0.73 = 0.343
3
where the non-zero mass function is obtained by taking the difference of jump points in
CDF curve. (The pmf sketch is ignored.)
9. Problem 9 Solution: Let X be the number of correct answers. There are 5 questions,
we can think there are 5 trials. Each trial has a probability of 1/3 success and 2/3 fail.
Therefore, X is a binomial random variable. The probability of four or more correct answer
is
4 1 5
5 1 2 5 1
P (X = 4) + P (X = 5) = + (1)
4 3 3 5 3
4 5
1 2 1
= 5 +
3 3 3
4
10. Problem 10 Solution: X is poisson r.v. so
k
P (X = k) = e k = 0, 1, 2,
k!
we have i
P (X = i) e i! (i 1)!
= i1 = = (i = 1, 2, )
P (X = i 1) e (i1)! i! i
when i < , P (X = i) > P (X = i 1), the pmf is an increasing function. When i > ,
P (X = i) < P (X = i 1), the pmf is an decreasing function. Therefore, the pmf of X first
increases until i reaches the largest integer below . Then it decreases monotonically.
5
Hence, E[X] can be obtained as
1
E[X] = 0 ()|=0 = (1 + 2 + 3) = 2
3
Similarly,
1
00 () = (e + 22 e2 + 32 e3 )
3
and
1 14
E[X 2 ] = 00 ()|=0 = (1 + 22 + 32 ) =
3 3
1
E[X 3 ] = 000 ()|=0 = (1 + 23 + 33 ) = 12
3