Lecture 4
Lecture 4
Example: Now let us look at the continuous case when the random variable
X can take continuous values. Suppose we choose a number at random from
[0, 1], and let us denote that number as X. In this case Ω = [0, 1], and X is
a random variable taking any values in [0, 1]. Since, it is assumed that the
number is chosen at random, it means for and 0 < a < b < 1,
P (a < X < b) = b − a.
1
function f (x), such that f (x) ≥ 0, and for all −∞ < a < b < ∞,
Z b
P (a < X < b) = f (x)dx,
a
then there exists a random variable X, such that for all −∞ < a < b < ∞,
Z b
P (a < X < b) = f (x)dx,
a
Note that the CDF can be defined both for the discrete and continuous
random variables. If X is a discrete random variable with the following
PMF
P (X = ai ) = pi ; i = 1, 2, 3 . . . ,
here ai ’s are arbitrary real numbers, and pi ’s satisfy the following continuous;
∞
X
pi ≥ 0, for all i, and pi = 1.
i=1
2
It is clear that the distribution function of a discrete random variable is a
step function, and it has jumps at a1 , a2 , . . ..
Example: Suppose X has the following PMF
1 1 1
P (X = −1) = , P (X = 0) = P (X = 1) = .
4 2 4
Then the CDF of X becomes
0 if x < −1
1
FX (x) = 4 if −1 ≤ x < 0
3
if 0 ≤ x < 1
4
1 if x≥1
It can be seen that FX (x) is a step function, and it has jumps at −1, 0, 1.
If X is a continuous random variable with PDF f (x), then the CDF of X
becomes Z x
FX (x) = f (u)du.
−∞
It is immediate that FX (x) is everywhere continuous.
Example: Suppose X is a continuous random variable with PDF
3
Now we will prove that FX (x) is right continuous for all x. Let an be a
sequence of real numbers and an ↓ a0 . Then let us consider the sets An =
∞
\
{X ∈ (−∞, an ]}, for n = 1, 2, . . .. Note that An = A0 = {X ∈ (−∞, a0 ]}.
n=1
Further,
∞
!
\
lim F (an ) = lim P (An ) = P An = P (A0 ) = F (a0 ).
n→∞ n→∞
n=1
On the other hand let bn be a sequence such that bn ↑ a0 , and if Bn = {X ∈
∞
[
(−∞, bn ]}, then Bn = B0 = {X ∈ (−∞, a0 )}. Hence,
n=1
∞
!
[
lim F (bn ) = lim P (Bn ) = P Bn = P (B0 ) = F (a0 −).
n→∞ n→∞
n=1
Therefore,
P (X = a0 ) = P (−∞ < X ≤ a0 ) − P (−∞ < X < a0 ) = F (a0 ) − F (a0 −).
From now on if a function F (x) defined on the whole real line and satisfy the
following properties
4
It is immediate that F (x) satisfies all the above properties, hence, it is a
proper CDF. It can be seen that it has jumps at 0 and 2. Here
1 1
P (X = 0) = F (0) − F (0−) = , P (X = 2) = F (2) − F (2−) = e−2 .
2 2
It is clear that F (x) is not a step function it is also not a continuous function.
This kind of CDF is called a mixture distribution. We would like to write
F (x) in the following form
F (x) = αFc (x) + (1 − α)Fd (x).
Here Fc (x) is a proper continuous CDF, Fd (x) is a proper discrete distribution
d
CDF and α is the mixing proportion. Let g(x) = F (x). Therefore,
dx
0 if x<0
1 −x
g(x) = e if 0 ≤ x < 2
2
0 if x≥2
Z x
Therefore, αFc (x) = g(u)du, and
−∞
0 if x<0
1 −x
αFc (x) = 2 (1 − e ) if 0 ≤ x < 2
1 −2
2 (1 − e ) if x ≥ 2.
1 1
Hence, α = (1 − e−2 ), (1 − α) = (1 + e−2 ) and
2 2
0 if x<0
1−e−x
Fc (x) = if 0 ≤ x < 2
1−e−2
1 if x ≥ 2.
Therefore, (1 − α)Fd (x) = F (x) − αFc (x), and
0 if x<0
1
(1 − α)Fd (x) = 2 if 0 ≤ x < 2
1 −2
2 (1 + e ) if x ≥ 2.
and
0 if x<0
1
Fd (x) = 1+e−2 if 0 ≤ x < 2
1 if x ≥ 2.