Probability Density Function - PDF - Distributions
Probability Density Function - PDF - Distributions
than the probability mass. The concept is very similar to mass density in physics: its unit is probability per unit length. To get a feeling for PDF,
consider a continuous random variable X and define the function f X (x) as follows (wherever the limit exists):
P (x < X ≤ x + Δ)
f X (x) = lim .
Δ→0
+
Δ
The function f X (x) gives us the probability density at point x. It is the limit of the probability of the interval (x, x + Δ] divided by the length of
the interval as the length of the interval goes to 0 . Remember that
P (x < X ≤ x + Δ) = F X (x + Δ) − F X (x).
F X (x + Δ) − F X (x)
f X (x) = lim
Δ→0 Δ
dF X (x)
′
= = F (x), if F X (x) is differentiable at x.
X
dx
Thus, we have the following definition for the PDF of continuous random variables:
Definition 4.2
Consider a continuous random variable X with an absolutely continuous CDF F X (x). The function f X (x) defined by
dF X (x)
′
f X (x) = = F (x), if F X (x) is differentiable at x
X
dx
Let us find the PDF of the uniform random variable X discussed in Example 4.1. This random variable is said to have U nif orm(a, b)
distribution. The CDF of X is given in Equation 4.1. By taking the derivative, we obtain
1
a < x < b
b−a
f X (x) = {
0 x < a or x > b
Note that the CDF is not differentiable at points a and b. Nevertheless, as we will discuss later on, this is not important. Figure 4.2 shows the PDF of
X. As we see, the value of the PDF is constant in the interval from a to b. That is why we say X is uniformly distributed over [a, b] .
https://www.probabilitycourse.com/chapter4/4_1_1_pdf.php 1/4
27/02/2024, 23:37 Probability Density Function | PDF | Distributions
Fig.4.2 - PDF for a continuous random variable uniformly distributed over [a, b] .
The uniform distribution is the simplest continuous random variable you can imagine. For other types of continuous random variables the PDF is non-
uniform. Note that for small values of δ we can write
P (x < X ≤ x + δ) ≈ f X (x)δ.
Thus, if f X (x1 ) > f X (x2 ) , we can say P (x1 < X ≤ x1 + δ) > P (x2 < X ≤ x2 + δ) , i.e., the value of X is more likely to be around
x1 than x2 . This is another way of interpreting the PDF.
Since the PDF is the derivative of the CDF, the CDF can be obtained from PDF by integration (assuming absolute continuity):
x
F X (x) = ∫ f X (u)du.
−∞
Also, we have
b
In particular, if we integrate over the entire real line, we must get 1 , i.e.,
∞
∫ f X (u)du = 1.
−∞
That is, the area under the PDF curve must be equal to one. We can see that this holds for the uniform distribution since the area under the curve in
Figure 4.2 is one. Note that f X (x) is density of probability, so it must be larger than or equal to zero, but it can be larger than 1 . Let us summarize
the properties of the PDF.
In the last item above, the set A must satisfy some mild conditions which are almost always satisfied in practice. An example of set A could be a
union of some disjoint intervals. For example, if you want to find P (X ∈ [0, 1] ∪ [3, 4]), you can write
1 4
Example 4.2
Let X be a continuous random variable with the following PDF
−x
ce x ≥ 0
f X (x) = {
0 otherwise
a. Find c.
b. Find the CDF of X, F X (x).
c. Find P (1 < X < 3).
Solution
a. To find c, we can use Property 2 above, in particular
∞
1 = ∫ f X (u)du
−∞
∞ −u
= ∫ ce du
0
∞
−x
= c[ − e ]
0
= c .
Thus,
−x
1 − e x ≥ 0
F X (x) = {
0 otherwise
c. We can find P (1 < X < 3) using either the CDF or the PDF. If we use the CDF, we have
−3 −1 −1 −3
P (1 < X < 3) = F X (3) − F X (1) = [1 − e ] − [1 − e ] = e − e .
3 −t
= ∫ e dt
1
−1 −3
= e − e .
Range
The range of a random variable X is the set of possible values of the random variable. If X is a continuous random variable, we can define the range
of X as the set of real numbers x for which the PDF is larger than zero, i.e,
The set RX defined here might not exactly show all possible values of X, but the difference is practically unimportant.
https://www.probabilitycourse.com/chapter4/4_1_1_pdf.php 3/4
27/02/2024, 23:37 Probability Density Function | PDF | Distributions
← previous
next →
https://www.probabilitycourse.com/chapter4/4_1_1_pdf.php 4/4