STA256H5F Summer2024 Term Test Solutions (1)
STA256H5F Summer2024 Term Test Solutions (1)
1. Suppose A and B are two events, where P (A) = 0.7, and P (B) = 0.5. Briefly justify
each part.
Solution:
P (A \ B) P (B) = 0.5
P (A [ B) = P (A) + P (B) P (A \ B)
Page 2 of 8
STA256H5F Friday, May 31st, 2024 Duration - 90 minutes
2. Suppose that of the students who take STA256, 60% study major Statistics, 30%
study Computer Science, and the remainder study major Mathematics. Of those
studying major Statistics, 40% are international students, while 30% of those studying
Computer Science and 20% of those studying major Mathematics are international
students. Suppose that we randomly select a student in STA256.
(a) (2 points) Find the probability that the student is an international student.
(b) (2 points) Find the probability that the student studies major Statistics, given
that the student is an international student.
Solution:
Let S be the event that a random student is studying major Statistics, C be the event
that the student is studying Computer Science, and M be the event that the student
is studying major Mathematics. Also, let I be the event that a random student is
an international student. P (S) = 0.6, P (C) = 0.3, and P (M ) = 0.1. Further,
P (I|S) = 0.4, P (I|C) = 0.3, and P (I|M ) = 0.2.
(a) By the law of total probability, the probability that a random student is an
international student becomes
(b) Following the Bayes theorem, and part (a), if the student is an international
student, the probaility that he/she studies major Statistics becomes
Page 3 of 8
STA256H5F Friday, May 31st, 2024 Duration - 90 minutes
Solution:
(b) From part (a), the probability that there is at least one female student in the
committee becomes
5 65
P (X 1) = 1 P (X = 0) = 1 = ⇡ 0.9286
70 70
Page 4 of 8
STA256H5F Friday, May 31st, 2024 Duration - 90 minutes
Solution:
(a) First note that sine x > 0, the support of Y = X 2 is (0, 1). The cdf of Y is
given by
p p
FY (y) = P (Y y) = P (X 2 y) = P ( y X y)
p p p p
= P (X y) + P (X < y) = P (X y) = FX ( y)
(b) From part (a) (the first method) and by U-substitution (u = x2 ) and integration
by part, we have
Z 1 Z 1 Z 1
2 2 3 x2
E(Y ) = E(X ) = x fX (x)dy = 2x e = ue u du = 1.
0 0 0
Second Method: From part (a) (the second method) and by integration by part
Z 1 Z 1 Z 1
y 1
E(Y ) = yfY (y)dy = y
ye = ye |0 + e y = 0 e y |10 = 1.
0 0 0
Page 5 of 8
STA256H5F Friday, May 31st, 2024 Duration - 90 minutes
Solution:
Recall that for a non-negative random variable X, and positive constant c, the
Markov inequality is P (X c) E(X)c
. From part (a),
2 1
E(X) = MX0 (t)|t=0 = | =
2 t=0
(2 t) 2
E(X) 1/2 1
P (X 2) = = .
2 2 4
Page 6 of 8