Lec 11 Probability Density Function PDF
Lec 11 Probability Density Function PDF
PDF fX(x )
Figure 3.2: Interpretation of the PDF
fX (x) as “probability mass per unit length”
around x. If δ is very small, the prob-
ability that X takes value in the inter-
val [x, x + δ] is the shaded area in the
figure, which is approximately equal to
x fX (x) · δ.
x +
We know that
P (x < X ≤ x + δ) = FX (x + δ) − FX (x).
We know that
P (x < X ≤ x + δ) = FX (x + δ) − FX (x).
Thus we get
FX (x + δ) − FX (x)
fX (x) = lim
δ→0 δ
dFX (x)
= = FX0 (x).
dx
if FX (x) is differentiable at x.
FX (x) fX (x)
1
1 b−a
a b x
a b x
CDF for a continuous RV uniformly distributed PDF for a continuous RV uniformly distributed
over [a, b]. over [a, b].
We also have
Z b
P (a < X ≤ b) = FX (b) − FX (a) = fX (u)du.
a
Properties of PDF
Consider a continuous random variable X with PDF fX (x). We have
1 fX (x) ≥ 0 for all x ∈ R (above the horizontal axis)
R∞
2 fX (u)du = P [−∞ < X < ∞] = 1. (area under the curve is 1)
−∞
Rb
Sec.≤3.1
P (a X ≤ Continuous
b) = FX (b) − FXVariables
(a) = and fX (u)du.
3
Random PDFs 3
a
PDF fX(x)
Sample Space
a b x
Event {a < X < b}
PDF fX(x)
Sample Space
a b x
Event {a < X < b}
give you a probability. In fact, you can have pdfs where the value fX (x) is
Graphically, this means that the entire area under the graph of the PDF must
Dr. Babar Mansoor EEE251 Probability Methods in Engineering 9 / 19
Continuous RV - PDF
Example
Example
Is the following functions pdf?
1 2
fX (x) = 2 − 2x if x ∈ [−1, 1]
0 elsewhere
Example
Example
Is the following functions pdf?
sin(x) if x ∈ [ π2 , π]
fX (x) =
0 elsewhere
Example
Example
Suppose that X is a continuous RV whose probability density function is
given by
C(4x − 2x2 ) for 0 < x < 2
fX (x) =
0 otherwise.
Example
Suppose that X is a continuous RV whose probability density function is
given by
C(4x − 2x2 ) for 0 < x < 2
fX (x) =
0 otherwise.
Example
Suppose that X is a continuous RV whose probability density function is
given by
C(4x − 2x2 ) for 0 < x < 2
fX (x) =
0 otherwise.
Example
Suppose that X is a continuous RV whose probability density function is
given by
C(4x − 2x2 ) for 0 < x < 2
fX (x) =
0 otherwise.
Sol:
Example
Suppose that X is a continuous RV whose probability density function is
given by
C(4x − 2x2 ) for 0 < x < 2
fX (x) =
0 otherwise.
Example
Suppose that X is a continuous RV whose probability density function is
given by
C(4x − 2x2 ) for 0 < x < 2
fX (x) =
0 otherwise.
Z2
C (4x − 2x2 )dx = 1
0
Example (Cont.)
Example (Cont.)
2x3 2
2
⇒ C 2x − =1
3 0
Example (Cont.)
2x3 2
2
⇒ C 2x − =1
3 0
3
⇒ C=
8
Example (Cont.)
2x3 2
2
⇒ C 2x − =1
3 0
3
⇒ C=
8
b.
Example (Cont.)
2x3 2
2
⇒ C 2x − =1
3 0
3
⇒ C=
8
b.
Z∞ Z2
3 1
P [X > 1] = fX (x)dx = (4x − 2x2 )dx =
8 2
1 1
dFX (x)
As we know that the PDF fX (x) = dx , therefore,
0 for x < 0
fX (x) =
λe−λx for x ≥ 0
Dr. Babar Mansoor EEE251 Probability Methods in Engineering 14 / 19
Continuous RV - PDF
Example
1
⇒ λ=
100
Example
Hence, the probability that a computer will function between 50 and 150 hours
before breaking down is given by
Z150
1 −x/100
P [50 < X < 150] = e dx ≈ 0.384
100
50
(b) Similarly,
Z100
1 −x/100
P [X < 100] = e dx ≈ 0.633
100
0
In other words, approximately 63.3 percent of the time, a computer will fail
before registering 100 hours of use.
Homework
Assume that X is a continuous random variable with the following PDF:
A(2x − x2 ) for 0 < x < 2
fX (x) =
0 otherwise
Homework
Consider the function
2x for 0 ≤ x ≤ b
fX (x) =
0 otherwise