Skip to content
GATEiit

GATE EC · Engineering Mathematics

Probability distributions

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.

Before you start

This topic comes before: Binomial distribution, Entropy, Exponential distribution, Joint and conditional probability, Normal distribution, PCM, DPCM, Poisson distribution

Concept notes

1. Random variables, PMF and PDF

A random variable X assigns a number to each outcome of an experiment.

Discrete X takes countable values xi with a probability mass function (PMF) p(xi)=P(X=xi):

p(xi)≥0,∑ip(xi)=1

Continuous X has a probability density function (PDF) f(x) with

f(x)≥0,∫−∞∞f(x) dx=1,P(a≤X≤b)=∫abf(x) dx

Key facts for continuous X:

  • P(X=a)=0, so < and ≤ give the same probability.
  • f(x) is a density, not a probability; it can exceed 1.

Finding the constant. Most GATE questions give f up to a constant k. Integrate over the support, set the result to 1, solve for k. Example: f(x)=k(1−x) on [0,1] gives k/2=1, so k=2.

Discrete Continuous
Describes P(X=x) density f(x)
Normalise sum =1 integral =1
Probability of an interval add the masses area under f

2. Cumulative distribution function

The CDF is F(x)=P(X≤x). It works for every random variable: discrete, continuous or mixed.

Properties (any valid CDF has all of them):

  1. 0≤F(x)≤1, with F(−∞)=0 and F(∞)=1.
  2. F is non-decreasing.
  3. F is right-continuous.
  4. P(a<X≤b)=F(b)−F(a).

Links between CDF and PDF/PMF:

F(x)=∫−∞xf(t) dt,f(x)=dFdx

For a discrete X, F is a staircase; the jump at xi equals p(xi). 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.

xf(x)00.5120.755/32PDF: area = probabilityxF(x)10.5012CDF: median where F = 0.5
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):

E[X]=∑ixi p(xi)orE[X]=∫−∞∞xf(x) dx

For any function g, E[g(X)]=∫g(x)f(x) dx (or the sum). You do not need the distribution of g(X).

The variance measures spread:

Var⁡(X)=E[(X−μ)2]=E[X2]−(E[X])2

The standard deviation is σ=Var⁡(X).

Rules:

  • E[aX+b]=aE[X]+b
  • Var⁡(aX+b)=a2Var⁡(X): a shift does not change spread, and the sign of a disappears.
  • E[X+Y]=E[X]+E[Y] always; Var⁡(X+Y)=Var⁡(X)+Var⁡(Y) only if X and Y are independent (uncorrelated is enough).

Median m: F(m)=0.5. Mode: the x 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 (a,b): f(x)=1b−a on the interval, 0 outside. Probability is proportional to length: P(c<X<d)=d−cb−a for a≤c<d≤b.

Discrete uniform on {1,2,…,n} (a fair die for n=6): each value has probability 1/n.

The standard distributions, with their own topics for details:

Distribution PMF / PDF Mean Variance
Bernoulli(p) P(1)=p p p(1−p)
Binomial(n,p) (nk)pk(1−p)n−k np np(1−p)
Geometric(p), k=1,2,… (1−p)k−1p 1/p (1−p)/p2
Poisson(λ) e−λλk/k! λ λ
Discrete uniform 1..n 1/n (n+1)/2 (n2−1)/12
Uniform(a,b) 1/(b−a) (a+b)/2 (b−a)2/12
Exponential(λ) λe−λx, x≥0 1/λ 1/λ2
Normal(μ,σ2) 1σ2πe−(x−μ)2/2σ2 μ σ2

The geometric and exponential distributions are memoryless: P(X>s+t∣X>s)=P(X>t).

In EC, the uniform distribution models quantisation error (variance Δ2/12) and the random phase of a carrier on (0,2π).

5. Functions of a random variable

If Y=g(X), find the distribution of Y by one of two methods.

CDF method (always works). Write FY(y)=P(g(X)≤y), turn it into an event on X, and use FX. Differentiate for fY.

Monotone formula. If g is strictly increasing or decreasing with inverse x=g−1(y):

fY(y)=fX(x)∣dxdy∣

Linear case. Y=aX+b gives fY(y)=1∣a∣fX(y−ba). A uniform stays uniform and a normal stays normal.

Example (CDF method). X∼U(0,1), Y=−ln⁡X. For y≥0: FY(y)=P(−ln⁡X≤y)=P(X≥e−y)=1−e−y. So Y is exponential with λ=1.

Non-monotone case. Y=X2: FY(y)=P(−y≤X≤y), so both branches add:

fY(y)=fX(y)+fX(−y)2y,y>0

If only a mean is asked, skip all this and use E[g(X)]=∫g(x)fX(x) dx.

Formulas to remember

PDF normalisation
∫−∞∞f(x) dx=1
CDF
F(x)=P(X≤x)=∫−∞xf(t) dt
Interval probability
P(a<X≤b)=F(b)−F(a)
MeanUse ∑xip(xi) for discrete X
E[X]=∫−∞∞xf(x) dx
Variance
Var⁡(X)=E[X2]−(E[X])2
Linear transformation
E[aX+b]=aE[X]+b,Var⁡(aX+b)=a2Var⁡(X)
Uniform (a, b)
μ=a+b2,σ2=(b−a)212
Monotone transformation
fY(y)=fX(x)∣dxdy∣,x=g−1(y)

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

X has PDF f(x)=kx(2−x) for 0≤x≤2 and 0 elsewhere. Find k, P(X≤0.5), E[X] and Var⁡(X).

  1. Step 1: Normalise to find $k$.

    Try it on paper first.

Example 2: Discrete PMF and a linear function

numerical

X takes values 0, 1, 2, 3 with probabilities 0.1, 0.3, 0.4, 0.2. Find E[X], Var⁡(X), and the mean and variance of Y=2X+3.

  1. Step 1: Find $E[X]$.

    Try it on paper first.

Example 3: Working from a CDF

numerical

X has CDF F(x)=0 for x<0, F(x)=x2/4 for 0≤x<2, and F(x)=1 for x≥2. Find P(0.5<X≤1.5), the PDF and the median.

  1. Step 1: Use $F(b) - F(a)$.

    Try it on paper first.

Example 4: Uniform random variable and a linear map

numerical

X is uniform on (−1,3). Find its mean and variance, P(∣X∣<0.5), and the distribution of Y=2X+1.

  1. Step 1: Mean and variance.

    Try it on paper first.

Previous year questions

3 official GATE EC questions on this topic, newest first.

Topic test

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.