The Wayback Machine - https://web.archive.org/web/20261028190524/https://www.geeksforgeeks.org/engineering-mathematics/cumulative-distribution-function/

Cumulative Distribution Function

Last Updated : 26 Oct, 2026

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.

Cumulative-Distribution-Function

Properties

Monotonicity

The CDF is a non-decreasing function. This means that for any two values x_1 and x_2 such that x_1 \leq x_2 the corresponding CDF values satisfy F(x_1) \leq F(x_2).

Limits

As x approaches negative infinity the CDF approaches 0:
\lim_{x\to-\infty} F_X(x)=0

As x approaches positive infinity the CDF approaches 1:
\lim_{x\to-\infty} F_X(x)=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. F(x) \geq 0 for the all x.

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:

AspectCumulative Distribution Function (CDF)Probability Density Function (PDF)
DefinitionShows 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.
RepresentationA running total of probabilities.The likelihood of the random variable being exactly at a specific value.
Mathematical ExpressionF(x) = P(X ≤ x)f(x) such that f(x) ≥ 0 and \int_{-\infty}^{\infty} f(x)dx = 1
Value RangeAlways non-decreasing and ranges from 0 to 1.Can be any non-negative value but does not exceed 1.
InterpretationCDF 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.
VisualizationA continuous, non-decreasing curve.A curve where the area under the curve represents probabilities.
Area Under CurveNot applicable as it represents cumulative probability.The total area under the PDF curve equals 1.
UsageUsed to find the probability that a random variable falls within a certain range.Used to understand the distribution and likelihood of specific outcomes.
Derivative RelationshipThe 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.

Practice Questions on Cumulative Distribution Functions

Comment