Slide - 4 - 01 (Lecture 4.1 Probability Density Functions)
Slide - 4 - 01 (Lecture 4.1 Probability Density Functions)
More formally,
R R
A dx dx
P[{x ∈ A}] = R = A
Ω dx |Ω|
Z
1
= dx. (3)
A |Ω|
| {z }
equally important over Ω
Replace the constant function 1/|Ω| with fX (x). This will give us
Z
P[{x ∈ A}] = fX (x) dx. (4)
A | {z }
replace 1/|Ω|
Figure: [Left] A probability mass function (PMF) tells us the relative frequency of
a state when computing the probability. In this example, the “size” of A is
pX (x2 ) + pX (x3 ). [Right] A probability density function (PDF) is the infinitesimal
version of the PMF. Thus, the “size” of A is the integration over the PDF.
Example 1. Let fX (x) = 3x 2 with Ω = [0, 1]. Let A = [0, 0.5]. Then, the
probability P[{X ∈ A}] is
Z 0.5
1
P[0 ≤ X ≤ 0.5] = 3x 2 dx = .
0 8
Example 2. Let fX (x) = 1/|Ω| with Ω = [0, 5]. Let A = [3, 5]. Then, the
probability P[{X ∈ A}] is
Z 5 Z 5
1 1 2
P[3 ≤ X ≤ 5] = dx = dx = .
3 |Ω| 3 5 5
Yes.
fX (x) is not the probability of having X = x
fX (x) is the probability per unit length
Z x+δ
P[x ≤ X ≤ x + δ] = fX (x)dx ≈ fX (x) · δ. (6)
x
Example. Consider a random variable X with PDF fX (x) = 2√1 x for any
0 < x ≤ 1, and is 0 otherwise. We can show that fX (x) → ∞ as x → 0.
However, fX (x) remains a valid PDF because
∞ 1 1
√
Z Z
1
fX (x)dx = √ dx = x = 1.
−∞ 0 2 x 0
Remark. Since isolated points have zero measure in the continuous space,
the probability of an open interval (a, b) is exactly the same as the
probability of a closed interval:
P[1 ≤ X ≤ 2]
Z 2 Z ∞
2X
1
= fX (x)dx = δ(x − k)dx
1 1 k=1 2k
Z 2
1 1
= δ(x − 1) + δ(x − 2) + . . . dx
1 2 4
Z 2
1 2 1 2
Z Z
1
= δ(x − 1)dx + δ(x − 2)dx + δ(x − 3)dx + |{z}
...
2 1 4 1 8 1
| {z } | {z } | {z } =0
=1 =1 =0
1 1 3
= + = .
2 4 4
Intuition
Probability is a measure of the size of a set
Use length/area/volume to measure the size of a continuous set
fX (x) is the weight when calculating the size
Definition and properties
Probability per unit length
fX (x) ≥ 1 is okay
Connecting with PMF
PMF is a train of delta function c Stanley Chan 2020. All Rights Reserved.
19 / 20
Questions?