CGL CompassSSC CGL Preparation PlannerSign in5 days free
Tier 2 notes

Random Variables & Expectation: SSC CGL Tier 2 notes summary

A random variable is a function that gives a real number to each outcome of a random experiment.

The syllabus unit on random variables and probability distributions gave about 7 of 76 readable questions on 4 March 2023 and 9 of 91 on 27 October 2023, split between general random-variable ideas (this note) and named distributions (the next two notes). SSC asks the variance of a discrete variable from its table, the variance of 2X + 7, the constant k that makes a pdf valid, the marginal pmf from a joint pmf and what follows if the first two raw moments are zero.

In brief

Remember
  1. A random variable is a function that gives a real number to each outcome of a random experiment.
  2. A discrete random variable takes countable values, such as the number of heads, and has a probability mass function p(x) = P(X = x).
  3. A continuous random variable takes any value in an interval, such as height, and has a probability density function f(x).
  4. A pmf must satisfy p(x) ≥ 0 and Σp(x) = 1, and a pdf must satisfy f(x) ≥ 0 and ∫f(x)dx = 1.
  5. For a continuous variable P(X = a) = 0, and probabilities are areas: P(a < X < b) = ∫ from a to b of f(x)dx.
  6. The distribution function F(x) = P(X ≤ x) is non-decreasing, runs from 0 to 1, and gives the pdf by differentiation.
  7. The expectation E(X) = Σx p(x) or ∫x f(x)dx is the long-run average value of X.
  8. E(aX + b) = aE(X) + b, and E(X + Y) = E(X) + E(Y) for any X and Y.
  9. E(XY) = E(X)E(Y) when X and Y are independent.
  10. Variance is V(X) = E(X²) - [E(X)]², the mean square minus the square of the mean.
  11. V(aX + b) = a²V(X), so adding a constant does not change the variance.
  12. V(X ± Y) = V(X) + V(Y) ± 2Cov(X, Y), and the covariance term vanishes for independent variables.
  13. Raw moments are E(X^r) and central moments are E(X - μ)^r, exactly as for frequency distributions.
  14. The moment generating function M(t) = E(e^{tX}) produces moments by differentiation at t = 0.
  15. A joint pmf p(x, y) gives probabilities for pairs, and the marginal pmf of X is found by summing over y.
  16. X and Y are independent if p(x, y) = pX(x) pY(y) for every pair of values.

Numbers to remember

NumberWhat it is
1total of all probabilities, Σp(x) or ∫f(x)dx
0P(X = a) for any single value of a continuous variable
a²factor on the variance when X becomes aX + b
7/2expected score of a fair die
35/12variance of the score of a fair die
0 to 1range of the distribution function F(x)
M'(0)first derivative of the MGF at zero, which is E(X)
0Cov(X, Y) when X and Y are independent

Key formulas and rules

Σp(x) = 1; ∫f(x)dx = 1
Valid distributions.
F(x) = P(X ≤ x); f(x) = F'(x)
E(X) = Σxp(x) = ∫xf(x)dx
E(aX + b) = aE(X) + b
V(X) = E(X²) - [E(X)]²
V(aX + b) = a²V(X)
Cov(X, Y) = E(XY) - E(X)E(Y)
V(X ± Y) = V(X) + V(Y) ± 2Cov(X, Y)

Common traps

Watch out
  • Forgetting to square the mean in V(X) = E(X²) - [E(X)]² gives a wrong variance.
  • Writing V(aX + b) = aV(X) + b is wrong; it is a²V(X).
  • Subtracting variances for X - Y is wrong; they add for independent variables.

Solved examples

Q. Let X take values -3, -2, -1 and 0 with probabilities 1/3, 1/4, 1/12 and 1/3. The variance of X is: (CGL 2022 Tier 2 Statistics, 4 Mar 2023)

Answer: 227/144

Step 1: E(X) = -1 - 1/2 - 1/12 + 0 = -19/12. Step 2: E(X²) = 9/3 + 4/4 + 1/12 = 49/12. Step 3: V(X) = 49/12 - 361/144 = 588/144 - 361/144 = 227/144.

Q. For a random variable X with a variance of 4, the variance of Y = 2X + 7 is: (CGL 2022 Tier 2 Statistics, 4 Mar 2023)

Answer: 16

Step 1: V(aX + b) = a²V(X). Step 2: = 2² x 4. Step 3: = 16; the +7 has no effect.

Q. The joint pmf of X and Y is f(x, y) = (x + y)/21, x = 1, 2, 3 and y = 1, 2. The marginal pmf of X is: (CGL 2023 Paper II, 27 Oct 2023)

Answer: (2x + 3)/21, x = 1, 2, 3

Step 1: Sum over y = 1, 2. Step 2: (x + 1)/21 + (x + 2)/21 = (2x + 3)/21. Step 3: Check: 5/21 + 7/21 + 9/21 = 1.

What the full notes cover

  • Random variables and their types
  • Distribution function
  • Expectation
  • Variance and covariance
  • Moments and the moment generating function
  • Joint distribution of two discrete variables
  • Chebyshev's inequality