BrightChamps Logo
Login
Creative Math Ideas Image
Live Math Learners Count Icon105 Learners

Last updated on June 18th, 2025

Math Whiteboard Illustration

Continuous Random Variable

Professor Greenline Explaining Math Concepts

A continuous random variable is a random variable that can have a range of values within a specific range. It is used to represent measurements like weight, height, and time. In this article, we will explore the concepts and properties of continuous random variables in detail.

Continuous Random Variable for UK Students
Professor Greenline from BrightChamps

What is a Continuous Random Variable?

A continuous random variable has an infinite number of possible values within a certain range. In statistics and probability theory, a continuous random variable plays a crucial role where the results are measured instead of being counted. It is considered continuous if its possible values can take any value within a specific interval. It is characterized by its possible values, which are infinite or uncountable. Also, using a function known as the probability density function, we can determine the probability that its value will fall inside a specific interval.

Struggling with Math?

Get 1:1 Coaching to Boost Grades Fast !

curious child
Professor Greenline from BrightChamps

What are the Properties of Continuous Random Variables?

To understand the probability distributions and conduct statistical analysis we need to comprehend the various properties of a continuous random variable. Several important properties distinguish the continuous random variable from the discrete random variable. They include: 

 

Probability density function

A probability density function f(x) defines a continuous random variable X. The relative probability for X to be a certain value x is represented by the PDF f(x). The PDF needs to meet two conditions. The first one is f(x) ≥ 0 for all  x. It means the probability density function (PDF) must always be non-negative but can be zero for some values. The next condition is that the total probability over all possible values of X must be 1, meaning the sum of all probability values must be 100% or 1. This is written as:
  

−∞    ∫     ∞f(x) dx = 1

 

Cumulative distribution function (CDF)

The cumulative distribution function (CDF), represented as F(x), shows the likelihood that a continuous random variable X will take a value that is less than or equal to x: 
F(x) = P (X ≤ x) =  −∞     ∫     ∞f (t) dt
The CDF is non-decreasing and continuous. The CDF approaches 0 as x moves closer to negative infinity.
lim ​F(x) = 0
x→∞
Likewise, the CDF approaches 1 as x moves closer to positive infinity.  
lim ​F(x) = 1
x→∞ 

 

Moment Generating Function (MGF)

The moment generating function (MGF) of a continuous random variable X is represented as Mx (t). It is defined as:
Mx (t) = E(etX) =  −∞    ∫      ∞etX f(x) dx
The MGF can be used to find all of the moments of X, including its mean and variance if it exists.

 

Characteristic Function

The characteristic function of a continuous random variable X is expressed as ϕX(t). It is the Fourier transform of the probability density function (PDF). 
ϕx(t) = E (e itX) =   −∞    ∫      ∞eitx f(x) dx
It determines the distribution of X in a unique way.

 

Mean and Variance of Continuous Random Variable

A continuous random variable X with PDF f(x) has the following expectation or mean:

E (X) =  −∞    ∫      ∞xf(x) dx

The formula represents the expected value of X. 

The variance of X measures the average of the squared deviations of the random variable from the mean. It is defined as:

 

Var (X) = E [(X - E (X) )2] =  −∞    ∫      ∞(x - μ)2 f(x) dx

Here, μ = E (X) is the mean. 

Where X's second moment is represented by E(X2) and it is denoted as:
E(X) = ∫ -∞ ∞ x2 f(x) dx

Professor Greenline from BrightChamps

Continuous Random Variable Formulas

The probabilities associated with a continuous random variable are described by the probability density function (PDF) and cumulative probability function (CDF). Here are some key formulas related to continuous random variables. 
PDF of continuous random variable
PDF of Continuous Random Variable is a function that shows the likelihood of the variable taking on diffrent values. It does not provide probabilities for specific values but rather for intervals. X is the continuous random variable, and the formula for the PDF, f (x), is:
f (x) = dF(x) / dx = F'(x)

Here, F(x) is the cumulative distribution function. 

CDF of continuous random variable
It describes the likelihood that a specific value, x, will be equal to or less than the random variable, X. CDF of a continuous random variable can be found by integrating the PDF. The formula is calculated between two points a and b. The formula for CDF of continuous random variable is: 
P (a < X ≤ b) = F (b) - F (a) =   a       b f (x) dx
The mean of continuous random variable
 The mean of the continuous random variable, X, is its expected value. It is calculated as a weighted average of all possible values. Also, each value is weighted according to the probability density function (PDF). The formula is:
E [X] = μ =    −∞         ∞ xf (x) dx
The variance of continuous random variable
It measures how much the values of X deviate from the mean. It is the expected value of the squared differences between the variable and its mean. The formula is given as follows:
Var (X) = σ2 =     −∞         ∞(x - μ)2 f(x)dx

Professor Greenline from BrightChamps

Difference Between Discrete Random Variable And Continuous Random Variable

A random experiment’s numerical outcome is called a random variable. The two types of random variables are discrete random variable and continuous random variable. 

 

  • A continuous random variable can have any value within a specified range whereas, a discrete random variable can only have particular and separate values. 

 

  • The possible values of a continuous random variable are infinite within a certain range, for example, all real values between 1 and 2.  Numbers like 1, 2, 3, and so on, which are finite or countably infinite, are the possible values of discrete random variables. 

 

  • The common examples of continuous random variables are time, distance, temperature, height, and weight. Whereas, the number of children, the number of flowers, and the results of a dice roll are examples of discrete random variables. 

 

  • A probability density function(PDF) describes a continuous random variable. In contrast, a probability mass function describes a discrete random variable. 

 

  • The probability of a single value of a continuous random variable is zero (P (X =x) = 0, whereas the probability of a single value of a discrete random variable is non-zero ( P (X = x) > 0.  

 

  • A continuous random variable is represented by a smooth curve, while a discrete random variable is depicted by bar graphs.   
Professor Greenline from BrightChamps

What are the Types of Continuous Random Variable?

We use continuous random variables to model situations that involve measurements. For example, if we want to know the possible amount of rainfall over a year or temperature on any given day. Following are the significant continuous random variables linked to certain probability distributions: 

 

Uniform random variable

A uniform random variable represents a uniform distribution, which describes events with equal chances of happening. A uniform random variable’s pdf is as follows: 

Otherwise, a ≤ x ≤ b 
Here, a and b are the lower and upper bounds of the distribution. 
 

Normal random variable

A normal random variable is a continuous random variable that is used to model a normal distribution. If  a normal distribution’s parameters are expressed as X ~ N (μ, σ2) then the following is the formula for the pdf:

Here, μ is the mean 
σ is the standard deviation 
σ2 is the variance
 

Exponential random variable

An exponential distribution is a continuous probability distribution used to model processes in which a specific number of events occur continuously and independently at a constant average rate λ, where λ ≥ 0. The exponential random variable follows an exponential distribution. The following is the pdf of an exponential random variable:

Professor Greenline from BrightChamps

Real-life Applications of Continuous Random Variable

Within a specified range, a continuous random variable can have an infinite number of values. This concept is widely used in situations where measurements are involved. Here are some real-world significance of continuous random variables. 

 

  • Weather forecasters employ the continuous random variable to model temperature, wind speed, rainfall, and humidity. For instance, the probability of rainfall within a certain range is calculated by using normal distribution. 

 

  • The values that fluctuate continuously like stock prices, interest rates, and exchange rates can be modeled by log-normal distribution. 

 

  • To assess the variations in production and manufacturing we can use the Gaussian distribution. Also, the variables like weight, length, or thickness of products follow a continuous distribution.

 

  • Continuous variables in transportation, including travel time, vehicle speed, and fuel consumption are used in urban planning and traffic management. 
Max Pointing Out Common Math Mistakes

Common Mistakes and How to Avoid Them on Continuous Random Variable

A continuous random variable is a random variable that can take any value within a specific range. Knowing the key properties and concepts of this variable helps us to solve various mathematical problems and it improves our problem-solving skills. Here are some of the common mistakes and their helpful solutions to avoid these common errors. 

Mistake 1

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Assuming a continuous random variable can take exact values

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Keep in mind that there is no chance of one precise value for continuous variables. Only probabilities over a range of values are found. For instance, the probability of a student’s height being exactly 160 cm is 0, but the probability of height between 160 cm and 165cm is a real value.

Mistake 2

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Believing that probabilities are merely numerical values

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Students should remember that the region under the probability density function (PDF) curve between two points is where probabilities originate. They should remember that probabilities are areas under the curve.

Mistake 3

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Confusion between PDF and CDF

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Learn each concept thoroughly. PDF indicates how likely a value is and it doesn’t provide a straight probability. The likelihood of obtaining a value that is less than or equal to a certain number is provided by CDF. For example, if the CDFat 10 is 0.7, it means there is a 70% chance the value will be less than or equal to 10.

Mistake 4

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Forgetting to check the total probability equals 1

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Students should check the total probability equals 1 or 100%. Otherwise, it will lead to incorrect conclusions. If the total probability is not 1, then there might be a mistake in the calculation.

Mistake 5

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Neglecting the value of mean

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Don’t forget that the mean is the average of numerous trials. It is not the value that occurs the most.  Sometimes students think that the mean is the value that occurs most in a distribution.

arrow-right

Level Up with a Math Certification!

2X Faster Learning (Grades 1-12)

curious child
Max from BrightChamps Saying "Hey"

Solved Examples of Continuous Random Variable

Ray, the Character from BrightChamps Explaining Math Concepts
Max, the Girl Character from BrightChamps

Problem 1

A random variable X has the probability density function (PDF): f (x) = k(5−x), 0 ≤ x ≤5. Find the value of k.

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

0.08

Explanation

A function must adhere to the following basic rule in order to be considered a valid probability density function (PDF): 

 −∞  ∫   ∞f(x) dx = 1

As we know, the given PDF is defined for 0 ≤ x ≤5, then the integral is taken over this range:
 

0  ∫   5f(x) dx = 1

 

Next, we can substitute f(x) = k (5 -x): 

 

So, now we have to factor out the constant k:

 

k     ∫     0         5(5 - x) dx = 1

 

Then, we have to integrate (5 - x) term by term: 
∫ (5 - x) dx = ∫ 5 dx - ∫ x dx 

 

Here, we have to use the basic integration rules:
∫ 5 dx = 5x
∫ x dx = x2 / 2

 

Hence, we get that,  
k         0         5(5 - x) dx = [ 5x - x2/2]50

 

Next, we evaluate the upper and lower limits: 
(5 (5) - 52 / 2 - (5 (0) - 02/ 2)
= (25 - 25 / 2) - (0 - 0)
= 25 - 12.5 = 12.5 

 

So, k (12.5) = 1
Next, we can solve for k:
k = 1 / 12.5 
k = 0.08 

 

Hence the value of k is 0.08.  

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 2

For a continuous random variable with PDF: f (x)=4x2, 0 ≤ x ≤ 1. Find the value of E (X).

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

1

Explanation

The mean is given by: 
E (X) =          0         1x f(x) dx 
Now, we can substitute the value f(x) = 4x2
E (X) =          0         1x (4x2) dx 
=          0         1x (4x3) dx 
Now, we can use the rule of integration: 
∫ xn dx = xn+ 1/ n +1 
E (X) = [4x4 / 4] 10
= [x4]10
= (14 - 04 )
= 1 - 0 =1
Hence, the value of E (X) is 1. 

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 3

Find the mean E(X) for the uniform distribution U (2,10).

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

6

Explanation

The formula for the mean of a uniform distribution U (a, b) is:

 E(X) = (a + b) / 2  

From U (2,10), we have a = 2 and b = 10, so:

 E(X) = (2 + 10) / 2

= 12 / 2 = 6

Hence, the mean is 6.

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 4

Find the median m such that P (X ≤ m) = 0.6 for the uniform distribution U (0, 5).

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

3

Explanation

Here, to find  the value of the median, we have to use the formula:

F(m) = m - a / b - a 

From U (0,5), this becomes: 

F(m) = m - 0 / 5 = m / 5 

Setting F(m) = 0.6 

m / 5 = 0.6 

Next, we can solve for m:

m = 0.6 × 5 

m = 3

The median is 3.

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 5

Find the median m such that P (X ≤ m) = 0.5 for the uniform distribution U (2, 8).

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

5

Explanation

F(m) = m - a / b - a 

From U (2,8), this becomes: 

F(m) = m - 2 / 8 - 2 = m - 2 / 6

Setting F(m) = 0.5:

m - 2 / 6 = 0.5 

Next, we can solve for m:

m - 2 = 0.5 × 6

m - 2 = 3 

m = 5 

So, the median is 5. 

Max from BrightChamps Praising Clear Math Explanations

Turn your child into a math star!

#1 Math Hack Schools Won't Teach!

curious child
Ray Thinking Deeply About Math Problems

FAQs on Continuous Random Variables

1.Define a continuous random variable.

Math FAQ Answers Dropdown Arrow

2.Differentiate a continuous random variable and a discrete random variable.

Math FAQ Answers Dropdown Arrow

3.What do you mean by probability density function (PDF)?

Math FAQ Answers Dropdown Arrow

4.Define cumulative distribution function (CDF).

Math FAQ Answers Dropdown Arrow

Struggling with Math?

Get 1:1 Coaching to Boost Grades Fast !

curious child
Math Teacher Background Image
Math Teacher Image

Jaipreet Kour Wazir

About the Author

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

Max, the Girl Character from BrightChamps

Fun Fact

: She compares datasets to puzzle games—the more you play with them, the clearer the picture becomes!

INDONESIA - Axa Tower 45th floor, JL prof. Dr Satrio Kav. 18, Kel. Karet Kuningan, Kec. Setiabudi, Kota Adm. Jakarta Selatan, Prov. DKI Jakarta
INDIA - H.No. 8-2-699/1, SyNo. 346, Rd No. 12, Banjara Hills, Hyderabad, Telangana - 500034
SINGAPORE - 60 Paya Lebar Road #05-16, Paya Lebar Square, Singapore (409051)
USA - 251, Little Falls Drive, Wilmington, Delaware 19808
VIETNAM (Office 1) - Hung Vuong Building, 670 Ba Thang Hai, ward 14, district 10, Ho Chi Minh City
VIETNAM (Office 2) - 143 Nguyễn Thị Thập, Khu đô thị Him Lam, Quận 7, Thành phố Hồ Chí Minh 700000, Vietnam
Dubai - BrightChamps, 8W building 5th Floor, DAFZ, Dubai, United Arab Emirates
UK - Ground floor, Redwood House, Brotherswood Court, Almondsbury Business Park, Bristol, BS32 4QW, United Kingdom