Continuous Random Variable
Last Updated :
23 Jul, 2025
In statistics and probability theory, a continuous random variable is a type of variable that can take any value within a given range. Unlike discrete random variables, which can only assume specific, separate values (like the number of students in a class), continuous random variables can assume any value within an interval, making them ideal for modelling quantities that vary smoothly without jumps.
This makes them ideal for modelling a wide range of real-world phenomena, such as the height of individuals, the time taken to complete a task, or the amount of rainfall in a particular period. In this article, we will discuss the concept of "Continuous Random Variable" in detail including its examples and properties. We will also discuss how it is different from a discrete random variable.
What is a Continuous Random Variable?
Continuous random variable is a type of random variable that can take on an infinite number of possible values within a given range. These values are typically real numbers, and the range can be either bounded or unbounded.
Unlike discrete random variables, which have countable outcomes, continuous random variables are associated with measurable and uncountable outcomes.
Examples of Continuous Random Variables
Continuous random variables can take any value within a given range and are commonly used in various fields to model and analyze real-world phenomena. Here are some examples:
- Height of Individuals: The height of people within a population can vary continuously. Measurements can be as precise as the measurement tool allows, such as 172.3 cm, 172.33 cm, etc.
- Weight of Objects: The weight of objects, such as fruits, animals, or packages, is another example. For instance, the weight of an apple can be 150.5 grams, 150.55 grams, and so on.
- Temperature: Temperature can be measured to a high degree of precision, such as 23.1°C, 23.12°C, and so forth. It is a continuous variable because it can take any value within the thermometric scale.
- Time: The time it takes to complete a task or event, like running a marathon, is a continuous random variable. For instance, a marathon might be completed in 3 hours, 2 minutes, and 47.5 seconds.
- Distance: The distance between two points can vary continuously. For example, the distance someone runs can be 5.123 kilometers, 5.1234 kilometers, etc.
Properties of Continuous Random Variables
Continuous random variables have several key properties that distinguish them from discrete random variables and are crucial for understanding their behavior and applications.
Probability Density Function (PDF)
A continuous random variable X is described by a probability density function f(x). The PDF f(x) gives the relative likelihood of X taking on a specific value x.
The PDF must satisfy two conditions: f(x) ≥ 0 for all x: \int_{-\infty}^{\infty} f(x) \, dx = 1
Cumulative Distribution Function (CDF)
The cumulative distribution function F(x) of a continuous random variable X represents the probability that X takes a value less than or equal to x:
F(x) = P(X \leq x) = \int_{-\infty}^{x} f(t) \, dt
The CDF is non-decreasing and continuous, with: \lim_{x \to -\infty} F(x) = 0 \quad \text{and} \quad \lim_{x \to \infty} F(x) = 1.
Moment Generating Function (MGF)
The moment generating function of X, MX(t), is defined as:
M_X(t) = E(e^{tX}) = \int_{-\infty}^{\infty} e^{tx} \, f(x) \, dx
The MGF, if it exists, can be used to find all moments of X.
Characteristic Function
The characteristic function of X, ϕX(t), is the Fourier transform of the PDF:
\phi_X(t) = E(e^{itX}) = \int_{-\infty}^{\infty} e^{itx} \, f(x) \, dx
It uniquely determines the distribution ofX.
Mean and Variance of Continuous Random Variable
Expectation (Mean): The expectation or mean of a continuous random variable X with PDF f(x) is given by:
E(X) = \int_{-\infty}^{\infty} x \, f(x) \, dx
Variance: The variance of X measures the spread of the random variable around the mean and is given by:
\text{Var}(X) = E[(X - E(X))^2] = \int_{-\infty}^{\infty} (x - \mu)^2 \, f(x) \, dx
Where E(X2) is the second moment of X: E(X2) = \int_{-\infty}^{\infty} x^2 \, f(x) \, dx
Some other important properties are:
Probability of Intervals
- The probability that X lies within an interval [a, b] is given by the integral of the PDF over that interval: P(a ≤ X ≤ b) = \int_{a}^{b} f(x) \, dx
- The probability of X taking any specific value x is zero, i.e., P(X = x) = 0.
Moments
Moments are quantitative measures related to the shape of the distribution. The nth moment about the origin is given by:
E(X^n) = \int_{-\infty}^{\infty} x^n \, f(x) \, dx
The nth central moment (about the mean) is given by: E[(X - \mu)^n] = \int_{-\infty}^{\infty} (x - \mu)^n \, f(x) \, dx
Skewness and Kurtosis
Skewness measures the asymmetry of the probability distribution of a real-valued random variable about its mean:
\text{Skewness} = \frac{E[(X - \mu)^3]}{\sigma^3}
Kurtosis measures the "tailedness" of the probability distribution:
\text{Kurtosis} = \frac{E[(X - \mu)^4]}{\sigma^4}
Common Continuous Random Variables
Some of the common distributions where continuous random variable is used are:
- Uniform Distribution
- Normal Distribution
- Exponential Distribution
A continuous random variable X is uniformly distributed between a and b if its PDF is:
f(x) = \begin{cases} \frac{1}{b - a} & \text{for } a \leq x \leq b \\ 0 & \text{otherwise} \end{cases}
Properties
- Each value in the interval [a, b] is equally likely.
- The mean is \frac{a + b}{2}.
- The variance is \frac{(b - a)^2}{12}.
Normal Distribution
A continuous random variable X is said to follow a normal distribution with mean μ and variance σ2 if its PDF is given by:
f(x) = \frac{1}{\sigma \sqrt{2\pi}} \exp\left( -\frac{(x - \mu)^2}{2\sigma^2} \right)
Properties
- Symmetrical about the mean μ.
- The mean, median, and mode are all equal.
- The distribution is described by the parameters μ (mean) and σ (standard deviation).
Exponential Distribution
A continuous random variable X follows an exponential distribution with rate parameter λ if its PDF is:
f(x) = \begin{cases} \lambda e^{-\lambda x} & \text{for } x \geq 0 \\ 0 & \text{for } x < 0 \end{cases}
Properties
- Describes the time between events in a Poisson process.
- The mean is 1/λ.
- The variance is 1/λ2.
Note: Other then these there are some distributions where continuous random variable is useful are:
- Gamma Distribution
- Beta Distribution
- Chi-Square Distribution
- Student's t-Distribution
Continuous Random Variable vs Discrete Random Variable
The key differences between continuous and discrete random variables are listed in the following table:
| Feature | Continuous Random Variable | Discrete Random Variable |
|---|
| Definition | Can take any value within a given range. | Can take only specific, separate values. |
|---|
| Possible Values | Infinite within a given interval (e.g., all real numbers between 1 and 2) | Finite or countably infinite (e.g., integers like 1, 2, 3,...) |
|---|
| Examples | Height, weight, temperature, time, distance | Number of children, number of cars, results of a dice roll |
|---|
| Probability Distribution | Described by a Probability Density Function (PDF) | Described by a Probability Mass Function (PMF) |
|---|
| Probability Calculation | Probabilities are calculated over intervals | Probabilities are calculated for specific values |
|---|
| Probability of Single Value | Zero (e.g., P(X = x) = 0 | Non-zero (e.g., P(X = x) > 0) |
|---|
| Cumulative Distribution Function | CDF, F(x) = P(X ≤ x), is continuous | CDF is a step function |
|---|
| Visualization | Represented by smooth curves (e.g., PDF graph) | Represented by bar graphs |
|---|
| Summation vs. Integration | Uses integration to find probabilities (e.g., ∫abf(x) dx) | Uses summation to find probabilities (e.g., ∑k=ab P(X=k)) |
|---|
| Expectation (Mean) | E(X) = \int_{-\infty}^{\infty} x f(x) \, dx | E(X) = \sum_{x} x P(X = x) |
|---|
| Variance | \text{Var}(X) = \int_{-\infty}^{\infty} (x - \mu)^2 f(x) \, dx | \text{Var}(X) = \sum_{x} (x - \mu)^2 P(X = x) |
|---|
| Applications | Used in real-world measurements where values can vary continuously | Used in counting scenarios and where values are distinct |
|---|
Conclusion
In summary, continuous random variables are a key concept in statistics and probability theory, essential for modeling and analyzing data that can take on any value within a certain range. Unlike discrete random variables, which have distinct and countable values, continuous random variables are characterized by their ability to assume infinitely many values, making them ideal for representing real-world phenomena such as height, weight, time, and temperature.
Read More,
Continuous Random Variable
Similar Reads
Engineering Mathematics Tutorials Engineering mathematics is a vital component of the engineering discipline, offering the analytical tools and techniques necessary for solving complex problems across various fields. Whether you're designing a bridge, optimizing a manufacturing process, or developing algorithms for computer systems,
3 min read
Linear Algebra
MatricesMatrices are key concepts in mathematics, widely used in solving equations and problems in fields like physics and computer science. A matrix is simply a grid of numbers, and a determinant is a value calculated from a square matrix.Example: \begin{bmatrix} 6 & 9 \\ 5 & -4 \\ \end{bmatrix}_{2
3 min read
Row Echelon FormRow Echelon Form (REF) of a matrix simplifies solving systems of linear equations, understanding linear transformations, and working with matrix equations. A matrix is in Row Echelon form if it has the following properties:Zero Rows at the Bottom: If there are any rows that are completely filled wit
4 min read
Eigenvalues and EigenvectorsEigenvalues and eigenvectors are fundamental concepts in linear algebra, used in various applications such as matrix diagonalization, stability analysis and data analysis (e.g., PCA). They are associated with a square matrix and provide insights into its properties.Eigen value and Eigen vectorTable
10 min read
System of Linear EquationsA system of linear equations is a set of two or more linear equations involving the same variables. Each equation represents a straight line or a plane and the solution to the system is the set of values for the variables that satisfy all equations simultaneously.Here is simple example of system of
5 min read
Matrix DiagonalizationMatrix diagonalization is the process of reducing a square matrix into its diagonal form using a similarity transformation. This process is useful because diagonal matrices are easier to work with, especially when raising them to integer powers.Not all matrices are diagonalizable. A matrix is diagon
8 min read
LU DecompositionLU decomposition or factorization of a matrix is the factorization of a given square matrix into two triangular matrices, one upper triangular matrix and one lower triangular matrix, such that the product of these two matrices gives the original matrix. It is a fundamental technique in linear algebr
6 min read
Finding Inverse of a Square Matrix using Cayley Hamilton Theorem in MATLABMatrix is the set of numbers arranged in rows & columns in order to form a Rectangular array. Here, those numbers are called the entries or elements of that matrix. A Rectangular array of (m*n) numbers in the form of 'm' horizontal lines (rows) & 'n' vertical lines (called columns), is calle
4 min read
Sequence & Series
Calculus
Limits, Continuity and DifferentiabilityLimits, Continuity, and Differentiation are fundamental concepts in calculus. They are essential for analyzing and understanding function behavior and are crucial for solving real-world problems in physics, engineering, and economics.Table of ContentLimitsKey Characteristics of LimitsExample of Limi
10 min read
Cauchy's Mean Value TheoremCauchy's Mean Value theorem provides a relation between the change of two functions over a fixed interval with their derivative. It is a special case of Lagrange Mean Value Theorem. Cauchy's Mean Value theorem is also called the Extended Mean Value Theorem or the Second Mean Value Theorem.According
7 min read
Taylor SeriesA Taylor series represents a function as an infinite sum of terms, calculated from the values of its derivatives at a single point.Taylor series is a powerful mathematical tool used to approximate complex functions with an infinite sum of terms derived from the function's derivatives at a single poi
8 min read
Inverse functions and composition of functionsInverse Functions - In mathematics a function, a, is said to be an inverse of another, b, if given the output of b a returns the input value given to b. Additionally, this must hold true for every element in the domain co-domain(range) of b. In other words, assuming x and y are constants, if b(x) =
3 min read
Definite Integral | Definition, Formula & How to CalculateA definite integral is an integral that calculates a fixed value for the area under a curve between two specified limits. The resulting value represents the sum of all infinitesimal quantities within these boundaries. i.e. if we integrate any function within a fixed interval it is called a Definite
8 min read
Application of Derivative - Maxima and MinimaDerivatives have many applications, like finding rate of change, approximation, maxima/minima and tangent. In this section, we focus on their use in finding maxima and minima.Note: If f(x) is a continuous function, then for every continuous function on a closed interval has a maximum and a minimum v
6 min read
Probability & Statistics
Mean, Variance and Standard DeviationMean, Variance and Standard Deviation are fundamental concepts in statistics and engineering mathematics, essential for analyzing and interpreting data. These measures provide insights into data's central tendency, dispersion, and spread, which are crucial for making informed decisions in various en
10 min read
Conditional ProbabilityConditional probability defines the probability of an event occurring based on a given condition or prior knowledge of another event. It is the likelihood of an event occurring, given that another event has already occurred. In probability, this is denoted as A given B, expressed as P(A | B), indica
12 min read
Bayes' TheoremBayes' Theorem is a mathematical formula used to determine the conditional probability of an event based on prior knowledge and new evidence. It adjusts probabilities when new information comes in and helps make better decisions in uncertain situations.Bayes' Theorem helps us update probabilities ba
13 min read
Probability Distribution - Function, Formula, TableA probability distribution is a mathematical function or rule that describes how the probabilities of different outcomes are assigned to the possible values of a random variable. It provides a way of modeling the likelihood of each outcome in a random experiment.While a Frequency Distribution shows
13 min read
Covariance and CorrelationCovariance and correlation are the two key concepts in Statistics that help us analyze the relationship between two variables. Covariance measures how two variables change together, indicating whether they move in the same or opposite directions. Relationship between Independent and dependent variab
6 min read
Practice Questions