Summarize this article:
1299 LearnersLast updated on November 26, 2025

A probability density function (PDF) is like a game where you look at a graph and guess which heights on the curve have the highest chance of winning. This helps you see which numbers are more likely to appear.
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:
There are a few conditions that must be met when calculating the probability density function:


There are several important types of probability density functions (PDFs). The most common ones include:
Uniform distribution:
A uniform distribution represents outcomes that are equally likely within a specific interval.
It is also known as the rectangular distribution because its graph forms a rectangle. It is also known as the rectangular distribution because its graph forms a rectangle.
This distribution is written as U(a, b), where:
a = minimum value
b = maximum value
PDF formula for uniform distribution
For any value x between a and b:
\(f(x) = \frac{1}{b - a} \)
Binomial distribution:
The binomial distribution describes the probability of getting a certain number of successes in a fixed number of trials. It has two parameters.
PDF formula for binomial distribution
If:
Then,
\(P(x) = \binom{n}{x} p^x q^{\,n-x} \)
Normal distribution:
The normal distribution, also called as the Gaussian distribution, is symmetric and shaped like a bell curve. It is written as N(μ, σ2), where:
PDF formula for nominal distribution
\(f(x)=\frac{1}{\sigma\sqrt{2\pi}}\, e^{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2} \)
Standard normal distribution
When,
Mean μ = 0
Standard deviation σ = 1
The formula becomes:
\(f(x)=\frac{1}{2\pi} e^{-\frac{x^2}{2}} \)
Chi - square distribution:
A chi-square distribution represents the sum of squares of k independent standard normal variables. It is written as \(X^2(k)\), where k is the degrees of freedom.
PDF formula for chi - square distribution
For \(x>0\),
\(f(x) = \frac{1}{2^{k/2}\,\Gamma(k/2)} \, x^{(k/2)-1} e^{-x/2}, \quad x > 0 f(x) = 0, \quad x \le 0 \)
The main differences between a probability density function (PDF) and a cumulative distribution function (CDF) are summarized in the table below:
| Probability Density Function (PDF) | Cumulative Distribution Function (CDF) |
| Shows the likelihood of a random variable taking a value within a small range. | Shows the probability that a random variable is less than or equal to a specific value. |
| Only continuous random variables. | Both continuous and discrete random variables. |
| PDF = derivative of the CDF. | CDF = integral of the PDF. |
| Always non-negative, and the total area = 1. | Always increases; values always between 0 and 1. |
| For example, Normal PDF: \(\frac{1}{\sigma \sqrt{2\pi}} \, e^{-\frac{(x-\mu)^2}{2\sigma^2}} \) Exponential PDF: \(\lambda e^{-\lambda x} \) |
For example, Normal CDF: \(\frac{1}{2} \left( 1 + \operatorname{erf} \left( \frac{x-\mu}{\sigma \sqrt{2}} \right) \right) \) Exponential CDF: \(1 - e^{-\lambda x} \) |
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) = \frac{d}{dx}[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 \le x \le b) = F(b) - F(a) = \int_a^b f(x) \, dx \)
Another way to express the probability would be by using the CDF, which is:
\(P(a \le x \le 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.
Mean of Probability Density Function
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) = \mu = \int_{-\infty}^{\infty} x f(x) \, dx \)
Median of Probability Density Function
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:
\(\int_{-\infty}^{M} f(x) \, dx = \int_{M}^{\infty} f(x) \, dx = \frac{1}{2}
\)
The probability density function is a complex mathematical topic, and to better understand it, the following tips and tricks are provided.
When learning about probability density functions, students might often make mistakes. Here are a few mistakes that students make and ways to avoid them:
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:
The probability density function is: f(x) = x (x − 1), 0 ≤ x <3. Find P(1 < X < 2).
\(P(1 < X < 2) = \frac{5}{6} \)
\(P(1 < X < 2) = \int_{1}^{2} 12 \, x(x - 1) \, dx \)
= \(12 (x^2 - x) \, dx
\)
= [x\(x^3 \over 3\) - \(x^2 \over2\)]
=\(\left(\frac{8}{3} - 2\right) - \left(\frac{1}{3} - \frac{1}{2}\right)
\)
=\(\frac{5}{6}\).
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) = \int_{0.2}^{0.8} 2x \, dx \)
\(\int_{0.2}^{0.8} 2x \, dx = \left[ x^2 \right]_{0.2}^{0.8} = 0.8^2 - 0.2^2 = 0.64 - 0.04 = 0.60 \)
= \(0.64 - 0.04 = 0.60 \)
The PDF is f(x) = 3x^2, 0 ≤ x ≤ 1. Find E[X] (the mean).
\(E[X] = 34\)
\(E[X] = \int_0^1 x \cdot 3x^2 \, dx \)
= \(\int_0^1 3 \cdot 3 \, dx
\)
=\( [3 × 44] \)
= 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 − √0.5\).
Use the median formula \(\int_{-\infty}^{M} f(x) \, dx = \int_{M}^{\infty} f(x) \, dx = \frac{1}{2} \)
Substitute the values until you get the equation \(2m - m^2 = 0.5
\)
Use a quadratic formula and solve for m. The answer you get will be \(m = 1 − √0.5\)
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 \le X \le 1.5) = 1 \)
\(P\left(\int_{0.5}^{1.5} 1 \, dx\right) = x \)
= \(\int 1 \, dx = x
\)
= \(P(0.5 \le X \le 1.5) = \left[ x \right]_{0.5}^{1.5}
\)
=\( (1.5) - (0.5) = 1\)
= \(P(0.5 \le X \le 1.5) = 1 \)
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!






