Random variables and their distributions: PMF, PDF and CDF, expectation and variance, the uniform distribution, the standard distribution family, and functions of a random variable, as GATE EC asks them.
A random variable assigns a number to each outcome of an experiment.
Discrete takes countable values with a probability mass function (PMF) :
Continuous has a probability density function (PDF) with
Key facts for continuous :
, so and give the same probability.
is a density, not a probability; it can exceed 1.
Finding the constant. Most GATE questions give up to a constant . Integrate over the support, set the result to 1, solve for . Example: on gives , so .
Discrete
Continuous
Describes
density
Normalise
sum
integral
Probability of an interval
add the masses
area under
2. Cumulative distribution function
The CDF is . It works for every random variable: discrete, continuous or mixed.
Properties (any valid CDF has all of them):
, with and .
is non-decreasing.
is right-continuous.
.
Links between CDF and PDF/PMF:
For a discrete , is a staircase; the jump at equals . A CDF with both a jump and a sloped part belongs to a mixed random variable, for example the output of a rectifier fed with a continuous signal.
To test whether a given function can be a CDF, check the limits at and monotonicity. To test a PDF, check non-negativity and unit area.
f(x) = 0.75x(2 − x) on [0, 2]: the shaded area is P(X ≤ 0.5) = 5/32; the CDF reaches 0.5 at the median x = 1
3. Expectation and variance
The mean (expected value):
For any function , (or the sum). You do not need the distribution of .
The variance measures spread:
The standard deviation is .
Rules:
: a shift does not change spread, and the sign of disappears.
always; only if and are independent (uncorrelated is enough).
Median : . Mode: the where the PMF or PDF is largest. For a symmetric unimodal PDF, mean = median = mode.
For symmetric densities, use symmetry for the mean before integrating.
4. The uniform distribution and the standard family
Continuous uniform on : on the interval, 0 outside. Probability is proportional to length: for .
Discrete uniform on (a fair die for ): each value has probability .
The standard distributions, with their own topics for details:
Distribution
PMF / PDF
Mean
Variance
Bernoulli()
Binomial()
Geometric(),
Poisson()
Discrete uniform
Uniform()
Exponential()
,
Normal()
The geometric and exponential distributions are memoryless: .
In EC, the uniform distribution models quantisation error (variance ) and the random phase of a carrier on .
5. Functions of a random variable
If , find the distribution of by one of two methods.
CDF method (always works). Write , turn it into an event on , and use . Differentiate for .
Monotone formula. If is strictly increasing or decreasing with inverse :
Linear case. gives . A uniform stays uniform and a normal stays normal.
Example (CDF method). , . For : . So is exponential with .
Non-monotone case. : , so both branches add:
If only a mean is asked, skip all this and use .
Formulas to remember
PDF normalisation
CDF
Interval probability
MeanUse for discrete
Variance
Linear transformation
Uniform (a, b)
Monotone transformation
Common mistakes
Treating a PDF value as a probability; only areas under the PDF are probabilities, and f(x) can exceed 1.
Forgetting to normalise before computing probabilities or moments when the PDF has an unknown constant.
Writing Var(aX + b) = a Var(X) + b; the shift drops out and the scale is squared.
Adding variances of dependent random variables as if they were independent.
Forgetting the Jacobian factor |dx/dy|, or one of the two branches, when finding the PDF of Y = g(X).
Using the mean when the question asks for the median; they differ for skewed distributions such as the exponential.
Worked examples
Try each step yourself, then reveal the working.
Example 1: Constant, probability, mean and variance from a PDF
numerical
has PDF for and 0 elsewhere. Find , , and .
Step 1: Normalise to find $k$.
Try it on paper first.
Example 2: Discrete PMF and a linear function
numerical
takes values 0, 1, 2, 3 with probabilities 0.1, 0.3, 0.4, 0.2. Find , , and the mean and variance of .
Step 1: Find $E[X]$.
Try it on paper first.
Example 3: Working from a CDF
numerical
has CDF for , for , and for . Find , the PDF and the median.
Step 1: Use $F(b) - F(a)$.
Try it on paper first.
Example 4: Uniform random variable and a linear map
numerical
is uniform on . Find its mean and variance, , and the distribution of .
Step 1: Mean and variance.
Try it on paper first.
Previous year questions
3 official GATE EC questions on this topic, newest first.
10 questions: up to 3 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 EC syllabus; being checked by a reviewer. Updated 2026-11-28. Spotted a mistake? Use Report an issue on any question, or contact us.