Homework 3 Solution
Homework 3 Solution
1
Note:
x: random variables
f (x): probability functions
Solution:
x 1 2 3
F (x) 1/2 5/6 1
b)
0
−∞ < x < 0
3/28 0≤x<1
F (x) =
18/28 1≤x<2
2≤x<∞
1
2
c)
0 −∞ < x < 0
9/64 0≤x<1
F (x) =
39/64 1≤x<2
2≤x<∞
1
b)
0 −∞ < x < 0
4 4
C48 /C52 0≤x<1
C 4 + C 1 C 3 /C 4
1≤x<2
48 4 48 52
F (x) =
C48 + C4 C48 + C42 C48
4 1 3 2 4
/C52 2≤x<3
4 3
+ C41 C48 2
+ C42 C48 1
+ C43 C48 4
3≤x<4
C48 /C52
1 4≤x<∞
x 1 2 3 4
F (x) 1/8 3/8 3/4 1
Solution:
a)
x 1 2 3 4
f (x) 1/8 1/4 3/8 1/4
b)
P (1 ≤ x ≤ 3) = 3/4
c)
P (x ≥ 2) = 7/8
3
d)
P (x < 3) = 3/8
e)
P (x > 1.4) = 7/8
b) 2
Z 2
−3x −3x = e−3 − e−6
P (1 < X < 2) = 3e dx = e
1 1
c) +∞
Z +∞
3e−3x dx = −e−3x = e−9
P (X ≥ 3) =
3 3
d)
Z +∞
P (X < 1) = 1 − P (X ≥ 1) = 1 − 3e−3x dx = 1 − lim e−3x + e−3 = 1 − e−3
1 x→+∞
4
Find (a) the constant c, (b) P (X > 2), (c) P (1/2 < X < 3/2).
Solution:
c0
x≤1
3
3x 1 ≤ x ≤ 2
2
cx 1 ≤ x ≤ 2
f (x) = cx 2 < x < 3 ⇒ F (x) =
0 otherwise
c 2
x 2≤x≤3
2
1 x≥3
a)
x < 1 ⇒ F (x) = 0
cx3 c
1 ≤ x ≤ 2 ⇒ F (x) = = (23 − 1)
3 3
2
cx c
2 < x < 3 ⇒ F (x) = = (32 − 22 )
2 2
Z ∞ Z 1 Z 2 Z 3 Z ∞
f (x)dx = f (x)dx + f (x)dx + f (x)dx + f (x)dx
−∞ −∞ 1 2 3
Z 2 Z 3
c c 29 6
= f (x)dx + f (x)dx = (23 − 1) + (32 − 22 ) = c = 1 ⇒ c =
1 2 3 2 6 29
b)
P (X > 2) = P (2 < X < 3) + P (3 < X)
1 6 2
∗ (3 − 22 ) + 0)
=
2 29
6 1 2 15
= 1 − P (X − 2) = 1 − ∗ (2 − 1) =
29 3 29
c)
1 3 1 3
P <X< =P <X <1 +P 1<X <
2 2 2 2
3 !
6 1 3 19
=0+ ∗ − 13 =
29 3 2 116
5
c c 6/29 6/29
(1) : x3 + k1 = x2 + k2 ⇒ ∗ 23 + k1 = ∗ 22 + k2
3 2 3 2
16 12 4
⇒ + k1 = + k2 ⇒ k2 = k1 +
29 29 29
c c 6/29 6/29
(2) : x3 + k1 + x2 + k2 = 1 ⇒ ∗ 13 + k1 + ∗ 32 + k2 = 1
3 2 3 2
2 27
⇒ + k1 + + k2 = 1 ⇒ 1 + k1 + k2 = 1 ⇒ k1 + k2 = 0 ⇒ k1 = −k2
29 29
From (1)
and (2):
4 2 2
k1 = − k1 + ⇒ k1 = − ; k2 =
29 29 29
Therefore:
0 x≤1
2x3 − 2
1≤x≤2
29
F (x) =
3x2 + 2
2≤x≤3
29
1 x≥3
If P (X = 3) = 0, find (a) the constant c, (b) the density function, (c) P (X > 1), (d)
P (1 < X < 2).
Solution: 3
cx 0 ≤ x < 3
3cx2 0 ≤ x < 3
F (x) = 1 x≥3 ⇒ f (x) =
0 otherwise
0 x<0
a) 3
Z ∞ Z 3
3
3 1
f (x)dx = 1 ⇒ cx dx = 1 ⇒ cx = 1 ⇒ c =
−∞ 0 0 27
b)
1 x2 0≤x≤3
f (x) = 9
0 otherwise
c) Z 3
1 3 26
P (X > 1) = f (x)dx = (3 − 1) =
1 27 27
d) Z 2
1 3 7
P (1 < X < 2) = f (x)dx = (2 − 1) =
1 27 27
6
Problem 15: [3, Exercise 2.52]
Can the function
c(1 − x2 ) 0 ≤ x ≤ 1
F (x) =
0 otherwise
be a distribution function? Explain.
Solution:
( (
c(1 − x2 ) 0 ≤ x ≤ 1 −2cx 0 ≤ x ≤ 1
F (x) = ⇒ f (x) =
0 otherwise 0 otherwise
Z ∞
1
2
f (x)dx = 1 ⇒ c(1 − x ) = 1
−∞ 0
2
⇔ c − c(1 − 0) = 1 ⇔ c − c = 1 ⇔ 0 = 1
1 3
Find (a) the value of the constant c, (b) P ( < X < ), (c) P (X > 1), (d) the
2 2
distribution function.
Solution:
a) 2
Z ∞ Z 2
cx2
f (x)dx = 1 ⇒ cxdx = 1 ⇒ =1
−∞ 0 2 0
2
2 1
⇔c − 0 = 1 ⇔ 2c = 1 ⇔ c =
2 2
b)
3/2 3/2 2 2 !
cx2 x2
1 3 1 3 1 1
P <X< = = = − =
2 2 2 1/2 4 1/2 4
2 2 2
c) 2
x2 1 2 3
P (X > 1) = = 2 − 12 =
4 1 4
4
d)
0 x<0
2
x
F (x) = 0≤x≤2
4
1 x>2
7
Problem 17: [2, Exercise 3, section 3.1]
Suppose that two balanced dice are rolled, and let X denote the absolute value of the
difference between the two numbers that appear. Determine and sketch the p.f. of X.
Solution:
There are total 36 possible outcomes when 2 dice are rolled because each die has 6 sides
(from 1 to 6).
• X = 0 for 6 outcomes
• X = 1 for 10 outcomes
• X = 2 for 8 outcomes
• X = 3 for 6 outcomes
• X = 4 for 4 outcomes
• X = 5 for 2 outcomes
8
15 and p = 0.5. Find P(X < 6).
Solution:
The desired probability is the sum of the entries for k = 0,1,2,3,4 and 5 in that part of
the table of binomial probabilities corresponding to n = 15 and p = 0.5. The sum is:
0.1509
9
a. Find the value of t such that P(X ≤ t) = 1/4.
Solution: Z t t
1 1 2 1 t2 1
xdx = x = ⇒ = ⇒t=2
0 8 16 0 4 16 4
b. Find the value of t such that P(X ≥ t) = 1/2.
Solution: 4
Z 4
1 1 2 1 t2 1 √
xdx = x = ⇒ 1 − = ⇒t= 8
t 8 16 t 2 16 2
1
⇒c=
30
2 3
b. f (x) = c , for x = 0, 1, 2.
x 3−x
Solution:
2
X 2 3 2 3 2 3 2 3
c =c + + = 10c = 1
x=0
x 3−x 0 3 1 2 2 1
1
⇒c=
10
10
For −1 ≤ x ≤ 1 :
x x
x3
Z
3 2 1 3 1 9
F (x) = (3 − t )d(t) = 3t − t = + x −
16 −1 3 −1 2 16 16
3
1 1 9 1 1 1 99
⇒ P (X < ) = − − =
2 2 16 2 16 2 128
c) For this particular measurement, it is undesirable if the magnitude of the error (i.e.,
|x|) exceeds 0.8. What is the probability that this occurs?
Solution:
11
References
[1] Walpole, R. E., Myers, R. H., Myers, S. L. and Ye, K., Probability &
Statistics for Engineers & Scientists, 9th ed., MA, USA: Prentice-Hall, 2012.
[2] DeGroot, M. H. and Schervish, M. J., Probability and Statistics, 4th ed., MA,
USA: Pearson Education, Inc., 2012.
12