



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Probability 2 - Notes 7
Definition. A random variable X is said to be a continuous random variable if there is a function
fX (x) (the probability density function or p.d.f.) mapping the real line ℜ into [ 0 , ∞) such that
for any open interval (a, b), P(X ∈ (a, b)) = P(a < X < b) =
∫ (^) b
a fX^ (x)dx.
From the axioms of probability this gives:
(i)
∫ (^) ∞
−∞ fX^ (x)dx^ =^ 1.
(ii) The cumulative distribution function FX (x) = P(X ≤ x) =
∫ (^) x
−∞ fX^ (u)du.^ FX^ (x)^ is a monotone
increasing function of x with FX (−∞) = 0 and FX (∞) = 1.
(iii) P(X = x) = 0 for all real x.
From calculus, fX (x) =
dFX (x) dx
for all points for which the p.d.f. is continuous and hence the
c.d.f. is differentiable.
E[g(X)] =
∫ ∞
−∞
g(x) fX (x)dx
The raw moments are moments about the origin. The r
th raw moment is μr = E[X
r ]. Note that
μ 1 is just the mean μ.
The moment generating function (m.g.f.) MX (t) = E[e
tX ].
For a discrete random variable MX (t) = GX (e
t ).
For a continuous random variable MX (t) =
∫ ∞ −∞ e
tx fX (x)dx.
Properties of the M.G.F.
(i) If you expand MX (t) in a power series in t you obtain MX (t) = (^) ∑
∞ r= 0
μrtr r!
. So the m.g.f.
generates the raw moments.
(ii) μr = E[X
r ] = M
(r) X
( 0 ), where M
(r) X
(t) denotes the r
th derivative of MX (t) with respect to t.
(iii) The m.g.f. determines the distribution.
Other properties (similar to those for the p.g.f.) will be considered later once we have looked at
joint distributions.
Uniform Distribution. All intervals (within the support of the p.d.f.) of equal length have
equal probability of occurrence. Arises in simulation. Simulated values {u (^) j} from a uniform
distribution on ( 0 , 1 ) can be transformed to give simulated values {x (^) j} of a continuous r.v. X
with c.d.f. F by taking x (^) j = F
− 1 (u (^) j).
X ∼ U(a, b) if
fX (x) =
1 (b−a)
if a < x < b
0 otherwise
a+b 2
and Var(X) =
(b−a)^2 12
MX (t) =
e
bt −e
at
t(b−a)
. This exists for all real t.
Exponential Distribution. Used for the time till the first event if events occur randomly and
independently in time at constant rate. Used as a survival distribution for an item which remains
as ’good as new’ during its lifetime.
X ∼ Exp(θ) if
fX (x) =
θe
−θx if 0 < x < ∞
0 otherwise
1 θ
and Var(X) =
1 θ^2
MX (t) =
t θ
. This exists for t < θ.
Gamma Distribution. Exponential is special case. Used as a survival distribution. When
α = n, gives the time until the n
th event when events occur randomly and independently in time.
X ∼ Gamma(θ, α) if
fX (x) =
θ
α x
α− 1 e
−θx
Γ(α)
if 0 < x < ∞
0 otherwise
The Gamma function is defined for α > 0 by Γ(α) =
∫ (^) ∞
0 x
α− 1 e
−x dx. It is then simple to show
that the p.d.f. integrates to one by making a simple change of variable (y = θx) in the integral.
It is easily shown using integration by parts that Γ(α + 1 ) = αΓ(α). Therefore when n is a
positive integer Γ(n) = (n − 1 )!.
α θ
and Var(X) =
α θ^2
Theorem. Let the interval A be the support of the p.d.f. fX (x). If g is a 1:1 continuous map
from A to an interval B with differentiable inverse, then the r.v. Y = g(X) has p.d.f.
fY (y) = fX (g
− 1 (y))
dg
− 1 (y)
dy
Proof.This is easily shown using equivalent events. The function g(x) will either be (a) strictly
monotone increasing; or (b) strictly monotone decreasing. We consider each case separately.
Case (a)
FY (y) = P(Y ≤ y) = P(g(X) ≤ y) = P(X ≤ g
− 1 (y)) = FX (g
− 1 (y))
Differentiating and noting that
dg−^1 (y) dy
> 0 gives
fY (y) = fX (g
− 1 (y)) ×
dg
− 1 (y)
dy
= fX (g
− 1 (y))
dg
− 1 (y)
dy
Case (b)
FY (y) = P(Y ≤ y) = P(g(X) ≤ y) = P(X ≥ g
− 1 (y)) = 1 − FX (g
− 1 (y))
Differentiating and noting that
dg
− 1 (y) dy
< 0 gives
fY (y) = − fX (g
− 1 (y)) ×
dg
− 1 (y)
dy
= fX (g
− 1 (y))
dg
− 1 (y)
dy
Example X ∼ N(μ, σ
2 ). Let Y =
X−μ σ
. Then g
− 1 (y) = μ + σy. Therefore
dg−^1 (y) dy
= σ. Hence
fY (y) = fX (g
− 1 (y))
dg
− 1 (y)
dy
2 πσ
2
e
−y
2 / 2 × σ =
2 π
e
−y
2 / 2
The support for the p.d.f. X, (−∞, ∞), is mapped onto (−∞, ∞) so this is the support of the p.d.f.
for Y. Therefore Y ∼ N( 0 , 1 ).
Transformations which are not 1:1. You can still find the c.d.f. for the transformed variable
by writing FY (y) as an equivalent event in terms of X.
Example. X ∼ N( 0 , 1 ) and Y = X
2
. The support for the p.d.f. of Y is [ 0 , ∞). For y > 0,
FY (y) = P(X
2 ≤ y) = P(−
y ≤ X ≤
y) = FX (
y) − FX (−
y)
Differentiating with respect to y gives, for y > 0,
fY (y) = fX (
y)
y
− fX (−
y)
y
y
− 1 / 2 e
−y/ 2
π
This is just the p.d.f. for a χ
2
π because the constant
in the p.d.f. is determined by the function of y and the range (suppport of the p.d.f.) since the
p.d.f. integrates to one.
Note for the normal p.d.f.
Let A =
∫ (^) ∞
−∞ e
−z^2 / 2 dz. Note that A > 0. Then
∫ (^) ∞
−∞
∫ (^) ∞
−∞
e
−(x^2 +y^2 )/ 2 dxdy
Making the change to polar co-ordinates (Calculus 2) gives
∫ 2 π
0
∫ ∞
0
e
−r^2 / 2 rdrdθ = 2 π
Hence A =
2 π.