Random Variables, Expectation, Joint and Conditional Distributions
Discrete and continuous random variables, PMFs, PDFs and CDFs, expectation and the law of the unconscious statistician, variance and moments, functions of random variables, joint, marginal and conditional distributions (including conditional PDFs), independence, conditional expectation and variance with the laws of total expectation and total variance, and the Markov and Chebyshev inequalities.
The k-th moment is E[Xk]; the k-th central moment is E[(X−μ)k]. The moment generating functionMX(t)=E[etX] gives moments by differentiation, E[Xk]=MX(k)(0), and the MGF of a sum of independent RVs is the product of their MGFs.
Functions of a random variable
For continuous X and a strictly monotone g, Y=g(X) has density
fY(y)=fX(g−1(y))dydg−1(y).
The safest general method is the CDF method: compute FY(y)=P(g(X)≤y) directly, then differentiate.
Inverse transform sampling: if U∼U(0,1) and F is a CDF, then F−1(U) has CDF F. For example −ln(U)/λ∼Exp(λ). This is how samplers generate arbitrary distributions — see approximate inference.
Joint distributions
For two RVs, the joint PMF p(x,y)=P(X=x,Y=y) or joint PDF f(x,y) with P((X,Y)∈A)=∬Af(x,y)dxdy.
Concept
Discrete
Continuous
Marginal
pX(x)=∑yp(x,y)
fX(x)=∫f(x,y)dy
Conditional
pY∣X(y∣x)=pX(x)p(x,y)
fY∣X(y∣x)=fX(x)f(x,y)
Independence
p(x,y)=pX(x)pY(y) for all x,y
f(x,y)=fX(x)fY(y) for all x,y
The conditional PDFfY∣X(y∣x) is a genuine density in y for each fixed x (it integrates to 1).
For independent X,Y: E[XY]=E[X]E[Y], Var(X+Y)=VarX+VarY, and E[g(X)h(Y)]=E[g(X)]E[h(Y)].
Sums of independent random variables
The PMF/PDF of Z=X+Y is a convolution: fZ(z)=∫fX(x)fY(z−x)dx. Useful closed forms: sum of independent Poissons is Poisson (λ1+λ2); sum of independent normals is normal (means add, variances add); sum of n i.i.d. Bernoulli(p) is Binomial(n,p).
Conditional expectation and variance
E[Y∣X=x]=∑yyp(y∣x) or ∫yf(y∣x)dy is a number for each x; E[Y∣X] is a random variable (a function of X).
E[Y∣X] is the best predictor of Y from X in mean squared error — the quantity regression tries to estimate.
Inequalities
Inequality
Statement
Markov (X≥0)
P(X≥a)≤E[X]/a
Chebyshev
P(∣X−μ∣≥kσ)≤1/k2
Jensen (g convex)
g(E[X])≤E[g(X)] — e.g. (E[X])2≤E[X2]
Cauchy–Schwarz
(E[XY])2≤E[X2]E[Y2]
Quick revision
Practice questions
GATE-style questions: 5 one-mark and 5 two-mark. Wrong MCQs cost ⅓ of their marks in the real exam; MSQ and NAT have no negative marking. Attempt each before opening the solution.
Q1NAT1 mark
f(x)=cx2 for 0≤x≤2 (and 0 elsewhere) is a probability density function. The value of c is ______.
Q2NAT2 marks
X has PDF f(x)=2x on [0,1]. Then Var(X) is ______ (round to three decimals).
Q3MSQ1 mark
Which properties hold for every cumulative distribution function F(x)=P(X≤x)?
One or more options are correct.
Q4NAT2 marks
A discrete random variable has PMF P(X=k)=k/10 for k=1,2,3,4. Then Var(X) is ______.
Q5NAT2 marks
(X,Y) has joint PDF f(x,y)=x+y on the unit square 0≤x,y≤1. Then E[X] is ______ (round to two decimals).
Q6NAT1 mark
A fair die is rolled, and then a fair coin is tossed as many times as the number shown. The expected number of heads is ______.
Q7NAT2 marks
A fair die is rolled, and then a fair coin is tossed as many times as the number shown. If H is the number of heads, Var(H) is ______ (round to two decimals).
Q8MCQ1 mark
For any random variable with mean μ and finite standard deviation σ>0, Chebyshev's inequality guarantees that P(∣X−μ∣≥2σ) is at most
Q9MCQ1 mark
X and Y are independent with Var(X)=3 and Var(Y)=5. Then Var(X−Y) is
Q10NAT2 marks
X∼Uniform(0,1) and Y=−lnX. Then P(Y>1) is ______ (round to two decimals).