Professional Documents
Culture Documents
Q2 Ans
Q2 Ans
Al Nosedal.
University of Toronto.
Fall 2017
Forrest Gump.
x 1 2 3 4
p(x) 0.4 0.3 0.2 0.1
If x < 1, then
F (x) = P(X ≤ x) = 0 because X does not assume values that are
less than 1.
If 1 ≤ x < 2, then
F (x) = P(X ≤ x) = P(X = 1) = 0.4.
If 2 ≤ x < 3, then
F (x) = P(X ≤ x) = P(X = 1) + P(X = 2)
= 0.4 + 0.3 = 0.7.
If 3 ≤ x < 4, then
F (x) = P(X ≤ x) = P(X = 1) + P(X = 2) + P(X = 3)
= 0.4 + 0.3 + 0.2 = 0.9.
If 4 ≤ x < ∞, then
F (x) = P(X ≤ x)
= P(X = 1) + P(X = 2) + P(X = 3) + P(X = 4)
= 0.4 + 0.3 + 0.2 + 0.1 = 1.
1.0
●
● ●
0.8
● ●
0.6
P(X ≤ x)
0.4
● ●
0.2
0.0
−1 0 1 2 3 4 5 6
dF (y ) 0
f (y ) = = F (y )
dy
wherever the derivative exists, is called the probability density
function for the random variable Y .
R0 R2 R∞
−∞ 0dy +
R2 0 cydy + 2 0dy = 1
0R cydy = 1
2
c 0 ydy = 1
R2 1
0 ydy = c
2 2 02 1
2 − 2 = c
4 1
2 = c
1
Therefore, c = 2
If y < 0, then F (y ) = 0.
If 0 ≤ y < 2, then
Ry Ry y2
F (y ) = P(Y ≤ y ) = 0 2t dt = 1
2 0 tdt = 4 .
If y ≥ 2, then F (y ) = 1.
1.0
0.8
0.6
f(y)
0.4
0.2
0.0
−1 0 1 2 3
1.0
0.8
0.6
F(y)
0.4
0.2
0.0
−1 0 1 2 3
≤ 0,
0, y
y, 0 < y
< 2,
8
F (y ) = y2
16
, 2≤y < 4,
1, y ≥ 4.
0, y ≤ 0,
1
8 , 0 < y < 2,
f (y ) = y
, 2 ≤ y < 4,
8
0, y ≥ 4.
R∞ R∞
1. E (c) = −∞ cf (y )dy = c −∞ f (y )dy = c(1) = c
R∞
2. E [cg (Y )] = −∞ cg (y )f (y )dy
R∞
= c −∞ g (y )f (y )dy = cE [g (Y )]
R∞
3. E [g1 (Y ) + ... + gk (Y )] = −∞ [g1 (y ) + ... + gk (y )]f (y )dy
R∞ R∞
= −∞ g1 (y )f (y )dy + ... + −∞ gk (y )f (y )dy
= E [g1 (Y )] + ... + E [gk (Y )].
θ1 + θ 2 (θ2 − θ1 )2
µ = E (Y ) = and σ 2 = V (Y ) = .
2 12
0.07
0.06
0.05
● ●
0.04
f(x)
0.03
0.02
0.01
0.00
● ●
0.07
0.06
0.05
● ●
0.04
f(x)
0.03
0.02
0.01
0.00
● ●
0.07
0.06
0.05
● ●
0.04
f(x)
0.03
0.02
0.01
0.00
● ●
θ1 + θ 2
µ = E (Y ) =
2
120 + 140
E (Y ) = = 130 minutes.
2
(y − µ)2
1
f (y ) = √ exp − , − ∞ < y < ∞.
2πσ 2σ 2
Normal Distribution
mean=0 and standard deviation=1
0.4
0.3
0.2
0.1
0.0
-3 -2 -1 0 1 2 3
0.20
0.15
std. dev.= 2
std. dev.= 5
0.10
0.05
0.00
-15 -10 -5 0 5 10 15
0.20
0.15
mean = -5
mean = 5
0.10
0.05
0.00
-15 -10 -5 0 5 10 15
E (Y ) = µ and V (Y ) = σ 2 .
E (Z ) = 0 and V (Z ) = 1.
Z ∞
E (Z ) = zf (z)dz
−∞
Z ∞
1 −z 2 /2
= z √ e dz
−∞ 2π
Z ∞
1 2
= √ ze −z /2 dz
2π −∞
Z 0 Z ∞
1 −z 2 /2 −z 2 /2
= √ ze dz + ze dz
2π −∞ 0
Z ∞ Z ∞
1 −(−z)2 /2 −z 2 /2
= √ (−z)e dz + ze dz
2π 0 0
Z ∞ Z ∞
1 2 2
= √ − ze −z /2 dz + ze −z /2 dz = 0
2π 0 0
Z ∞
2
E (Z ) = z 2 f (z)dz
−∞
Z ∞
2 1 −z 2 /2
= z √ e dz
−∞ 2π
Z N
1 2
= √ limN→∞ z 2 e −z /2 dz
2π −N
Z N h
1 2
i
= √ limN→∞ z ze −z /2 dz
2π −N
Z N
1 2 −z 2 /2
E (Z 2 ) = √ limN→∞ −ze −z /2 |N −N + e dz
2π −N
Z ∞
1 2
= √ e −z /2 dz = 1.
2π −∞
Y −µ
Z=
σ
has the standard Normal distribution.
0.4
0.3
0.2
0.0778
0.1
0.0
z* = -1.42
-3 -2 -1 0 1 2 3
0.4
0.3
0.2
0.0778 0.9222
0.1
0.0
z* = -1.42
-3 -2 -1 0 1 2 3
0.4
0.3
0.2
0.9906
0.1
0.0094
0.0
z* = 2.35
−3 −2 −1 0 1 2 3
0.4
0.3
0.9906-0.0778 = 0.9128
0.2
0.1
0.0
z* = -1.42 z* = 2.35
-3 -2 -1 0 1 2 3
2. Use the table. Look in the body of our table for the entry closest
to 0.02. It is 0.0202. This is the entry corresponding to z∗ = 2.05.
So z∗ = 2.05 is the standardized value with area 0.02 to its right.
3. Unstandardize to transform the solution from Z back to the
original X scale. We know that the standardized value of the
unknown x∗ is z∗ = 2.05. So x∗ itself satisfies:
x∗ −100
15 = 2.05. Solving this equation for x gives:
x∗ = 100 + (2.05)(15) = 130.75. We see that a person must score
at least 130.75 to place in the highest 2%.
e −λt (λt)0
= e −λt .
0!
P(X ≤ x) = 1 − e −λx .
f (x) = λe −λx .
which is the density function of the exponential distribution with
λ = β1 .
µ = E (Y ) = β and σ 2 = V (Y ) = β 2 .
P(Y
R ∞ 1 >−y
2) = 0.0821
e /β dy = e −2/β
2 β
e −2/β = 0.0821 (solving for β)
−2
β = ln(0.0821) ≈ 0.8
E (Y ) = 0.8
R 1.7 1 −y /0.8
P(Y ≤ 1.7) = 0 0.8 e dy = 1 − e −1.7/0.8 = 0.8805
alpha=4, beta=1
0.6
f(y)
0.4
0.2
0.0
0 1 2 3 4 5 6 7
Z ∞
Γ(α) = −e −y y α−1 |∞
0 + e −y (α − 1)y α−2 dy
0
Z ∞
= (α − 1) y α−2 e −y dy
0
µ = E (Y ) = αβ and σ 2 = V (Y ) = αβ 2 .
R∞ y α−1 −y /β
E (Y ) = 0 y β α Γ(α) e dy
R ∞ y (α+1)−1 −y /β
= 0 β α Γ(α) e dy
β α+1 Γ(α+1) R ∞ y (α+1)−1 −y /β dy
= β α Γ(α) 0 β (α+1) Γ(α+1) e
Note that the last integral equals one (we are integrating the pdf
of a Gamma random variable with parameters α + 1 and β, over
its entire domain).
α+1
= β β αΓ(α+1)
Γ(α)
Since Γ(α + 1) = αΓ(α), we finally have that
E (Y ) = βαΓ(α)
Γ(α) = αβ.
ky 3 e −y /2 , 0 < y < ∞,
f (y ) =
0, elsewhere.
E (Y ) = αβ = (4)(2) = 8.
V (Y ) = αβ 2 = (4)(2)2 = 16.
p √
σ= V (Y ) = 16 = 4.
alpha=2, beta=2
alpha=1, beta=1
2.0
f(y)
1.0
0.0
α αβ
µ = E (Y ) = and σ 2 = V (Y ) = 2
.
α+β (α + β) (α + β + 1)
R1 Γ(α+β) α−1
E (Y ) = 0 y Γ(α)Γ(β) y (1 − y )β−1 dy
Γ(α+β) R 1 (α+1)−1
= Γ(α)Γ(β) 0 y (1 − y )β−1 dy
Γ(α+β)Γ(α+1)Γ(β) 1 Γ(α+β+1) (α+1)−1
− y )β−1 dy
R
= Γ(α)Γ(β)Γ(α+β+1) 0 Γ(α+1)Γ(β) y (1
Note that the last integral equals 1 (we are integrating the pdf of a
Beta random variable with parameters α + 1 and β over its entire
domain).
= Γ(α+β)Γ(α+1)Γ(β)
Γ(α)Γ(β)Γ(α+β+1)
Since Γ(α + β + 1) = (α + β)Γ(α + β) and Γ(α + 1) = αΓ(α)
Γ(α+β)αΓ(α)Γ(β) α
E (Y ) = Γ(α)Γ(β)(α+β)Γ(α+β) = α+β .
Finding V (Y ) is left as an exercise.
ky 3 (1 − y )2 , 0 ≤ y ≤ 1,
f (y ) =
0, elsewhere.
α
b. E (Y ) = α+β = 74 .
αβ 12 3
c. V (Y ) = (α+β)2 (α+β+1)
= (49)(8) = 98 .
Solution.
Easy! Right?
Γ(3)
f (y ) = y 1−1 (1 − y )2−1 = 2(1 − y ), 0 ≤ y ≤ 1.
Γ(1)Γ(2)
MY (t) = E (e tY ).
The moment-generating function is said to exist if there exists a
constant b > 0 such that MY (t) is finite for |t| ≤ b.
Let W = Y − µ.
MW (t) = E [e tW ]
= E [e (Y −µ)t ]
= E [e Yt e −µt ]
= e −µt E [e Yt ]
= e −µt MY (t)
2 2
From our Table, MY (t) = e µt+(t σ )/2 .
2 σ 2 )/2
Finally, MW (t) = e (t .
E (X )
P[X ≥ a] ≤ .
a
Z ∞
E [X ] = xf (x)dx
0
Z a Z ∞
= xf (x)dx + xf (x)dx
0 a
Z ∞
≥ xf (x)dx
Za ∞
≥ af (x)dx
a
Z ∞
= a f (x)dx
a
= aP[X ≥ a].
E [(Y − µ)2 ]
P{(Y − µ)2 ≥ k 2 σ 2 } ≤
k 2σ2
But since (Y − µ)2 ≥ k 2 σ 2 if and only if |Y − µ| ≥ kσ, the
preceding is equivalent to
E [(Y − µ)2 ] 1
P{|Y − µ| ≥ kσ} ≤ 2 2
= 2
k σ k
0.4
0.3
Roughly 68%
0.2
0.1
0.0
−3 −2 −1 0 1 2 3
0.4
0.3
Roughly 95%
0.2
0.1
0.0
−3 −2 −1 0 1 2 3
µ − 2σ 0.95 µ + 2σ
1
P(|X − µ| < 2σ) ≥ 1 − 22
1
P(|X − µ| < 2σ) ≥ 1 − 4
1
P(|X − µ| < 2σ) ≥ 1 − 4 = 0.75