Last updated on June 18th, 2025
Probability Density function (PDF) is an important concept in probability theory and statistics. It shows the likelihood that a value of a random variable will fall between a certain range of values. A probability density function represents the probability over a continuous range. In this topic, we are going to learn more about the probability density function and how to represent it in a graph.
The probability density function (PDF) in statistics describes how likely different outcomes are within a given range. We get the PDF from the cumulative distribution function (CDF) when it is differentiated. Both the cumulative distribution function and the probability density function (PDF) are used to describe the probability distribution of a continuous random variable.
In PDF, the percentage of the dataset’s distribution falling between two criteria is the probability. It is commonly used by financial analysts to know how returns are distributed so they can evaluate the risk and any expectation of investment prices and returns.
Some key takeaways of probability density function are:
Here are a few properties of probability density function that need to be kept in mind when learning about PDFs:
Struggling with Math?
Get 1:1 Coaching to Boost Grades Fast !
There are a few conditions that must be met when calculating the probability density function:
To calculate the probability density function of a continuous random variable, we use the following formula:
Let us take ‘x’ as the continuous random variable and F(x) as the cumulative distribution function (CDF) of x. So the formula for the PDF, f(x) will be:
f(x) = ddx[F(x)] = F'(x)
Now let us say you want to find the probability that X lies between a and b. Then the formula to be used is:
P (a ≤ x ≤ b) = F(b) - F(a) = ab f(x)dx
Another way to express the probability would be by using the CDF which is:
P (a ≤ x ≤ b) = F(b) - F(a)
The probability density function is represented graphically by plotting the function f(x) against the values of the random variable x. The below graph shows the probability of X being between two points a and b.
The graph usually looks like a bell curve and the probability for the random variable is the area under the curve. This area must be equal to 1.
The mean of PDF refers to the average value of the random variable. We call this mean the expected value and we denote it as μ or E(X), where X is the random variable.. We express the mean of the probability density function f(x) for the random variable x as:
E(X) =μ =-∞∞xf(x)dx
The value dividing the PDF graph into two halves is the median. If x = M is the median, the area under the curve from -∞ to M and ∞ to M are equal then the median value = ½. The median of the probability density function is expressed as:
-∞Mf(x)dx=M∞f(x)dx=12
Probability density functions are used in various fields where they use it to model and analyze data. Here are some of the real-world applications:
When learning about probability density functions, students might often make mistakes. Here are a few mistakes that students make and ways to avoid them:
Level Up with a Math Certification!
2X Faster Learning (Grades 1-12)
The probability density function is: f(x) = x (x − 1), 0 ≤ x <3. Find P(1 < X < 2).
P(1 < X < 2) = ⅚
P(1 < X < 2) = 12 x(x-1)dx
= 12 (x2-x)dx
= [x33 - x22]
= (83 - 2) - (13 - 12)
= 56
The probability density function is: f(x) = 2x, 0 ≤ x ≤ 1. Find P(0.2 < X < 0.8).
P(0.2<X<0.8)=0.60
P(0.2<X<0.8) = 0.20.8 2x dx
[x2]0.20.8
= 0.64 - 0.04 = 0.60
The PDF is f(x) = 3x2, 0 ≤ x ≤ 1. Find E[X] (the mean).
E[X] = 34
E[X] = 01 x × 3x2dx
= 01 3x3dx
= [3x44]01
= 34
The PDF is f(x) = 2 (1 − x), 0≤x≤1. Find the median m such that P(X ≤ m) = 0.5
m = 1 − 22
Use the median formula -∞Mf(x)dx=M∞f(x)dx=12
Substitute the values until you get the equation 2m - m2 = 0.5
Use a quadratic formula and solve for m. The answer you get will be m = 1 − 22
The probability density function of a random variable X is given by: f(x) = 1, 0 ≤ x ≤ 2. Find the probability that X lies between 0.5 and 1.5, i.e., P(0.5≤X≤1.5)
P(0.5≤X≤1.5)=1
P(0.5 ≤ X ≤ 1.5) = 0.51.5 1dx
= 1dx = x
= P(0.5 ≤ X ≤ 1.5) = [x]0.51.5
= (1.5) - (0.5) = 1
= P(0.5 ≤ X ≤ 1.5) = 1
Turn your child into a math star!
#1 Math Hack Schools Won't Teach!
Struggling with Math?
Get 1:1 Coaching to Boost Grades Fast !
Jaipreet Kour Wazir is a data wizard with over 5 years of expertise in simplifying complex data concepts. From crunching numbers to crafting insightful visualizations, she turns raw data into compelling stories. Her journey from analytics to education ref
: She compares datasets to puzzle games—the more you play with them, the clearer the picture becomes!