The cumulative distribution function provides a way to describe the distribution of the random variable. It represents the probability that a random variable takes a value less than or equal to a certain value. The CDF is a non-decreasing function that ranges from 0 to 1, capturing the entire probability distribution of the random variable.
Formula:
FX (x) = P ( X ≤ x)
For a continuous random variable:
F_X(x)=\int_{-\infty}^{x} f_X(t)\,dt For a discrete random variable:
F_X(x)=\sum_{t\leq x} P(X=t) where:
- FX (x) is the cumulative probability
- P denotes probability
- X is a random variable.
- FX(t) is the probability density function (PDF)
Graphical Representation
The graph of a CDF is a non-decreasing curve that starts at 0 and approaches 1 as the x increases. It is useful for visualizing the probability distribution of the random variable.

Properties
Monotonicity
The CDF is a non-decreasing function. This means that for any two values
Limits
As x approaches negative infinity the CDF approaches 0:
As x approaches positive infinity the CDF approaches 1:
Continuity
The CDF of a continuous random variable is a continuous function while the CDF of the discrete random variable has jumps or discontinuities at specific points.
Non-Negativity
The CDF is always non-negative i.e.
Method for Calculate
Derivation Method
Step 1.Identify the Distribution: The Determine whether the random variable follows a discrete or continuous distribution.
Step 2. Determine the PDF: For continuous distributions find the Probability Density Function (PDF) f(x).
Step 3. Integrate the PDF: The Integrate the PDF from the
-\infty to x to find the CDF:
F(x)=\int_{-\infty}^{x} f(t)\,dt Step 4.Sum the Probabilities: For discrete distributions sum the probabilities for the all values less than or equal to the x.
Using PDF to Find CDF
For continuous random variables the CDF F(x) is derived from the PDF f(x) by the integrating:
F(x) = \int_{-\infty}^{x} f_X(t) \, dt
This process accumulates the probability from the left up to the point x.
Types
Discrete Random Variable
A discrete CDF applies to a random variable that takes distinct, countable values.
F_X(x) = P(X \le x) = \sum_{x_k \le x} P(X = x_k)
Continuous Random Variable
For a continuous random variable X with the probability density function (PDF) f(x) the CDF is the integral of the PDF:
F_X(x) = \int_{-\infty}^{x} f_X(t)\,dt
Since the CDF is the integral of the PDF it is a continuous and differentiable function.
CDF vs PDF
Some of the common differences between CDF and PDF are listed in the following table:
| Aspect | Cumulative Distribution Function (CDF) | Probability Density Function (PDF) |
|---|---|---|
| Definition | Shows the probability that a random variable is less than or equal to a certain value. | Describes the probability of the random variable taking a specific value. |
| Representation | A running total of probabilities. | The likelihood of the random variable being exactly at a specific value. |
| Mathematical Expression | F(x) = P(X ≤ x) | f(x) such that f(x) ≥ 0 and |
| Value Range | Always non-decreasing and ranges from 0 to 1. | Can be any non-negative value but does not exceed 1. |
| Interpretation | CDF gives the cumulative probability up to a certain point. | PDF gives the relative likelihood for a continuous random variable to occur at a specific value. |
| Visualization | A continuous, non-decreasing curve. | A curve where the area under the curve represents probabilities. |
| Area Under Curve | Not applicable as it represents cumulative probability. | The total area under the PDF curve equals 1. |
| Usage | Used to find the probability that a random variable falls within a certain range. | Used to understand the distribution and likelihood of specific outcomes. |
| Derivative Relationship | The derivative of the CDF gives the PDF. | The integral of the PDF gives the CDF. |
When to Use CDF vs PDF?
- CDF: Use the CDF when we need to find the probability that a random variable is less than or equal to the specific value. It provides the cumulative probability up to the certain point.
- PDF: Use the PDF when you need to the find the probability density at a specific value. The PDF represents the rate of the change of the CDF and is useful for the calculating the probabilities over intervals.
Relationship Between CDF and PDF
For a continuous random variable X with the PDF f(x) the relationship between the CDF F(x) and PDF is given by:
f(x) = \frac{dF(x)}{dx}
This indicates that the PDF is the derivative of the CDF.

