STAT2372 Topic3 2020
STAT2372 Topic3 2020
2020
Topic 3
Continuous Random Variables
3.
Zb
P (a < X ≤ b) = fX (x) dx.
a
0.4
P(−1<X<2)
0.3
0.3
fX(x)
fX(x)
0.2
0.2
1
0.1
0.1
0.0
0.0
−2 0 2 4 −2 0 2 4
x x
Important:
• Probabilities are represented by areas under the pdf.
a b
P (X = a) = lim+ P (a ≤ X ≤ b)
b→a
= lim+ (b − a) = 0
b→a
• When b > 1, P (X ≤ b) = 1.
Properties of a cdf
• FX (−∞) = limx→−∞ P (X ≤ x) = 0.
• FX (∞) = limx→∞ P (X ≤ x) = 1.
• Let x2 ≥ x1 . Then FX (x2 ) ≥ FX (x1 ) .
Proof:
FX (x2 ) = P (X ≤ x2 )
= P ({X ≤ x1 } ∪ {x1 < X ≤ x2 }) .
FX (x2 ) ≥ FX (x1 ) .
FX (ℓ) = 0
FX (u) = 1
for a probability 0 < p < 1, and the quantile function returns the
minimum value of x for which the previous probability statement
holds.
If the probability distribution is continuous, then the quantile
function is
Q(p) = F −1 (p).
1.0
0.8
0.6
F(x)
0.4
0.2
0.0
0 1 2 3 4 5
1.0
0.8
0.6
F(x)
0.4
0.2
0.0
Now
FV (v) = P (V ≤ v)
= 1 − e−λv .
and so
1 − e−λw (1 + λw) ; w>0
FW (w) =
0 ; w≤0
Thus
λ2 we−λw ; w>0
fW (w) =
0 ; w ≤ 0.
• Generalisation: What is the pdf of the time until the kth event in
a Poisson process with parameter λ?
Thus
Z∞
−x ∞
Γ (2) = −xe 0
− − e−x dx
0
= [(−0) − (−0)] + Γ (1)
= 1.
Γ (α + 1) = αΓ (α)
Proof:
Z∞
Γ (α + 1) = xα e−x dx
0
Z∞
α −x
= −x d e
0
Z∞
α −x ∞ α−1 −x
=− x e 0
+ α x e dx
0
= 0 + αΓ (α) .
Γ (α) = (α − 1) Γ (α − 1)
= (α − 1) (α − 2) Γ (α − 2)
= ···
= (α − 1) (α − 2) · · · 1Γ (1)
= (α − 1)!
√
1
It can be shown that Γ = π. Let W = Wk be the time
2
until the occurrence of the k th event in a Poisson process with
1 − FW (w) = P (W > w)
0 or 1 or . . . or (k − 1) events
=P
occur in (0, w)
k−1 r
X e−λw (λw)
= .
r=0
r!
(Note that the kth event has to occur at a time > w.) Hence
k−1
X (λw)r
1 − e−λw
; w>0
FW (w) = r=0
r!
0 ; w≤0
α = 1, β = 5
α = 2, β = 5
α = 3, β = 5
0.15
fX(x)
0.10
0.05
0.00
0 5 10 15 20 25 30
x
• By definition,
Z ∞ Z ∞
Γ (α) Γ (β) = e−x xα−1 dx e−y y β−1 dy
0 0
Z ∞ Z ∞
= e−x xα−1 e−y y β−1 dy dx
0 0
• Hence
Γ (α) Γ (β) = Γ (α + β) B (α, β)
and
Γ (α) Γ (β)
B (α, β) = .
Γ (α + β)
• For the special case where α = β = 1/2, we obtain, since
• Now Z 1
−1/2
B (1/2, 1/2) = x−1/2 (1 − x) dx.
0
• We thus have
2
{Γ (1/2)} = π
Γ (α + β) xα−1 (1 − x)β−1
; x ∈ (0, 1)
= Γ (α) Γ (β)
0 ; elsewhere.
above is
Z ∞
1 √
2σ √ exp (−u) du = 2σΓ (1/2)
0 2u
√
= 2πσ 2 .
where
1 2
φ (z) = (2π)−1/2 e− 2 z .
µ = np
σ 2 = np (1 − p) .
Continuity Correction
11 12 13 14 15 16 17 18
x
• Now,
100 70 30 100 71 29
P (70 ≤ Y ≤ 72) = (0.6) (0.4) + (0.6) (0.4)
70 71
100 72 28
+ (0.6) (0.4)
72
≃ 0.0201824
x = seq(-0.5,2,0.1)
Fx = x^2
Fx[x<=0] = 0
Fx[x>1] = 1
plot(x,Fx,type="l",ylab="F(x)",main="Cumulative distribution
function",lwd=2)
1.0
0.8
0.6
F(x)
0.4
0.2
0.0