Random variables; discrete random variables and probability mass functions
What a random variable is, discrete random variables and their PMF and step CDF, expectation, LOTUS, linearity and variance, and the distribution of a function of a random variable.
A random variable (RV) is a function that assigns a real number to each outcome of an experiment: . Events about , such as or , are subsets of .
Example: roll two dice; = sum, = maximum, = number of sixes. All three are RVs on the same 36-outcome sample space.
Type
Values
Described by
Discrete
finite or countable list ()
PMF
Continuous
an interval; for each
PDF
Both types have a cumulative distribution function (CDF) , which is non-decreasing, right-continuous, and runs from 0 at to 1 at .
An indicator equals 1 if occurs and 0 otherwise; . Indicators turn counting questions into sums of simple RVs.
2. Probability mass function and CDF
The PMF of a discrete is . It must satisfy
GATE often gives a PMF with an unknown constant: use to find it. For on : gives .
The CDF of a discrete RV is a step function: . It jumps at each possible value by exactly and is flat in between.
Reading probabilities from a CDF:
(the jump at ).
.
; .
With integer values, . Watch strict versus non-strict inequalities: they matter for discrete RVs.
PMF p(x) = x/10 on {1, 2, 3, 4} and its step CDF: each jump equals the PMF value
3. Expectation, LOTUS and linearity
The expectation (mean) of a discrete RV is the probability-weighted average of its values:
LOTUS (law of the unconscious statistician): for any function ,
so you do not need the PMF of first.
Linearity: and for any , independent or not. With indicators this is powerful: the expected number of fixed points of a random permutation of items is .
But in general . For example and . For independent only, .
Tail formula for : .
4. Variance and functions of a discrete RV
Variance and SD:
exactly when is a constant (with probability 1).
PMF of : collect all that map to the same :
Example: uniform on and gives , , .
Geometric distribution (a common GATE PMF): the number of independent trials up to and including the first success, with success probability :
It is memoryless: .
Formulas to remember
PMF conditions
CDF of a discrete RV
Expectation
LOTUS
Variance
Linear transform
Tail formula takes values in
Geometric PMF
Common mistakes
Forgetting to check that PMF values are non-negative as well as adding to 1.
Assuming for a non-linear , such as or .
Reading as for a discrete RV; includes the mass at .
Thinking linearity of expectation needs independence; it does not (but does).
Building the PMF of without merging the values that give the same .
Worked examples
Try each step yourself, then reveal the working.
Example 1: Find the constant, the mean and the variance
numerical
for . Find , and .
Step 1: Use the fact that the PMF adds to 1.
Try it on paper first.
Example 2: PMF of the maximum of two dice
numerical
Two fair dice are rolled and is the larger value. Find the PMF of and .
Step 1: Use the CDF first: when is $M \le m$?
Try it on paper first.
Example 3: PMF of a function of $X$
numerical
is uniform on and . Find the PMF of and check by LOTUS.
Step 1: Group the $x$ values by their image.
Try it on paper first.
Example 4: Is $E[1/X]$ equal to $1/E[X]$?
conceptual
takes the values 1 and 3 with probability each. Compare with .
Step 1: Compute $1/E[X]$.
Try it on paper first.
Previous year questions
2 official GATE DA questions on this topic, newest first.
10 questions: up to 2 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.
Mark as mastered
Loading your progress…
My revision notes
Notes written by the GATEiit team against the official GATE DA syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.