• NEET
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • JEE
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • Class 6-10
      • Class 6th
      • Class 7th
      • Class 8th
      • Class 9th
      • Class 10th
    • View All Options
      • Online Courses
      • Distance Learning
      • Hindi Medium Courses
      • International Olympiad
    • NEET
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • JEE (Main+Advanced)
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • JEE Main
      • Class 11th
      • Class 12th
      • Class 12th Plus
  • Classroom
    • NEET
      • 2025
      • 2024
      • 2023
      • 2022
    • JEE
      • 2025
      • 2024
      • 2023
      • 2022
    • Class 6-10
    • JEE Main
      • Previous Year Papers
      • Sample Papers
      • Result
      • Analysis
      • Syllabus
      • Exam Date
    • JEE Advanced
      • Previous Year Papers
      • Sample Papers
      • Mock Test
      • Result
      • Analysis
      • Syllabus
      • Exam Date
    • NEET
      • Previous Year Papers
      • Sample Papers
      • Mock Test
      • Result
      • Analysis
      • Syllabus
      • Exam Date
      • College Predictor
      • Counselling
    • NCERT Solutions
      • Class 6
      • Class 7
      • Class 8
      • Class 9
      • Class 10
      • Class 11
      • Class 12
    • CBSE
      • Notes
      • Sample Papers
      • Question Papers
    • Olympiad
      • NSO
      • IMO
      • NMTC
  • NEW
    • TALLENTEX
    • AOSAT
  • ALLEN E-Store
    • ALLEN for Schools
    • About ALLEN
    • Blogs
    • News
    • Careers
    • Request a call back
    • Book home demo
Home
JEE Maths
Cumulative Distribution Function

Cumulative Distribution Function (CDF)

In the world of statistics and probability, the Cumulative Distribution Function (CDF) plays a pivotal role in understanding how random variables behave. Whether you're dealing with continuous or discrete variables, the CDF offers a comprehensive view of the probability distribution, helping us understand the likelihood of outcomes in a given scenario. This blog explores the CDF's definition, its relationship with probability density functions (PDF), and its application across various types of distributions, such as normal, uniform, and exponential.

1.0What is the Cumulative Distribution Function (CDF)?

The Cumulative Distribution Function (CDF) is a function that provides the probability that a random variable X will take a value less than or equal to a given number x. Simply put, it accumulates the probability of all outcomes up to a certain point. The CDF is defined for both discrete and continuous random variables.

In mathematical terms, for a continuous random variable X, the CDF is represented as:

F(x)=P(X≤x)=∫−∞x​f(t)dt

Where:

  • F(x) is the CDF of the random variable X,
  • P(X≤x) is the probability that the random variable X is less than or equal to x,
  • f(t) is the probability density function (PDF) of the random variable X,
  • The integral computes the total area under the PDF curve from −∞ to x.

The CDF increases monotonically from 0 to 1, meaning that as x increases, the probability of X ≤ x either stays the same or increases.

2.0The Relationship Between the CDF and Probability Density Function (PDF)

For continuous random variables, the Cumulative Distribution Function is directly related to the probability density function (PDF). The PDF describes the likelihood of a random variable taking a specific value, while the CDF accumulates this probability over a range of values.

The key relationship is:

  • The CDF is the integral of the PDF.
  • Conversely, the PDF is the derivative of the CDF.

Thus, the formula to transition from a PDF to a CDF is: F(x)=∫∞x​f(t)dt

And the reverse, from CDF to PDF, is: f(x)=dxd​F(x)

3.0Cumulative Distribution Function for Different Types of Distributions

1. Cumulative Distribution Function of Normal Distribution

The Normal Distribution (or Gaussian Distribution) is one of the most commonly encountered distributions in probability and statistics. Its CDF is typically expressed in terms of the error function (erf), and its formula is complex, but it provides crucial insights for calculating probabilities associated with data that follows a bell-shaped curve.

For a normal distribution with mean μ and standard deviation σ, the CDF is:

F(x)=21​[1+erf(σ2​x−μ​)]

This formula allows you to calculate the probability that a value from a normal distribution is less than or equal to x.

2. Cumulative Distribution Function of Exponential Distribution

For an Exponential Distribution, which is often used to model the time between events in a Poisson process, the CDF is simpler. For a random variable X that follows an exponential distribution with rate parameter λ, the CDF is:

F(x)=1−e−kx

This CDF gives the probability that the random variable X is less than or equal to x, where λ is the rate parameter.

3. Cumulative Distribution Function of Uniform Distribution

The Uniform Distribution is a simple and intuitive distribution where all outcomes are equally likely within a certain interval. For a random variable X that follows a uniform distribution between a and b, the CDF is:

F(x)=b−ax−a​,for a≤x≤b

The CDF increases linearly from 0 to 1 as x moves from a to b.

4.0Special Cases of CDF

  1. Standard Normal Cumulative Distribution Function: The Standard Normal Distribution is a special case of the normal distribution where the mean μ = 0 and the standard deviation σ = 1. The CDF of the standard normal distribution is often denoted as Φ(x), and it is widely used in statistical analysis and hypothesis testing.
  2. Inverse Cumulative Distribution Function (Quantile Function): The inverse CDF, also known as the quantile function, is the function that returns the value of xx given a probability. In other words, it helps find the threshold value corresponding to a particular cumulative probability. If F(x) is the CDF, the inverse function F−1(p) gives the value xx such that: F−1(p) where F(x)=p. This is particularly useful in simulations, for example, when generating random variables with a given distribution.
  3. Joint Cumulative Distribution Function: In the case of multiple random variables, the joint CDF refers to the probability that two or more random variables simultaneously fall within certain ranges. For 2 random variables X and Y, the joint CDF is defined as: F(x,y)=P(X≤x,Y≤y). It provides the joint probability that X and Y both lie below certain thresholds.

5.0Solved Example of Cumulative Distribution Function (CDF)

Example 1: Suppose we have a normal distribution with a mean μ = 50 and a standard deviation σ = 10. We want to calculate the probability that a randomly selected value X from this distribution is less than or equal to 60. In other words, we want to find: P(X ≤ 60)  

Solution: 

Step 1: Write the Formula for the CDF of a Normal Distribution

For a normal distribution, the CDF is given by the following formula:

F(x)=21​[1+erf(σ2​x−μ​)]

Where:

  • x = 60 
  • μ = 50 
  • σ = 10 
  • erf is the error function, a special mathematical function used in the calculation of the normal CDF.

Step 2: Standardize the Value

To apply this formula, we first need to standardize the value of x=60x = 60 by converting it into a z-score:

z=σx−μ​=1060−50​=1

Now we have the standardized value z = 1.

Step 3: Use the Standard Normal CDF Formula

Now that we have the z-score, we can plug it into the standard normal distribution CDF formula: 

F(60)=21​[1+erf(2​1​)]

Using a calculator or a table for the error function, we find: erf(1/2​)≈0.6827

Now substitute this value into the formula:

F(60)=21​[1+0.6827]F(60)21​×1.6827=0.84135 

Step 4: Interpret the Result

The value 0.841350.84135 represents the probability that a randomly selected value from the normal distribution will be less than or equal to 60. Therefore: P(X≤60)≈0.84137

This means that there is an 84.14% chance that a randomly selected value from this normal distribution will not exceed than or equal to 60.


Example 2: Now, let’s consider a different example using a uniform distribution. Suppose we have a uniform distribution between 0 and 10, and we want to calculate the probability that a random variable X falls between 3 and 7. The probability we are interested in is:

Solution: 

Step 1: Write the Formula for the CDF of a Uniform Distribution

For a uniform distribution between a and b, the CDF is given by:

F(x)=b−ax−a​, for a≤x≤b

Where:

  • a = 0
  • b = 10
  • x = 3 and x = 7

Step 2: Calculate F(7) and F(3)

First, we calculate the CDF at x = 7: F(7)=10−07−0​=107​=0.7

Next, we calculate the CDF at x = 3: F(3)=10−03−0​=103​=0.3

Step 3: Calculate the Probability

Now, we can find the probability that X falls between 3 and 7 by subtracting the CDF values:

P(3≤X≤7)=F(7)−F(3)=0.7−0.3=0.4

Step 4: Interpret the Result

The value 0.40.4 means that there is a 40% chance that a randomly selected value from this uniform distribution will lie between 3 and 7.


Example 3: Let X be the outcome of a fair six-sided die. Write the CDF FX​(x) and compute

Solution

For a fair die, P(X=k)=61​for k=1,2,....,6. The CDF:

FX​(x)=P(X≤x)=⎩⎨⎧​0,6x​,1,​x<1,1≤x<6,x≥6.​

Compute P(2<X≤5)=P(X∈{3,4,5})=63​=21​


Example 4: Suppose CDF of an integer-valued XX is FX​(x)=⎩⎨⎧​0,0.2,0.5,1,​x<0,0≤x<1,1≤x<3,x≥3.​. Find P(X = 0), P(X = 1), P(X = 2).

Solution

For discrete distributions, mass at integer kk equals jump of CDF at k: 

P(X=k)=F(k)−limx→k−​F(x)

  • P(X=0)=F(0)−F(0−)=0.2−0=0.2.
  • P(X=1)=F(1)−F(1−)=0.5−0.2=0.3.
  • P(X=2)=F(2)−F(2−)=F(2)−0.5=0.5−0.5=0

Finally P(X≥3)=1−0.5=0.5 corresponds to mass at 3 (or mass spread on ≥3 depending on support); since jump at 3 is 1−0.5=0.5, P(X=3)=0.5.


Example 5: Let X be uniform on [2,5]. Write its CDF and PDF, then compute

Solution

Uniform [2,5]: PDF fx​(x)=5−21​=31​ for 2≤x≤5 CDF:

FX​(x)=P(X≤x)=⎩⎨⎧​0,3x−2​,1,​x<2,2≤x≤5,x>5.​

For continuous variable, P(3<X≤4.5)=F(4.5)−F(3)=34.5−2​−33−2​=32.5​−31​=31.5​=21​.


(Alternate: integrate PDF:  ∫34.5​31​dx=31.5​=21​.)


Example 6: CDF is given by FX​(x)=⎩⎨⎧​0,0.3,0.3+101​(x−1),1,​x<0,0≤x<1,1≤x<6,x≥6.​. Find

(a) P(X = 0), 

(b) density for 1 < x < 6, 

(c) P(0 < X < 2).

Solution

(a) Mass at 0 is jump at 0: P(X = 0) = 0.3 – 0 = 0.3.

(b) On 1 < x < 6, Fx​(x)=0.3+101​(x−1) Differentiate to get PDF: fX​(x)=dxd​FX​(x)=101​ for 1 < x < 6.

P(0<X<2)=F(2−)−F(0)=(0.3+101​(2−1))−0.3=0.1

(c) Check total mass: 0.3+∫16​101​dx=0.3+105​=0.3+0.5=0.8.

The remaining 0.2 sits as jump at 6: indeed 

F(6)−F(6−)=1−(0.3+105​)=0.2,

P(X=6)=0.2


Example 7: Let X have CDF FX​(x)=1−e−x for (exponential, λ=1). Find the median mm (value with P(X≤m)=0.5).

Solution

Set F(m)=0.5: 1−e−m=0.5⟹e−m=0.5⟹m=ln2.

So median m=ln2≈0.6931


Example 8: Let X∼Uniform[0,1]. Find CDF of Y=X2 and then PDF.

Solution

For FY​(y)=P(Y≤y)=P(X2≤y)=P(X≤y​)=y​. Since x≥0. Thus

FY​(y)=⎩⎨⎧​0,y​,1,​y<0,0≤y≤1,y>1.​

Differentiate for PDF on (0,1): fY​(y)=dyd​FY​(y)=2y​1​,0<y<1. (Check integral: ∫01​2y​1​dy=[y​]01​=1.)


Example 9: Let X1​,X2​,...,Xn​ be i.i.d. with CDF FX​(x). Let M=max{X1​,....,Xn​}. Find CDF of M.

Solution

FM​(x)=P(M≤x)=P(X1​≤x,…,Xn​≤x)=∏i=1n​P(Xi​≤x)=[FX​(x)]n.

Example numeric: if Xi​ uniform [0,1], for FM​(x)=xn, for 0≤x≤1


Example 10: CDF: FX​(x)=⎩⎨⎧​0,0.4,0.7,1,​x<0,0≤x<2,2≤x<3,x≥3.​

Compute P(0<X≤2),P(X=2),P(2<X≤3)

Solution

  • P(0<X≤2)=F(2)−F(0)=0.7−0.4=0.3 (Note F(2) denotes right-continuous value at 2.)
  • P(X = 2) = jump at =F(2)−limx→2−​F(x)=0.7−0.4=0.3. So all mass in (0,2] comes from the atom at 2 here.
  • P(2<X≤3)=F(3)−F(2)=1−0.7=0.3.

Check totals: P(X = 0) = 0.4 (mass at 0), P(X = 2) = 0.3, P(2)=0.3 at 3? Actually mass at 3 is 1-0.7=0.3. Total 0.4 + 0.3 + 0.3 = 1.


Example 11: Let discrete nonnegative integer X have CDF F(k)=1−(1/2)k for integers k≥1. Find PMF and E[X].

Solution

First obtain PMF: for integer k≥1

P(X=k)=F(k)−F(k−1).

P(X=k)=(1−(21​)k)−(1−(21​)k−1)=(21​)k−1−(21​)k=(21​)k(2−1)=(21​)k

So P(X=k)=Z−k for . (Check sum: ∑k=1∞​2−k=1.)

Compute expectation:

E[X]=∑k=1∞​k2−k

Use known sum: ∑k=1∞​krk=(1−r)2r​ for ∣r∣<1. Here r=21​ but note the exponent is k with coefficient 2−k so  E[X]=∑k=1∞​k(21​)k=(1−21​)221​​=(1/2)221​​=1/41/2​=2.


Example 12: Suppose two random variables have CDFs Fx​(X)=1−e−x and FY​(x)=1−e−2x for x≥0. Which variable is stochastically larger (i.e., which has higher values on average)?

Solution

A variable U is stochastically larger than V if FU​(x)≤FV​(x) for all x (so mass is shifted to the right). For  x≥0, FX​(x)=1−e−x, FY​(x)=1−e−2x

Compare: e−x≥e−2x for x≥0 (since e−x decreases slower), so 1−e−x≤1−e−2x. Thus FX​(x)≤FY​(x) ⇒ X is stochastically larger than Y. Intuitively, X has mean 1, Y has mean 1/2.

6.0Sample Questions on Cumulative Distribution Function

1. What is the difference between a Cumulative Distribution Function and a Probability Density Function?

Ans: The Probability Density Function (PDF) describes the likelihood of the random variable taking specific values. The Cumulative Distribution Function (CDF), however, accumulates the probabilities and gives the cumulative probability up to a point. The CDF is the integral (or sum for discrete variables) of the PDF: So, while the PDF shows density, the CDF shows cumulative probability.

2. How do you calculate the CDF for discrete random variables?

Ans: For discrete random variables, the CDF is found by summing the probabilities of all values less than or equal to a given value x. If X takes values with probabilities P(X = xi), the CDF is: This gives the cumulative probability at or below each value.

3. How do you calculate the CDF for continuous random variables?

Ans: For continuous random variables, the CDF is the integral of the probability density function (PDF) from negative infinity to a given value xx. The CDF is computed as: where f(t) is the PDF of the random variable. This gives the total probability up to x.

Table of Contents


  • 1.0What is the Cumulative Distribution Function (CDF)?
  • 2.0The Relationship Between the CDF and Probability Density Function (PDF)
  • 3.0Cumulative Distribution Function for Different Types of Distributions
  • 4.0Special Cases of CDF
  • 5.0Solved Example of Cumulative Distribution Function (CDF)
  • 6.0Sample Questions on Cumulative Distribution Function

Frequently Asked Questions

The CDF of a random variable X is a function that gives the probability that X takes a value less than or equal to a specific value x. Mathematically, it’s expressed as: F(x) = P(X ≤ x) This function helps us understand the distribution of probabilities for a random variable up to a certain point.

If the CDF is constant over an interval, it indicates that the random variable has no probability of taking values within that interval. This is typically seen in discrete distributions or in cases where a random variable has no "spread" in that range.

Join ALLEN!

(Session 2025 - 26)


Choose class
Choose your goal
Preferred Mode
Choose State
  • About
    • About us
    • Blog
    • News
    • MyExam EduBlogs
    • Privacy policy
    • Public notice
    • Careers
    • Dhoni Inspires NEET Aspirants
    • Dhoni Inspires JEE Aspirants
  • Help & Support
    • Refund policy
    • Transfer policy
    • Terms & Conditions
    • Contact us
  • Popular goals
    • NEET Coaching
    • JEE Coaching
    • 6th to 10th
  • Courses
    • Online Courses
    • Distance Learning
    • Online Test Series
    • International Olympiads Online Course
    • NEET Test Series
    • JEE Test Series
    • JEE Main Test Series
  • Centers
    • Kota
    • Bangalore
    • Indore
    • Delhi
    • More centres
  • Exam information
    • JEE Main
    • JEE Advanced
    • NEET UG
    • CBSE
    • NCERT Solutions
    • Olympiad
    • NEET 2025 Results
    • NEET 2025 Answer Key
    • NEET College Predictor
    • NEET 2025 Counselling

ALLEN Career Institute Pvt. Ltd. © All Rights Reserved.

ISO