Solution Test2 Summer2021
Solution Test2 Summer2021
SOLUTIONS
Test 2
Duration: 60 Minutes
• This test contains 5 questions. Total points: 60 = 20 percent of your final mark.
• Answer ALL questions to get full credit. Do not skip steps in your solutions or fail to describe what you
are doing.
• Twenty additional minutes will be given at the end to upload your solutions on Crowdmark.
2
With regard to remote learning and online courses, UTM wishes to re-
mind students that they are expected to adhere to the Code of Behaviour
on Academic Matters regardless of the course delivery method. By of-
fering students the opportunity to learn remotely, UTM expects that stu-
dents will maintain the same academic honesty and integrity that they
would in a classroom setting. Potential academic offences in a digital
context include, but are not limited to: Remote assessments:
1. Accessing unauthorized resources (search engines, chat rooms,
Reddit, etc.) for assessments.
2. Using technological aids (e.g. software) beyond what is listed as
permitted in an assessment.
3. Posting test, essay, or exam questions to message boards or social
media.
4. Creating, accessing, and sharing assessment questions and answers
in virtual “course groups.”
5. Working collaboratively, in-person or online, with others on assess-
ments that are expected to be completed individually.
Question 1 (10 points). It was discovered that in a lengthy manuscript only 13.5% of pages contain no ty-
pos. Assume that the number of typos per page is a random variable having a particular Poisson distribution.
Step 1: Defining the random variable and specifying its distribution functions (3 points).
Let X be a random variable denoting the number of typos per page. Then, we have
λx e−λ
X ∼ Poisson(λ) =⇒ pX (x) =
x!
λ0 e−λ
P (X = 0) = 0.135 =⇒ = 0.135
0!
=⇒ e−λ = 0.135
=⇒ −λ = ln(0.135)
=⇒ λ = − ln(0.135)
=⇒ λ = 2.0025
Hence, the percentage of pages that have exactly one typo is:
2.0025 × e−2.0025
P (X = 1) = = 0.2703
1!
5
Question 2 (10 points). Suppose that the random variable X ∼ Geometric(θ), whose PMF is given by
pX (x) = (1 − θ)x θ, x = 0, 1, 2, . . . ,
for some parameter θ ∈ (0, 1). Prove the following memoryless property of the geometric distribution:
P (X ≥ k + j|X ≥ k) = P (X ≥ j),
P ({X ≥ k + j} ∩ {X ≥ k})
P (X ≥ k + j|X ≥ k) =
P (X ≥ k)
P (X ≥ k + j)
=
P (X ≥ k)
(1 − θ)k+j
=
(1 − θ)k
= (1 − θ)j
= P (X ≥ j)
P (X ≥ k + j|X ≥ k) = P (X ≥ j)
7
Question 3 (15 points = 5 + 5 + 5). Suppose that the random variable X ∼ N (0, σ 2 ), and consider a new
Hint: You might want to use the attached table to compute Φ(z) for different z values.
The range of the random variable X ∼ N (0, σ 2 ) contains all the real numbers. Thus, the range of the
d
g(x) = ex > 0
dx
for all −∞ < x < ∞. Hence, g(x) is injective (one-to-one) on R, which implies its invertibility.
X ln y ln y
FY (y) = P (Y ≤ y) = P (g(X) ≤ y) = P (X ≤ g −1 (y)) = P (X ≤ ln y) = P ( ≤ ) = Φ( )
σ σ σ
Part b) Computing P (1 < Y ≤ 2) for a given value of the scale parameter (5 points).
ln 2 ln 1
P (1 < Y ≤ 2) = P (Y ≤ 2)−P (Y < 1) = FY (2)−FY (1) = Φ −Φ = Φ (2 ln 2)−Φ (0)
1/2 1/2
Φ(0) = 0.5
Therefore, we get
a) Show that FX (x) is a valid CDF (of a certain random variable X).
c) For the random variable X, find the mode of its distribution which is defined as the value of x where the
a) Showing that the given function satisfies the conditions for being a CDF (5 points).
• All polynomials and exponential functions are continuous on R and in particular on [0, ∞). Also,
addition and product of two continuous functions are continuous. Thus, FX (x) is continuous, which
0
• Since FX (x) = xe−x ≥ 0 for all 0 ≤ x < ∞. So, FX (x) is non-decreasing on the given interval.
Therefore, FX (x) can be considered as a valid CDF for a certain random variable X since it satisfies all
0 d
fX (x) = FX (x) = (1 − (1 + x)e−x ) = −e−x + (1 + x) e−x = xe−x , x≥0
dx
Hence, (
xe−x , x ≥ 0,
fX (x) =
0 otherwise
To find the mode of fX (x), we first differentiate the given density function w.r.t. the variable x, which
yields:
0 d
fX (x) = (xe−x ) = e−x − xe−x = (1 − x) e−x , x≥0
dx
0
Thereafter, we find the root(s) of the equation fX (x) = 0 are obtained as follows:
0
fX (x) = 0 =⇒ (1 − x) e−x = 0 =⇒ x = 1
Hence, the density function fX (x) has only one critical point. Besides, for the second derivative of fX (x)
w.r.t. x, we have:
00 d 0 d
fX (x) = fX (x) = ((1 − x) e−x ) = −e−x − (1 − x) e−x = (x − 2) e−x ,
dx dx
00
for all x ≥ 0, which in turn implies that fX (1) = −e−1 < 0.
Therefore, the critical point x = 1 is the mode of fX (x) since we showed that the given density function
Question 5 (10 points). Suppose that the random variable X ∼ N (µ, σ 2 ), where parameters µ ∈ (−∞, ∞)
and σ > 0. Find the inflection points of the PDF of the normal distribution, which is given by:
(x − µ)2
1
fX (x) = √ exp − , −∞ < x < ∞.
2πσ 2σ 2
12
(x − µ)2
0 (x − µ) 1
fX (x) = − √ exp −
σ2 2πσ 2σ 2
(x − µ)
= − fX (x)
σ2
We know that the density function fX (x) is nonnegative, hence we can write:
(x − µ)2
1
f 00 X (x) = 0 =⇒ − fX (x) = 0
σ4 σ2
(x − µ)2 1
=⇒ − 2 =0
σ4 σ
=⇒ (x − µ)2 = σ 2
=⇒ |x − µ| = σ
=⇒ x = µ ± σ
x1 = µ + σ
and
x2 = µ − σ.
13