Sta5 Prev
Sta5 Prev
Sta5 Prev
Random Variables
1. A discrete random variable 𝑋 has the following probability mass function
3𝑘𝑥 𝑥 = 1, 3, 5
𝑃(𝑋 = 𝑥) = { 𝑘(𝑥 2 + 0.5) 𝑥=7
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
where 𝑘 is a constant
2
a. Show that 𝑘 = 153
b. Find the exact value of 𝑃(3 < 𝑥 ≤ 7)
c. Find the exact value of 𝑃(3 < 𝑥 < 5)
d. What is the expected value of the random variable 𝑋?
e. What is the variance of the random variable 𝑋?
1
f. Determine 𝑉𝑎𝑟 (− 3 𝑥 + 5)
ANSWER:
a) We know,
∑ 𝑓(𝑥) = 1
Here,
∑ 𝑓(𝑥) = (3𝑘 × 1) + (9𝑘 × 3) + (15𝑘 × 5) + (𝑘 × 49.5) = 76.5𝑘
From the above we can write,
76.5k = 1
2
∴ 𝑘 = 153 [SHOWED]
x 1 3 5 7
P(X=x) 2/51 2/17 10/51 11/17
10 11 43
b) 𝑃(3 < 𝑥 ≤ 7) = + 17 = 51
51
d) Expected value of X,
2 2 10 11 301
𝐸(𝑋) = ∑ 𝑥 × 𝑓(𝑥) = 1 × + 3 × 17 + 5 × 51 + 7 × 17 = = 5.902
51 51
e) We know,
𝑉𝑎𝑟(𝑋) = 𝐸(𝑋 2 ) − [𝐸(𝑋)]2
Here,
2 2 10 11
𝐸(𝑋 2 ) = ∑ 𝑥 2 × 𝑓(𝑥) = 12 × 51 + 32 × 17 + 52 × 51 + 72 × 17 = 37.706
Therefore,
𝑉𝑎𝑟(𝑋) = 𝐸(𝑋 2 ) − [𝐸(𝑋)]2 = 37.706 − 5.9022 = 2.872
1
f) 𝑉𝑎𝑟(− 3 𝑥 + 5)
1 2
= (− 3) × 𝑉𝑎𝑟(𝑥) = 0.319
2. When travelling from Bangladesh to Vietnam, travellers need to first land at Kuala Lumpur, and
then get on a connecting flight to Vietnam. The total time in transit 𝑌 in hours can be shown to
have the following PDF
1
𝑦 0<𝑦≤4
20
𝑓(𝑌 = 𝑦) = 1
(10 − 𝑦) 4 < 𝑦 ≤ 10
30
{ 0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
a. What is the probability that total transit time is at most 6 hours?
b. What is the probability that the transit time is either less than 3 hours or more than 7 hours?
c. What is the expected total transit time for travellers going from Bangladesh to Vietnam?
d. Determine the standard deviation in the total transit time.
ASNWER:
4 1 61 1
a) 𝑓(𝑌 ≤ 6) = ∫0 𝑦 𝑑𝑦 + ∫4 − 30 𝑦 𝑑𝑦
20 3
1 𝑦2 1 1 𝑦2
= × [ 2 ] 40 + 3 × [𝑦] 64 − 30 × [ 2 ] 64
20
11
= = 0.733
15
3 1 10 1 1
b) 𝑓(𝑌 < 3 ) + 𝑓(𝑌 > 7) = ∫0 𝑦 𝑑𝑦 + ∫7 − 30 𝑦 𝑑𝑦
20 3
1 𝑦2 1 1 𝑦2
= × [ 2 ] 30 + 3 × [𝑦] 10
7
− 30 × [ 2 ] 10
7
20
3
= = 0.375
8
4 1 10 1 1
c) 𝐸(𝑌) = ∫0 𝑦 × 20 𝑦 𝑑𝑦 + ∫4 𝑦 × (3 − 30 𝑦) 𝑑𝑦
1 𝑦3 4 1 𝑦2 1 𝑦3
= × [ ] + 3 × [ 2 ] 10 − 30 × [ 3 ] 10
20 3 0 4 4
14
= = 4.667
3
d) We Know,
4 1 10 1 1
𝐸(𝑌 2 ) = ∫0 𝑦2 × 𝑦 𝑑𝑦 + ∫4 𝑦2 × ( − 𝑦) 𝑑𝑦
20 3 30
1 𝑦4 1 𝑦3 1 𝑦4
= 20 × [ 4 ] 40 + 3 × [ 3 ] 10 [ ] 10
4 − 30 × 4 4
= 26
a. What is 𝑃(𝐴 = 𝐵), that is, the probability that the numbers of customers in the two lines
are identical?
b. What is the probability that the total number of customers in the two lines is exactly four?
At least four?
c. Determine the marginal PMF of 𝐴 and 𝐵 and then calculate the expected number of
customers in line at Food Cart B.
d. If at a given time there are 3 customers in line at Food cart A, what is the probability of 2
customers being in line at Food Cart B?
e. Are 𝐴 and 𝐵 independent random variables? Explain.
ANSWER:
a) 𝑃(𝐴 = 𝐵) = 𝑃(0,0) + 𝑃(1,1) + 𝑃(2,2) + 𝑃(3,3) = 0.09 + 0.01 + 0.1 + 0.1 = 0.3
b) 𝑃(𝐴 + 𝐵 = 4) = 𝑃(1,3) + P(3,1) + P(2,2) + P(4,0) = 0.04 + 0.03 + 0.1 + 0.01 = 0.18
Therefore,
𝑃(𝐴 + 𝐵 ≥ 4) = 𝑃(𝐴 + 𝐵 = 4) + 𝑃(𝐴 + 𝐵 > 4)
= 0.17 + P(4,1) + P(2,3) + P(4,2) + P(3,2) + P(3,3) + P(4,3) = 0.62
𝑃(𝐴=3,𝐵=2) 0.01 1
d) 𝑃(𝐵 = 2 |𝐴 = 3) = = = 14 = 0.0714
𝑃(𝐴=3) 0.14
5. Only 4 hearts, 6 clubs and 2 spades were found undamaged in a moth-eaten deck of ancient
playing cards. Suppose on every single turn, you randomly select a card from the set of these 12
cards, see it and put it back in the deck. Let’s say, you do this 6 times.
a. What is the probability that you get exactly 4 clubs after 6 turns?
b. What is the probability that you pick more than 3 clubs after 6 turns?
c. What is the mean number of hearts picked after 60 turns?
d. What is the standard deviation of the number of spades picked after 36 turns?
ANSWER:
6 1
a) 𝑝 = 𝑝𝑟𝑜𝑏𝑎𝑏𝑖𝑙𝑖𝑡𝑦 𝑜𝑓 𝑠𝑢𝑐𝑐𝑒𝑠𝑠 = 𝑃(𝑑𝑟𝑎𝑤𝑖𝑛𝑔 𝑎 𝑐𝑙𝑢𝑏) = 12 = 2
Total number of trials, 𝑛 = 6
𝐿𝑒𝑡, 𝑋 = 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑐𝑙𝑢𝑏𝑠 𝑑𝑟𝑎𝑤𝑛
14 1 6−4
∴ 𝑃(𝑋 = 4) = 6𝐶4 × 2 × (1 − 2) = 0.2344
b) Total number of trials, 𝑛 = 6
𝐿𝑒𝑡, 𝑋 = 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑐𝑙𝑢𝑏𝑠 𝑑𝑟𝑎𝑤𝑛
∴ 𝑃(𝑋 > 3) = 𝑃(𝑋 = 4) + 𝑃(𝑥 = 5) + 𝑃(𝑥 = 6)
14 1 6−4 15 1 6−5 16 1 6−6
= 6𝐶4 × 2 × (1 − 2) + 6𝐶5 × 2 × (1 − 2) + 6𝐶6 × 2 × (1 − 2) = 0.3438
4 1
c) Probability of drawing a heart, 𝑝 = = ; Total number of turns, 𝑛 = 60
12 3
1
Therefore, mean number of hearts drawn, 𝜇 = 𝐸(𝑋) = 𝑛𝑝 = 60 × 3 = 20
2 1
d) Probability of drawing a spade, 𝑝 = 12 = 6 ; and Total number of turns, 𝑛 = 36
Therefore, standard deviation of number of spades drawn,
1 5
𝜎 = √𝑛𝑝(1 − 𝑝) = √36 × 6 × 6 = √5
6. Suppose on average, Mymensingh registers 14 fatalities per week from the novel coronavirus.
a. What is the mean number of fatalities from the novel coronavirus in Mymensingh in a
month?
b. What is the probability that 40 fatalities from COVID-19 will be registered in Mymensingh in
the next two weeks ?
c. What is the probability of at most 9 deaths to be registered from COVID-19 in Mymensingh
in a week?
ANSWER: