Professional Documents
Culture Documents
DIANA ProbSet2 ProbTheory
DIANA ProbSet2 ProbTheory
1. Suppose a die is rolled twice. What are the possible values that the following
random variables can take on?
(a) The maximum value to appear in the two rolls.
Answer: {1,2,3,4,5,6}
(b) The sum of the two rolls.
Answer: {2,3,4,5,6,7,8,9,10,11,12}
(c) The value of the first roll minus the value of the second roll.
Answer: {-5,4,3,2,1,0,1,2,3,4,5}
2. If the die in number 1 is assumed fair, calculate the probabilities associated with
the random variables in 𝑎 to 𝑐.
Answer:
(a) P {X = 1} = P {(1,1)} = 1/36,
P {X = 2} = P {(1,2)(2,1)(2,2)} = 3/36,
P {X = 3} = P {(1,3)(2,3)(3,3)(3,2)(3,1)} = 5/36,
P {X = 4} = P {(1,4)(2,4)(3,4)(4,4)(4,1)(4,2)(4,3)} = 7/36,
P {X = 5} = P {(1,5)(2,5)(3,5)(4,5)(5,5)(5,1)(5,2)(5,3)(5,4)} = 9/36,
P {X = 6} = P {(1,6)(2,6)(3,6)(4,6)(5,6)(6,6)(6,1)(6,2)(6,3)(6,4)(6,5)} = 11/36
3. Find the expected value for each random variable given in number 1 with the
assumption that the die is fair.
Answer:
(a) E[X] = ∑ 𝑥𝑝(𝑥)
= [(1)(1)+(2)(3)+(3)(5)+(4)(7)+(5)(9)+(6)(11)]/36
= 161/36
= 4.47
$
X 𝑐(4𝑥 − 2𝑥 $ )𝑑𝑥 = 1
*
$ $
$ )𝑑𝑥 $
2𝑥 +
𝑐 X (4𝑥 − 2𝑥 = 𝑐 [2𝑥 − ]^ = 1
* 3 *
2(2)+ 2(0)+
𝑐 _[2(2)$ − ] − [2(0)$ − ]` = 1
3 3
16
𝑐 aD8 − F − 0d = 1
3
8
𝑐D F = 1
3
1 3
𝑐= =
8
e3f 8
3
𝑐=
8
3 9 9 1 1
= aD − F − D − Fd
8 2 4 2 12
3 9 5 3 11
= D − F= D F
8 4 12 8 6
11
=
16
(c) Graph 𝐹[𝑋] with the given 𝑐 in 5a.
Then,
1
𝑓(𝑥) = o 1 − 0 = 1 , 0 < 𝑥 < 1
0 , 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
- # #
/]
1 /
𝐸 [𝑋 = X 𝑥 D F 𝑑𝑥 = X 𝑥 (1)𝑑𝑥 = X 𝑥 / 𝑓(𝑥)𝑑𝑥
/
. 𝑏 − 𝑎 * *
𝑥0 1 10 00
= _ ` = lim − lim = −
5 0 '→#2 '→*3 5 5
1
=
5
7. Consider the 𝑝𝑑𝑓 for 𝑋 and 𝑌 be
𝟏𝟐 𝟐
𝒇(𝒙, 𝒚) = (𝒙 + 𝒙𝒚), 𝟎 ≤ 𝒙 ≤ 𝟏, 𝟎 ≤ 𝒚 ≤ 𝟏
𝟕
25
=
224
Answer:
The moment generating function is
𝜓(𝑡) = 𝑀'7 (𝑡) = 𝐸[𝑒 8, ].
Then the first derivative,
𝑑
𝜓 7 (𝑡) = 𝐸 [𝑒 8, ]
𝑑𝑡
𝑑
= 𝐸 a 𝑒 8, d
𝑑𝑡
Let 𝑢 = 𝑡𝑋.
By chain rule we get,
𝑑 9 𝑑
= 𝐸a 𝑒 (𝑡𝑋)d
𝑑𝑢 𝑑𝑡
= 𝐸 [𝑒 9 𝑋]
𝜓′(𝑡) = 𝐸[𝑋𝑒 8, ]
Hence,
𝜓 7 (0) = 𝑀'7 (0) = 𝐸[𝑋]. (1)
Differentiating 𝜓′(𝑡) again,
𝑑 7
𝜓 77 (𝑡) = 𝜓 (𝑡)
𝑑𝑡
𝑑
= 𝐸[𝑋𝑒 8, ]
𝑑𝑡
𝑑
= 𝐸[ (𝑋𝑒 8, )]
𝑑𝑡
By chain rule,
𝑑 8,
= 𝐸 a𝑋 (𝑒 )d
𝑑𝑡
𝑑
= 𝐸 a𝑋 (𝑒 8, )d
𝑑𝑡
Let 𝑢 = 𝑡𝑋.
𝑑 9 𝑑
= 𝐸 a𝑋 𝑒 (𝑡𝑋)d
𝑑𝑢 𝑑𝑡
= 𝐸 [𝑋𝑒 9 𝑋]
= 𝐸[𝑋(𝑋𝑒 8, )]
= 𝐸[𝑋 $ 𝑒 8, ]
Hence,
𝜓 77 (0) = 𝑀'77 (0) = 𝐸[𝑋 $ ]. (2)
Let 𝑡 = 0.
Since 𝑒 * = 1 and 1;2# = 1,
𝑀'7 (0) = 𝜓 7 (0) = 𝑛(𝑝 + 1 − 𝑝);2# 𝑝
= 𝑛(1);2# 𝑝 = 𝑛𝑝
Then by (1),
𝜓 7 (0) = 𝑀'7 (0) = 𝐸 [𝑋] = 𝑛𝑝. (4)
Differentiating (3) again using chain rule,
Let 𝑡 = 0. Note that the equation after the plus (+) is just (3).
Then by (2),
𝑀'77 (0) = 𝜓 77 (0) = 𝐸[𝑋 $ ] = 𝑛(𝑛 − 1)𝑝$ + 𝑛𝑝 (5)
∎
(b) 𝑉𝑎𝑟(𝑋) = 𝐸[𝑋2] – 𝐸[𝑋]2 = 𝑛𝑝(1 − 𝑝)
Answer:
Var(X) = 𝐸[𝑋 $ ] − (𝐸[𝑋])$