0% found this document useful (0 votes)
16 views

Probability Density Function - PDF - Distributions

The document defines and explains the probability density function (PDF) for continuous random variables. The PDF gives the probability per unit of the random variable and is defined as the derivative of the cumulative distribution function (CDF). Key properties are that the PDF must be greater than or equal to 0, its total area under the curve must be 1, and probabilities can be calculated by integrating the PDF over intervals of interest. An example of a uniform PDF on the interval [a,b] is provided to illustrate these concepts.

Uploaded by

gibadew959
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Probability Density Function - PDF - Distributions

The document defines and explains the probability density function (PDF) for continuous random variables. The PDF gives the probability per unit of the random variable and is defined as the derivative of the cumulative distribution function (CDF). Key properties are that the PDF must be greater than or equal to 0, its total area under the curve must be 1, and probabilities can be calculated by integrating the PDF over intervals of interest. An example of a uniform PDF on the interval [a,b] is provided to illustrate these concepts.

Uploaded by

gibadew959
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

27/02/2024, 23:37 Probability Density Function | PDF | Distributions

4.1.1 Probability Density Function (PDF)


To determine the distribution of a discrete random variable we can either provide its PMF or CDF. For continuous random variables, the CDF is well-
defined so we can provide the CDF. However, the PMF does not work for continuous random variables, because for a continuous random variable
P (X = x) = 0 for all x ∈ R. Instead, we can usually define the probability density function (PDF). The PDF is the density of probability rather

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).

So, we conclude that

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

is called the probability density function (PDF) of X.

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

P (a < X ≤ b) = F X (b) − F X (a) = ∫ f X (u)du.


a

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.

Consider a continuous random variable X with PDF f X (x). We have

1. f X (x) ≥ 0 for all x ∈ R .


https://www.probabilitycourse.com/chapter4/4_1_1_pdf.php 2/4
27/02/2024, 23:37 Probability Density Function | PDF | Distributions

2. ∫−∞ f X (u)du = 1 .
b
3. P (a < X ≤ b) = F X (b) − F X (a) = ∫a f X (u)du.
4. More generally, for a set A , P (X ∈ A) = ∫A f X (u)du.

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

P (X ∈ [0, 1] ∪ [3, 4]) = ∫ f X (u)du + ∫ f X (u)du.


0 3

Let us look at an example to practice the above concepts.

Example 4.2
Let X be a continuous random variable with the following PDF
−x
ce x ≥ 0
f X (x) = {
0 otherwise

where c is a positive constant.

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, we must have c = 1 .


x
b. To find the CDF of X, we use F X (x) = ∫
−∞
f X (u)du , so for x < 0 , we obtain F X (x) = 0 . For x ≥ 0 , we have
x
−u −x
F X (x) = ∫ e du = 1 − e .
0

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 .

Equivalently, we can use the PDF. We have


3
P (1 < X < 3) = ∫ f X (t)dt
1

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,

RX = {x|f X (x) > 0}.

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 →

The print version of the book is available on Amazon.

Practical uncertainty: Useful Ideas in Decision-Making, Risk, Randomness, & AI

https://www.probabilitycourse.com/chapter4/4_1_1_pdf.php 4/4

You might also like