Professional Documents
Culture Documents
Midterm_Exam Solution Spring 2019 2
Midterm_Exam Solution Spring 2019 2
Midterm_Exam Solution Spring 2019 2
INSTRUCTIONS
1. All writings must be on this booklet only.
Total / 35
STUDENT ID :_________________________________
Student ID:
Question 1: [6 Marks]
A lot of 50 balls contains 30 red balls, 15 green balls, and 5 blue balls. Suppose that two
balls are selected at random, without replacement, from the lot.
b) What is the probability that the second ball selected is red if the first selected ball is green? [2
Marks]
If the first selected ball is green, after that, a lot has 49 balls with 30 red balls, 14 green balls, and 5
blue balls.
30
𝑃(𝑅& |𝐺$ ) =
49
c) What is the probability that the second ball selected is blue? [2 Marks]
𝑃(𝐵& ) = 𝑃(𝐵& |𝑅$ )𝑃(𝑅$ ) + 𝑃(𝐵& |𝐵$ )𝑃(𝐵$ ) + 𝑃(𝐵& |𝐺$ )𝑃(𝐺$ )
5 4 5
𝑃(𝐵& |𝑅$ ) = , 𝑃(𝐵& |𝐵$ ) = , 𝑃(𝐵& |𝐺$ ) =
49 49 49
5 30 4 5 5 15 5
𝑃(𝐵& ) = ∗ + ∗ + ∗ =
49 50 49 50 49 50 50
Question 2: [7 Marks]
Errors in an experimental transmission channel are found when the transmission is checked by a
certifier that detects missing pulses. The number of errors found in eight bits byte is a random variable
with the following distribution.
0 𝑥<1
0.6 1 ≤ 𝑥 < 3
𝐹(𝑥) = 9
0.8 3 ≤ 𝑥 < 7
1 7≤𝑥
a) Determine the probability mass function for the above random variable. [1 Mark]
b) What is the probability that at least 5 bits are transmitted by error? [1 Mark]
Page 2/9
Student Name:
Student ID:
c) What is the probability that exactly 5 bits are transmitted by error? [1Mark]
𝑃(𝑋 = 5) = 0
d) Determine the mean and the variance of the random variable X. [2 Marks]
e) Consider the random variable Y=2X+3. Find the mean and variance of the random variable Y
[2 Marks]
Question 3: [6 Marks]
Heart failure is due to either natural occurrence (87%) or outside factors (13%). Assume that causes
of heart failure between individuals are independent.
a) Suppose that 20 patients will visit an emergency room with heart failure. What is the probability
that three or more individual have condition caused by outside factor? [2 Marks]
b) What is the probability that the third patient with heart failure who enters the emergency room the
first one due to outside factors? [2 Marks]
Geometric Distribution: 𝑝 = 0.13
𝑃(𝑌 = 3) = 0.87& × 0.13
c) Suppose that the fifth patient with hearth failure who enter the emergency room is due to natural
occurrence, what is the probability that the sixth patient with hearth failure who enter the
emergency room is due to outside factors? [2 Mark]
Patients are independent. Hence, probability that the sixth patient with hearth failure who enter the
emergency room is due to outside factors is 0.13.
Page 3/9
Student Name:
Student ID:
Question 4: [6 Marks]
Lifetime of a lamp in an overhead projector installed at QU is normally distributed random
variable X with mean of 8000 hours and standard deviation of 500.
(a) What is the probability that an overhead projector fails after 8750 hours?
(b) What is the lifetime x in hours such that 90% of projectors will exceed that?
𝑥 − 8000
𝑃(𝑋 > 𝑥) = 0.9 → 𝑃(𝑋 < 𝑥) = 0.1 → 𝑃 T𝑍 < U = 0.1
500
𝑥 − 8000
= −1.28 → 𝑥 = 7360
500
(c) Find the lifetime x such that 𝑃(−𝑥 < 𝑋 < 𝑥) = 0.94.
0.06
𝑃(−𝑥 < 𝑋 < 𝑥) = 0.94 → 𝑃(𝑋 < 𝑥) = 0.94 + = 0.97
2
𝑥 − 8000 𝑥 − 8000
𝑃 T𝑍 < U = 0.97 → = 1.89 → 𝑥 = 8945
500 500
Question 5: [5 Marks]
Assume that the flaws along a magnetic tape follow a Poisson distribution with a mean of 0.2
flaw per meter.
a) What is the probability that there are no flaws in 2 meters of a magnetic tape?
𝑃(𝑋 = 0) = 𝑒 PO.^
b) What is the probability that the first flaw occurs between 5 and 10 meters after the start of
the tape?
Exponential with 𝜆 = 0.2 𝑝𝑒𝑟 𝑚𝑒𝑡𝑒𝑟
$O
𝑃(5 < 𝑌 < 10) = _ 0.2𝑒 PO.&` 𝑑𝑦 = 𝑒 P$ − 𝑒 P&
c
Page 4/9
Student Name:
Student ID:
Page 5/9