Knowledge / Statistics / Random variables and expectation

Random variables and expectation

Statistics (B.Sc) · Probability · free study notes for exams, placements and interviews

In short

A random variable is a real-valued function on the sample space that converts an experimental outcome into a number, so that probability can be handled with algebra and calculus instead of event lists. Expectation is the probability-weighted mean of that number, and variance, moments, skewness and kurtosis are all expectations of simple functions of it. The topic is the structural core of B.Sc Statistics Probability papers, is examined heavily in GATE Statistics (ST), ISI/CMI entrances, IIT JAM MS, UGC-NET Statistics and IAI (Institute of Actuaries of India) CS1, and appears in analytics placement rounds at Mu Sigma, ZS Associates, Fractal, Swiss Re, EXL, Tiger Analytics and bank risk teams. It is the machinery behind insurance premium loading under IRDAI rules, expected credit loss under RBI norms, and expected-value decisions in pricing and inventory. Questions mix proofs (linearity, variance identity, Chebyshev) with numerical evaluation of means, variances and moment generating functions.

Explained

Random variables: definition and classification

Distribution function and its properties

Expectation: definition, existence and properties

Variance, moments and shape measures

Several random variables: joint behaviour and conditional expectation

Inequalities and limit links

Key points

Formulas and examples

E(X) = Σᵢ xᵢ p(xᵢ) (discrete) ; E(X) = ∫_{−∞}^{∞} x f(x) dx (continuous) — units: same as X (₹, hours, items)
E[g(X)] = Σ g(xᵢ)p(xᵢ) or ∫ g(x) f(x) dx
Var(X) = E(X²) − [E(X)]² ; σ = √Var(X) ; CV = σ/μ (unitless) — Var has units of X²
E(aX + b) = aE(X) + b ; Var(aX + b) = a² Var(X)
Cov(X,Y) = E(XY) − E(X)E(Y) ; ρ = Cov(X,Y)/(σ_X σ_Y), −1 ≤ ρ ≤ 1
Var(X ± Y) = Var(X) + Var(Y) ± 2 Cov(X,Y)
M_X(t) = E(e^{tX}) ; μ′ᵣ = dr M_X(t)/dtr at t = 0 ; M_{X+Y}(t) = M_X(t) M_Y(t) for independent X, Y
μ₂ = μ′₂ − μ′₁² ; μ₃ = μ′₃ − 3μ′₂μ′₁ + 2μ′₁³ ; β₁ = μ₃²/μ₂³ ; β₂ = μ₄/μ₂²
E(X) = ∫₀^∞ [1 − F(x)] dx for X ≥ 0 ; E(X) = Σ_{k≥0} P(X > k) for non-negative integer X
Markov: P(X ≥ k) ≤ E(X)/k ; Chebyshev: P(|X − μ| ≥ kσ) ≤ 1/k²
E(X) = E[E(X|Y)] ; Var(X) = E[Var(X|Y)] + Var[E(X|Y)]

Example 1 — Discrete pmf: constant, mean, variance, CDF. X has p(x) = kx for x = 1, 2, 3, 4.

Example 2 — Continuous density: mean, variance, median. f(x) = 3x² for 0 ≤ x ≤ 1, zero elsewhere (so F(x) = x³).

Example 3 — Expected value in a business decision (₹). A Pune component supplier bids for an order. Profit X: ₹8,00,000 with probability 0.3, ₹2,00,000 with 0.5, −₹3,00,000 with 0.2.

Example 4 — MGF, moments and Chebyshev. X ~ Exponential with f(x) = λe^{−λx}, x > 0, λ = 2 per hour (service completions).

Example 5 — Covariance, correlation and variance of a sum. Joint pmf: P(0,0)=0.2, P(0,1)=0.3, P(1,0)=0.1, P(1,1)=0.4.

MeasureFormulaUnitsWhat it tells you
MeanE(X)units of Xlocation / long-run average
VarianceE(X²) − μ²(units of X)²spread
SD√Varunits of Xspread, comparable to mean
CVσ/μnonerelative risk
Skewnessμ₃/σ³nonetail direction
Kurtosisμ₄/σ⁴nonetail weight / peakedness
AspectDiscrete XContinuous X
Descriptionpmf p(x) = P(X = x)pdf f(x), P(X=x) = 0
NormalisationΣ p(x) = 1∫ f(x)dx = 1
CDFstep functioncontinuous, f = F′
ExpectationΣ x p(x)∫ x f(x)dx
Typical usecounts of defectives, claimstime, length, weight, return

Where it is used

Interview questions

Common mistakes

Related topics

Probability theory and Bayes' theorem · Probability distributions · Sampling distributions and the Central Limit Theorem · Estimation theory and unbiasedness · Correlation and regression · Stochastic processes and Markov chains

Open in the Knowledge reader →Find jobs →