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
- A random variable is a function that gives a real number to each outcome of a random experiment.
- A discrete random variable takes countable values, such as the number of heads, and has a probability mass function p(x) = P(X = x).
- A continuous random variable takes any value in an interval, such as height, and has a probability density function f(x).
- A pmf must satisfy p(x) ≥ 0 and Σp(x) = 1, and a pdf must satisfy f(x) ≥ 0 and ∫f(x)dx = 1.
- For a continuous variable P(X = a) = 0, and probabilities are areas: P(a < X < b) = ∫ from a to b of f(x)dx.
- The distribution function F(x) = P(X ≤ x) is non-decreasing, runs from 0 to 1, and gives the pdf by differentiation.
- The expectation E(X) = Σx p(x) or ∫x f(x)dx is the long-run average value of X.
- E(aX + b) = aE(X) + b, and E(X + Y) = E(X) + E(Y) for any X and Y.
- E(XY) = E(X)E(Y) when X and Y are independent.
- Variance is V(X) = E(X²) - [E(X)]², the mean square minus the square of the mean.
- V(aX + b) = a²V(X), so adding a constant does not change the variance.
- V(X ± Y) = V(X) + V(Y) ± 2Cov(X, Y), and the covariance term vanishes for independent variables.
- Raw moments are E(X^r) and central moments are E(X - μ)^r, exactly as for frequency distributions.
- The moment generating function M(t) = E(e^{tX}) produces moments by differentiation at t = 0.
- A joint pmf p(x, y) gives probabilities for pairs, and the marginal pmf of X is found by summing over y.
- X and Y are independent if p(x, y) = pX(x) pY(y) for every pair of values.
Numbers to remember
| Number | What it is |
|---|---|
| 1 | total of all probabilities, Σp(x) or ∫f(x)dx |
| 0 | P(X = a) for any single value of a continuous variable |
| a² | factor on the variance when X becomes aX + b |
| 7/2 | expected score of a fair die |
| 35/12 | variance of the score of a fair die |
| 0 to 1 | range of the distribution function F(x) |
| M'(0) | first derivative of the MGF at zero, which is E(X) |
| 0 | Cov(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
- 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