Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Random Variables Explained: Meaning, Types & Solved Questions

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon
SearchIcon
widget title icon
Latest Updates

Why Random Variables Matter in Probability & Statistics

Define Random Variable

A random variable is basically a mathematical postulate (rule) that allocates a numerical value to each outcome in a sample space. Random variables can either be a discrete random variable or continuous random variable. A random variable is said to be discrete when it assumes only particular values in an interval. Or else, it will be continuous. When X takes values 1, 2, 3, 4, 5, 6…, it is said to contain a discrete random variable.


Uses and Significance of Random Variable

As a function, a random variable is required to be computed, which enables probabilities to be allocated to a set of potential values. It is evident that the result is dependent upon some physical variables which are not foreseeable. Say, when we toss a fair coin, the ultimate outcome of occurring to be heads or tails will rely on the possible physical conditions. We are not able to foresee, which outcome will be noted. Although there are other probabilities like the coin could get lost or tampered, such contemplation is overlooked.


Types of Random Variables

There are mainly 2 types of random variables, as given below:

  1. Continuous Random Variable

  2. Discrete Random Variable


Random Variable In Probability

In probability, a real-valued function, described over the sample space of a random experiment, is known as a random variable. That is, the values of the random variable are in correspondence to the results of the random experiment. Random variables could either be continuous or discrete.


A random variable’s possible values may exhibit the possible results of an experiment, which is about to be carried out or the possible results of a preceding experiment whose existing value is not known. They may also theoretically define either the outcomes of an “objectively” random procedure (like rolling a die) or the “subjective” randomness that occurs as a consequence of insufficient knowledge of a quantity.


The domain of a random variable is a sample space, which is bespoke of an assemblage of possible outcomes from a random event. For example, when a coin is tossed, only two possible outcomes are addressed such as heads or tails.


Probability Distribution In Random Variable

A random variable and probability distribution can appear to be like:

  • Conceptual recording of outcomes as well as probabilities of the outcomes.

  • An experimental listing of outcomes linked with their distinguished relative frequencies.

  • A subjective listing of outcomes linked with their subjective probabilities.

 The probability of a random variable X that takes the values x is described as a probability function of X which is represented by f (x) = f (X = x)

A probability distribution always fulfills two conditions that are as given:

  • f(x)≥0

  • ∑f(x)=1

Important Probability Distributions

Following are the important probability distributions:

  • Binomial distribution

  • Bernoulli’s distribution

  • Exponential distribution

  • Normal distribution

  • Poisson distribution

Discrete Random Variable and Probability Distribution

Discrete probability distribution of a random variable X is a list of every possible value of X together with the probability that X gets hold of that value in one trial of the experiment. Each probability P(x) should be between 0 and 1 i.e.: 0≤P(x) ≤1. The sum of all the likely probabilities is 1: ∑P(x)=1.


Did You Know

  • Random Variables discrete or continuous can also be transformed, meaning that the value can be reassigned to another variable.

  • The transformation of random variable is actually incorporated to remap the number line from x to y

  • There is also a random variable that we call a geometric random variable

Solved Examples

Example:

Calculate the mean value for the continuous random variable, when assigned the function f(x) = x, 0 ≤ x ≤ 2.

Solution:

Given function: f(x) = x, 0 ≤ x ≤ 2

Using the formula to calculate the mean value: E(X) = \[\int_{-\infty}^{\infty}\] x f(x)dx

We get,

E(X) = \[\int_{0}^{2}\] xf(x) dx

E(X) = \[\int_{0}^{2}\] x. xdx

E(X) = \[\int_{-\infty}^{\infty}\] x\[^{2}\] dx

E(X)=(x³/3) \[_{0}^{2}\]

E(X)=(2³/3)−(0³/3)

E(X)=(8/3)−(0)

E(X)=8/3

Hence, we get the mean of the continuous random variable= E(X) = 8/3.

FAQs on Random Variables Explained: Meaning, Types & Solved Questions

1. What is a random variable in mathematics as per the CBSE Class 12 syllabus?

A random variable is a real-valued function whose domain is the sample space of a random experiment. In simpler terms, it's a variable whose value is a numerical outcome determined by chance. For instance, if you toss a coin twice, the sample space is {HH, HT, TH, TT}. A random variable X could be the 'number of heads', which can take values {0, 1, 2}.

2. What are the two main types of random variables? Give examples for each.

The two main types of random variables are discrete and continuous, both of which are important concepts for the 2025-26 board exams.

  • Discrete Random Variable: A variable that can only take a finite or countably infinite number of distinct values. For example, the number of 'sixes' you get when rolling a die three times (possible values are 0, 1, 2, 3).
  • Continuous Random Variable: A variable that can take any value within a given range. For example, the height of students in a class, which can be any value like 165.1 cm, 170.5 cm, etc., within a certain range.

3. What is the probability distribution of a random variable?

A probability distribution for a random variable is a description of the probabilities associated with each of its possible numerical outcomes. It can be presented as a table, formula, or graph. For a discrete random variable X, it lists all possible values x and their corresponding probabilities P(X=x). Two key properties are: (1) 0 ≤ P(x) ≤ 1 for any value x, and (2) the sum of all probabilities is 1 (ΣP(x) = 1).

4. What is the difference between a regular algebraic variable and a random variable?

The primary difference lies in their association with probability. An algebraic variable (like 'x' in x + 5 = 10) represents a fixed but unknown value that you solve for. A random variable, however, does not have a single fixed value. Instead, its value is the outcome of a random process, and it is defined by a probability distribution that describes the likelihood of each possible outcome.

5. How is the mean (or expected value) of a discrete random variable calculated and what does it represent?

The mean, or Expected Value E(X), of a discrete random variable X represents its long-term average outcome. It's a weighted average of all possible values, where the weights are their probabilities. To calculate it, you multiply each possible value of the variable by its probability and then sum all these products. The formula is: E(X) = µ = Σ [xᵢ * P(X=xᵢ)].

6. Why is variance important for a random variable, and how does it differ from the mean?

While the mean (µ) tells you the central value of a random variable's distribution, the variance (σ²) tells you how spread out or dispersed the values are from that mean. A low variance indicates that the outcomes are tightly clustered around the mean, implying less risk or uncertainty. A high variance means the outcomes are more spread out. It provides a crucial measure of the volatility or consistency of the random phenomenon.

7. When is a Binomial Distribution the appropriate model for a random variable?

A random variable can be modelled by a Binomial Distribution if it represents the number of successes in a fixed number of independent trials. The four key conditions for this are:

  • There is a fixed number of trials, denoted by 'n'.
  • Each trial has only two possible outcomes, termed 'success' and 'failure'.
  • The probability of success, 'p', remains constant for each trial.
  • All trials are independent of one another.
  • For example, the number of correct answers on a 10-question multiple-choice quiz (with 4 options each) by pure guessing follows a Binomial Distribution.

8. Can the expected value of a random variable be a number that the variable itself can never be?

Yes, this is a common and important concept. The expected value is a theoretical average, not necessarily a possible outcome. A classic example is rolling a single fair six-sided die. The possible outcomes are {1, 2, 3, 4, 5, 6}. The expected value is 3.5, which is a value you can never actually roll. It simply represents the average outcome if you were to roll the die many, many times.