EasyDeepLearn
Statistics Fundamentals · section 1 of 15

Probability foundations

41 interview questions on probability foundations, each answered in full. Free to read, no account needed.

State the Central Limit Theorem in one sentence.

easy
  • For independent, identically distributed samples with finite mean mu and variance σ2\sigma^{2}, the sampling distribution of the mean approaches a normal distribution N(μ,  σ2  /  n)N(\mu, \;\sigma^{2}\; / \;n) as n grows, regardless of the underlying distribution.
#clt#probabilityPermalink & quiz →

Bayesian vs frequentist — what's the core difference?

medium
  • Frequentists treat parameters as fixed unknowns and estimate them via long-run frequency properties (unbiased estimators, confidence intervals, p-values).
  • Bayesians treat parameters as random variables with a prior distribution, update with data via Bayes' rule to get a posterior, and summarize with credible intervals.
  • Bayesian methods handle prior knowledge naturally and give posterior probability statements directly.
#bayesian#theoryPermalink & quiz →

State the Law of Large Numbers.

easy
  • As the sample size grows, the sample mean converges to the true expected value.
  • Weak LLN: convergence in probability.
  • Strong LLN: convergence almost surely.
  • This justifies estimating expectations by averaging samples — the foundation of Monte Carlo estimation.
#probability#theoryPermalink & quiz →

Independence vs uncorrelatedness — what's the difference?

medium
  • Independent means P(A, B) = P(A) P(B): no relationship at all.
  • Uncorrelated means covariance = 0: no linear relationship.
  • Independence implies uncorrelated, but the reverse is false in general — X and X2X^{2} can have zero correlation while being fully dependent.
  • For jointly Gaussian variables, uncorrelated implies independent — a special case.
#probability#variancePermalink & quiz →

State Bayes' theorem and one intuitive use.

easy
  • P(A    B)  =  P(B    A)P(A\; \mid \;B)\; = \;P(B\; \mid \;A) P(A) / P(B).
  • Intuition: update a prior belief P(A) with new evidence B to get a posterior belief P(A    B)P(A\; \mid \;B).
  • Classic use: medical testing with base rates.
  • Even a highly sensitive/specific test on a rare disease produces mostly false positives if the disease prevalence is low.
#probability#bayesianPermalink & quiz →

State Kolmogorov's three probability axioms.

easy
  • For a sample space Ω and events A: (1) P(A) ≥ 0 (non-negativity).
  • (2) P(Ω) = 1 (normalization — some outcome must occur).
  • (3) For disjoint (mutually exclusive) events A1A_{1}, A2A_{2}, ...: P(  Ai)  =  ΣP(\;A_{i})\; = \;{\Sigma} P(Ai)P(A_{i}) (countable additivity).
  • All of probability theory — conditional probability, Bayes, expectation, independence — is derived from these three axioms.
#probability#theoryPermalink & quiz →

Define conditional probability and prove Bayes' rule from it.

easy
  • P(A    B)  =  P(A    B)  /  P(B)P(A\; \mid \;B)\; = \;P(A\;\;B)\; / \;P(B) when P(B) > 0.
  • Symmetrically, P(B    A)  =  P(A    B)  /  P(A)P(B\; \mid \;A)\; = \;P(A\;\;B)\; / \;P(A)P(A    B)  =  P(BA)    P(A)P(A\;\;B)\; = \;P(B \mid A)\; \cdot \;P(A).
  • Substitute back: P(A    B)  =  P(B    A)    P(A)  /  P(B)P(A\; \mid \;B)\; = \;P(B\; \mid \;A)\; \cdot \;P(A)\; / \;P(B).
  • This is Bayes' rule — a direct consequence of the conditional-probability definition, not a separate axiom.
#probability#bayesianPermalink & quiz →

State the law of total probability.

medium
  • If {B1B_{1}, ..., BnB_{n}} partition the sample space (mutually exclusive, jointly exhaustive), then P(A) = Σ P(A    Bi)    P(Bi)P(A\; \mid \;B_{i})\; \cdot \;P(B_{i}).
  • Used constantly: decompose a complex probability by conditioning on a partitioning variable (age, disease status, region).
  • Foundation of many probabilistic derivations, mixture models, and marginalization in Bayesian inference.
#probability#theoryPermalink & quiz →

Bernoulli distribution: parameters, PMF, mean, variance.

easy
  • X ~ Bernoulli(p): single trial with success prob p.
  • PMF: P(X=1) = p, P(X=0) = 1-p.
  • E[X] = p; Var(X)  =  p(1p)\operatorname{Var}(X)\; = \;p(1 - p) — maximum at p=0.5.
  • Foundation for binary outcomes (click / no click, pass / fail).
  • Building block: Binomial(n, p) = sum of n i.i.d.
  • Bernoulli(p).
#distributions#probabilityPermalink & quiz →

Binomial distribution and when to use it.

easy
  • X ~ Binomial(n, p): number of successes in n independent Bernoulli(p) trials.
  • PMF: P(X=k)  =  C(n,k)    pk    (1p)P(X = k)\; = \;C(n, k)\; \cdot \;p^{k}\; \cdot \;(1 - p)^(n-k).
  • E[X] = np; Var(X)  =  np(1p)\operatorname{Var}(X)\; = \;\mathrm{np}(1 - p).
  • Use it for: A/B testing (successes out of n visitors), quality inspection (defects out of n items), any bounded count of independent trials.
  • When n is large and p is small, approximate by Poisson(np).
#distributions#probabilityPermalink & quiz →

Poisson distribution and its typical use cases.

medium
  • X ~ Poisson(λ): count of events in a fixed interval / area, when events happen at constant rate λ independently.
  • PMF: P(X=k)  =  λk    eP(X = k)\; = \;{\lambda}^{k}\; \cdot \;e^(-λ) / k!.
  • E[X] = Var(X) = λ.
  • Use cases: website clicks per minute, defects per page, insurance claims per year.
  • Limit of Binomial(n, p) as n → ∞, p → 0, np → λ.
  • Assumes memorylessness — real data with time-varying rate (bursty traffic) needs negative binomial or NHPP.
#distributions#probabilityPermalink & quiz →

Geometric distribution: setup and mean.

medium
  • X ~ Geometric(p): number of trials until the first success in i.i.d.
  • Bernoulli(p).
  • PMF: P(X=k) = (1-p)^(k-1) * p.
  • E[X] = 1/p; Var(X)  =  (1p)/p2\operatorname{Var}(X)\; = \;(1 - p) / p^{2}.
  • Memoryless: P(X  >  n+k    X  >  n)  =  P(X  >  k)P(X\; > \;n + k\; \mid \;X\; > \;n)\; = \;P(X\; > \;k).
  • Uses: number of attempts until conversion, retries until failure.
  • Note: two conventions — some define it as failures before first success (E = (1-p)/p).
#distributions#probabilityPermalink & quiz →

Uniform distribution: continuous vs discrete.

easy
  • Discrete: U{a, ..., b} — each of (b-a+1) integers has probability 1/(b-a+1).
  • Continuous: U(a, b) — density 1/(b-a) on [a,b], zero elsewhere.
  • Continuous uniform: E[X] = (a+b)/2, Var(X)  =  (ba)2/12\operatorname{Var}(X)\; = \;(b - a)^{2} / 12.
  • Uses: random sampling, base for inverse transform sampling (generate  any  distribution  by  feeding  uniform  samples  through  F1)(\mathrm{generate}\;\mathrm{any}\;\mathrm{distribution}\;\mathrm{by}\;\mathrm{feeding}\;\mathrm{uniform}\;\mathrm{samples}\;\mathrm{through}\;F^{-1}), and shuffling.
#distributions#probabilityPermalink & quiz →

Exponential distribution: setup, memorylessness, use cases.

medium
  • X ~ Exp(λ): time between events in a Poisson process.
  • PDF: f(x) = λ * e^(-λx) for x ≥ 0.
  • E[X] = 1/λ; Var(X)  =  1/λ2\operatorname{Var}(X)\; = \;1 / {\lambda}^{2}.
  • Memoryless: P(X  >  s+t    X  >  s)  =  P(X  >  t)P(X\; > \;s + t\; \mid \;X\; > \;s)\; = \;P(X\; > \;t) — the only continuous distribution with this property.
  • Uses: waiting times (until next call, next failure), radioactive decay, survival analysis (constant hazard rate).
#distributions#probabilityPermalink & quiz →

Normal distribution: PDF and key properties.

easy
  • X ~ N(μ,  σ2)N({\mu}, \;{\sigma}^{2}): f(x)  =  (1  /  sqrt(2πσ2))    exp((xμ)2  /  (2σ2))f(x)\; = \;(1\; / \;\mathrm{sqrt}(2{\pi}{\sigma}^{2}))\; \cdot \;\operatorname{exp}( - (x - {\mu})^{2}\; / \;(2{\sigma}^{2})).
  • Bell-shaped, symmetric around μ. ~68% of mass within 1σ, ~95% within 2σ, ~99.7% within 3σ.
  • Sum of independent normals is normal.
  • Standardized: Z = (X-μ)/σ ~ N(0,1).
  • Universally used because of CLT — many sample statistics are approximately normal for large n.
#distributions#probabilityPermalink & quiz →

Multivariate normal: parameters and key properties.

medium
  • X ~ N(μ, Σ), where μ is a length-d mean vector and Σ is a d×d covariance matrix (symmetric positive semi-definite).
  • PDF: |2πΣ|^(1/2)    exp(0.5    (xμ)  Σ1  (xμ))( - 1 / 2)\; \cdot \;\operatorname{exp}( - 0.5\; \cdot \;(x - {\mu})\;{\Sigma}^{-1}\;(x - {\mu})).
  • Marginals and conditionals of a multivariate normal are also normal.
  • Linear combinations remain normal.
  • Uncorrelated components (Σ diagonal) → independent.
  • Foundation of Gaussian processes, Kalman filters, LDA, and joint modeling.
#distributions#probabilityPermalink & quiz →

What is a covariance matrix and its key properties?

medium
  • For random vector X ∈ RdR^{d}: Cov(X)  =  E[(Xμ)(Xμ)]\operatorname{Cov}(X)\; = \;E[(X - {\mu})(X - {\mu})], a d×d matrix.
  • Diagonal: variances Var(Xi)\operatorname{Var}(X_{i}).
  • Off-diagonal: covariances Cov(Xi,  Xj)\operatorname{Cov}(X_{i}, \;X_{j}).
  • Properties: (1) symmetric, (2) positive semi-definite, (3) real eigenvalues ≥ 0.
  • Standardization: correlation matrix  =  D1\mathrm{matrix}\; = \;D^{-1} Σ D1D^{-1} where D is a diagonal matrix of SDs.
  • PCA is eigendecomposition of Σ; Mahalanobis distance uses Σ1{\Sigma}^{-1}.
#variance#probabilityPermalink & quiz →

What is linearity of expectation?

easy
  • For any random variables X, Y and constants a, b: E[aX + bY] = a*E[X] + b*E[Y].
  • Holds regardless of dependence between X and Y.
  • Very useful because it lets you decompose expectations of complex sums into pieces even when the pieces are dependent.
  • Example: expected number of collisions in a hash table with n keys and m slots is (n choose 2)/m — via linearity over the C(n,2) pairs.
#expectation#probabilityPermalink & quiz →

Variance of a sum: Var(X  +  Y)\operatorname{Var}(X\; + \;Y) = ?

medium
  • Var(X  +  Y)  =  Var(X)  +  Var(Y)  +  2    Cov(X,  Y)\operatorname{Var}(X\; + \;Y)\; = \;\operatorname{Var}(X)\; + \;\operatorname{Var}(Y)\; + \;2\; \cdot \;\operatorname{Cov}(X, \;Y).
  • Only when X and Y are uncorrelated (Cov = 0) does the covariance term vanish and Var(X+Y)  =  Var(X)  +  Var(Y)\operatorname{Var}(X + Y)\; = \;\operatorname{Var}(X)\; + \;\operatorname{Var}(Y).
  • Crucial in portfolio theory (diversification reduces variance only if assets are not perfectly correlated), A/B testing (variance of the mean depends on within-subject correlation), and RL (variance-reduced estimators).
#variance#probabilityPermalink & quiz →

Write covariance and correlation formulas.

easy
  • Cov(X,  Y)  =  E[(X    μX)(Y    μY)]  =  E[XY]    E[X]\operatorname{Cov}(X, \;Y)\; = \;E[(X\; - \;{\mu}_{X})(Y\; - \;{\mu}_{Y})]\; = \;E[\mathrm{XY}]\; - \;E[X]E[Y].
  • Corr(X,  Y)  =  ρ  =  Cov(X,  Y)  /  (σX  σY)\operatorname{Corr}(X, \;Y)\; = \;{\rho}\; = \;\operatorname{Cov}(X, \;Y)\; / \;({\sigma}_{X}\;{\sigma}_{Y}), in [-1, 1].
  • Sample versions: divide by n-1 (unbiased).
  • Correlation is scale-invariant; covariance has weird units (product of X and Y units).
  • Cauchy-Schwarz inequality guarantees  Cov(X,Y)\mathrm{guarantees}\; \mid \operatorname{Cov}(X, Y)| ≤ σX{\sigma}_{X} σY{\sigma}_{Y}, so  ρ\mathrm{so}\; \mid {\rho}| ≤ 1.
#variance#probabilityPermalink & quiz →

What is E[X    Y]E[X\; \mid \;Y] and its Law of Total Expectation?

medium
  • E[X    Y  =  y]E[X\; \mid \;Y\; = \;y] is the expected value of X given that Y = y.
  • As a function of Y, E[X    Y]E[X\; \mid \;Y] is itself a random variable.
  • Law of total expectation (Adam's law): E[X]  =  E[E[X    Y]]E[X]\; = \;E[E[X\; \mid \;Y]] — average the conditional expectations over the distribution of Y.
  • Foundation for regression (E[YX]  is  the  best  predictor  of  Y)(E[Y \mid X]\;\mathrm{is}\;\mathrm{the}\;\mathrm{best}\;\mathrm{predictor}\;\mathrm{of}\;Y), Bayes' rule interpretation, and MCMC.
#expectation#probabilityPermalink & quiz →

Law of Total Variance — Var(X)\operatorname{Var}(X) = ?

hard
  • Var(X)  =  E[Var(X    Y)]  +  Var(E[X    Y])\operatorname{Var}(X)\; = \;E[\operatorname{Var}(X\; \mid \;Y)]\; + \;\operatorname{Var}(E[X\; \mid \;Y]).
  • 'Within-group' variance (average of conditional variances) plus 'between-group' variance (variance of conditional means).
  • Foundation of ANOVA (partitions total variance into between- and within-group sources), variance decomposition in regression (R2  =  explained/total)(R^{2}\; = \;\mathrm{explained} / \mathrm{total}), and mixed-effects modeling.
#variance#probabilityPermalink & quiz →

Why does the Cauchy distribution have no mean?

hard
  • Cauchy(0,1) PDF: 1  /  (π(1+x2))1\; / \;({\pi}(1 + x^{2})).
  • Its tails decay only as 1/x21 / x^{2} — the integral ∫x * PDF diverges → mean is undefined.
  • Consequence: sample mean of Cauchy does not converge (LLN fails).
  • Sums of Cauchy are still Cauchy (heavy-tail preservation), so CLT doesn't apply either.
  • Use case: robust statistics use it as a heavy-tailed model for outliers; ratio of two normals has Cauchy distribution.
#distributions#probabilityPermalink & quiz →

State Jensen's inequality and give an ML example.

hard
  • For a convex function g: E[g(X)] ≥ g(E[X]).
  • Concave: E[g(X)] ≤ g(E[X]).
  • Consequence: E[X2]E[X^{2}](E[X])2(E[X])^{2} → variance is non-negative.
  • In ML: (1) log-likelihood is concave — Jensen bounds expected log-likelihood ≤ log of expected likelihood; foundation of the EM algorithm's E-step.
  • (2) log(mean  prediction)\operatorname{log}(\mathrm{mean}\;\mathrm{prediction}) ≤ mean log(prediction)\operatorname{log}(\mathrm{prediction}) — used in ensembling analyses.
  • (3) Explains why you can't just average logs then exponentiate to recover a mean.
#probability#theory#expectationPermalink & quiz →

What is a moment generating function and why care?

hard
  • MX(t)  =  E[e(tX)]M_{X}(t)\; = \;E[e(\mathrm{tX})].
  • When it exists in an open interval around 0, it uniquely determines the distribution — two RVs with the same MGF are identically distributed.
  • Useful because: (1) generates moments via derivatives (MX(0)  =  E[X],  MX(0)  =  E[X2],  )(MX(0)\; = \;E[X], \;MX(0)\; = \;E[X^{2}], \;); (2) MGF of sum of independents = product of MGFs → easy proofs (sum of normals normal, sum of gammas gamma).
  • Characteristic functions (imaginary argument) exist even when MGF doesn't (Cauchy).
#probability#moments#theoryPermalink & quiz →

State Chebyshev's inequality.

medium
  • P(X    μ    kσ)P( \mid X\; - \;{\mu} \mid \; \ge \;k{\sigma})1/k21 / k^{2}.
  • Distribution-free bound on tail probabilities — at most 1/k21 / k^{2} of the mass is more than k SDs from the mean, for any distribution with finite variance.
  • Consequence: at least 75% within 2σ, 89% within 3σ.
  • Much looser than the 95/99.7% for normal — general bounds are wide.
  • Applied in concentration arguments, generalization bounds in learning theory.
#probability#theoryPermalink & quiz →

State Markov's inequality.

medium
  • For a non-negative random variable X and a > 0: P(X ≥ a) ≤ E[X] / a.
  • Even weaker than Chebyshev but requires only non-negativity and a finite mean.
  • Used to derive Chebyshev (apply  Markov  to  (Xμ)2)(\mathrm{apply}\;\mathrm{Markov}\;\mathrm{to}\;(X - {\mu})^{2}) and Chernoff bounds (apply  Markov  to  e(tX)  and  optimize  t)(\mathrm{apply}\;\mathrm{Markov}\;\mathrm{to}\;e(\mathrm{tX})\;\mathrm{and}\;\mathrm{optimize}\;t).
  • Building block of concentration inequalities.
#probability#theoryPermalink & quiz →

What is Hoeffding's inequality?

hard
  • For bounded i.i.d.
  • XiX_{i} ∈ [a, b] with mean μ: P(Xn    μ    t)P( \mid Xn\; - \;{\mu} \mid \; \ge \;t)2    exp(2n    t2  /  (ba)2)2\; \cdot \;\operatorname{exp}( - 2n\; \cdot \;t^{2}\; / \;(b - a)^{2}).
  • Exponential (Gaussian-like) tail bound for sample means of bounded variables.
  • Much tighter than Chebyshev.
  • Used to prove PAC learning bounds, bandit / online learning regret bounds, and to derive sample-complexity requirements: n ~ log(1/δ)  /  t2\operatorname{log}(1 / {\delta})\; / \;t^{2} for confidence δ and precision t.
  • Interview classic.
#probability#theoryPermalink & quiz →

How does Monte Carlo estimation work and its convergence rate?

medium
  • To estimate E[f(X)] where X has a known distribution: draw i.i.d. samples X1X_{1}, ..., XnX_{n}, average f(Xi)f(X_{i}).
  • By LLN, the average converges to the expectation.
  • Rate: O(1/√n) — SE  =  σf\operatorname{SE}\; = \;{\sigma}_{f} / √n, independent of dimension.
  • Great for high-dimensional integrals where deterministic quadrature is impossible (curse of dimensionality).
  • Variance-reduction tricks: importance sampling, control variates, antithetic variates.
  • MCMC (Markov Chain Monte Carlo) uses MC when direct sampling is hard.
#probability#estimation#monte-carloPermalink & quiz →

What statistical properties make maximum likelihood the default estimator?

medium
  • Given data X and a parametric family p(x; θ), MLE picks θ̂ = argmax_θ Σ log p(xi  θ)p(x_{i}\;{\theta}).
  • Equivalently: minimize negative log-likelihood.
  • Properties: consistent (θ̂ → θ*), asymptotically normal (n(θ    θ)    N(0,  I1))( \sqrt n({\theta}\; - \;{\theta} \cdot )\; \to \;N(0, \;I^{-1})), asymptotically efficient (achieves Cramér-Rao bound).
  • Foundation of parametric inference and of most ML training objectives (logistic regression, softmax cross-entropy — all MLE).
#estimation#theoryPermalink & quiz →

What is Fisher information?

hard
  • I(θ) = -E[2  log  p(X  θ)  /  θ2]  =  E[(  log  p(X  θ)/θ)2]E[ \partial ^{2}\;\operatorname{log}\;p(X\;{\theta})\; / \; \partial {\theta}^{2}]\; = \;E[( \partial \;\operatorname{log}\;p(X\;{\theta}) / \partial {\theta})^{2}].
  • Measures how much information the observations carry about θ.
  • Cramér-Rao bound: for any unbiased estimator, Var(θ)\operatorname{Var}({\theta}) ≥ 1 / (n * I(θ)).
  • MLE asymptotic variance = 1 / (n * I(θ)) → MLE is asymptotically efficient.
  • Used to define natural gradient (natural  gradient  descent    I(θ)1  L)(\mathrm{natural}\;\mathrm{gradient}\;\mathrm{descent}\; \propto \;I({\theta})^{-1}\; \nabla L).
#estimation#theoryPermalink & quiz →

Bias, variance, consistency of estimators — define.

medium
  • Bias: E[θ̂] - θ.
  • Variance: Var(θ)\operatorname{Var}({\theta}).
  • MSE  =  bias2  +  variance\operatorname{MSE}\; = \;\mathrm{bias}^{2}\; + \;\mathrm{variance} (bias-variance decomposition).
  • Consistency: θ̂_n → θ in probability as n → ∞.
  • Unbiased ≠ consistent (unbiased with growing variance can be inconsistent); consistent ≠ unbiased (biased with vanishing bias can be consistent).
  • MLE and MAP are typically consistent but biased for small n.
#estimation#theoryPermalink & quiz →

MLE for a Bernoulli(p) — derive.

medium
  • Likelihood: L(p) = p^Σxi    (1p){\Sigma}x_{i}\; \cdot \;(1 - p)^(n    Σxi)(n\; - \;{\Sigma}x_{i}).
  • Log-lik: ℓ(p)  =  Σxi    log(p)\; = \;{\Sigma}x_{i}\; \cdot \;\operatorname{log} p  +  (n    Σxi)    log(1p)p\; + \;(n\; - \;{\Sigma}x_{i})\; \cdot \;\operatorname{log}(1 - p). ∂ℓ/∂p  =  Σxi  /  p    (n    Σxi)/(1p)  =  0p\; = \;{\Sigma}x_{i}\; / \;p\; - \;(n\; - \;{\Sigma}x_{i}) / (1 - p)\; = \;0 → p̂ = Σxi  /  n  =  X{\Sigma}x_{i}\; / \;n\; = \;X̄.
  • So the MLE of a Bernoulli parameter is just the sample proportion.
  • Also happens to be unbiased and minimum-variance (via CR bound).
  • Classic textbook derivation asked in interviews.
#estimation#theoryPermalink & quiz →

MLE for Normal(μ,  σ2)\mathrm{Normal}({\mu}, \;{\sigma}^{2}) — result.

medium
  • μ̂ = X̄ (unbiased, minimum variance). σ̂² = (1/n)    Σ(Xi    X)2(1 / n)\; \cdot \;{\Sigma}(X_{i}\; - \;X)^{2} — the biased MLE.
  • Bias-corrected version divides by n-1 (sample variance).
  • For large n, both converge to σ2{\sigma}^{2}.
  • Deep-learning tie-in: minimizing MSE under Gaussian noise = MLE with fixed σ.
  • Softmax cross-entropy = MLE for a categorical distribution.
  • Almost every parametric ML training objective is an MLE.
#estimation#theoryPermalink & quiz →

When would you use Hoeffding's inequality for a CI?

hard
  • Distribution-free CI for the mean of a bounded random variable in [a, b]: P(X    μ  >  t)P( \mid X\; - \;{\mu} \mid \; > \;t)2    exp(2nt2  /  (ba)2)2\; \cdot \;\operatorname{exp}( - 2\mathrm{nt}^{2}\; / \;(b - a)^{2}).
  • Gives ε for target coverage: ε = (b-a) * √(log(2/α) / (2n)).
  • Uses: bandits (UCB), online learning regret, certification without normality.
  • Weaker (wider) than CLT-based CIs for well-behaved data but valid for any n and any distribution on [a, b].
#confidence-interval#theoryPermalink & quiz →

Cramér-Rao lower bound — state it.

hard
  • For any unbiased estimator θ̂ of θ under regularity conditions: Var(θ)\operatorname{Var}({\theta}) ≥ 1 / (n * I(θ)).
  • Fisher information sets the floor for estimator precision.
  • MLE achieves this bound asymptotically (asymptotically efficient).
  • Practical use: benchmark for whether an estimator can be improved.
  • For biased estimators, generalized bounds exist (van Trees).
  • Companion to the bias-variance decomposition.
#estimation#theoryPermalink & quiz →

What is the influence function?

hard
  • For a functional statistic T(F): IF(x  T,  F)  =  limε0\mathrm{IF}(x\;T, \;F)\; = \;\mathrm{lim}_{{\varepsilon} \to 0} (T((1ε)F  +  εδx)    T(F)T((1 - {\varepsilon})F\; + \;{\varepsilon}{\delta}_{x})\; - \;T(F)) / ε.
  • Measures how much T changes if a single point x is added.
  • Uses: (1) derive asymptotic variance via Var(n  T)\operatorname{Var}( \sqrt n\;T)E[IF2]E[\mathrm{IF}^{2}]; (2) build robust M-estimators (Huber) with bounded IF; (3) identify influential observations.
  • Foundation of modern robust statistics and semi-parametric efficiency theory.
#estimation#theoryPermalink & quiz →

Give the OLS closed-form and its variance.

medium
  • β̂ = (XX)1(XX)^{-1} X'y.
  • Var(β    X)  =  σ2    (XX)1\operatorname{Var}({\beta}\; \mid \;X)\; = \;{\sigma}^{2}\; \cdot \;(XX)^{-1}.
  • Estimate σ2{\sigma}^{2} with s2  =  RSS  /  (n    p)s^{2}\; = \;\mathrm{RSS}\; / \;(n\; - \;p).
  • SEs come from diagonal of s2    (XX)1s^{2}\; \cdot \;(XX)^{-1}.
  • When X'X is ill-conditioned (multicollinearity), variances blow up.
  • Solutions: ridge regression, principal components regression, or dropping correlated features.
  • This formula is the reason multicollinearity is so damaging: it inflates the variance of β̂.
#regression#theoryPermalink & quiz →

State Bayes' theorem and what each term means.

easy
  • P(θ    D)  =  P(D    θ)    P(θ)  /  P(D)P({\theta}\; \mid \;D)\; = \;P(D\; \mid \;{\theta})\; \cdot \;P({\theta})\; / \;P(D).
  • Posterior = Likelihood * Prior / Evidence.
  • Prior encodes belief before seeing D.
  • Likelihood tells how well θ explains D.
  • Evidence P(D) = ∫ P(D    θ)P(D\; \mid \;{\theta}) P(θ) dθ normalizes.
  • In practice, we compute posterior up to proportionality: P(θ    D)P({\theta}\; \mid \;D)P(D    θ)    P(θ)P(D\; \mid \;{\theta})\; \cdot \;P({\theta}), and use MCMC / variational methods to sample or approximate.
#bayesian#theoryPermalink & quiz →

Frequentist vs Bayesian — key philosophical difference.

medium
  • Frequentist: parameters are fixed but unknown; probability = long-run frequency; CIs, p-values, MLE.
  • Bayesian: parameters are random with a distribution encoding belief; probability = degree of belief; posterior, credible intervals, MAP.
  • Pragmatic: Bayesian is natural when priors are meaningful, uncertainty quantification matters, or you're doing online learning; frequentist is faster and standard in confirmatory studies.
  • Modern ML mixes both freely (MAP = MLE + regularization; Bayesian deep learning).
#bayesian#theoryPermalink & quiz →

Potential outcomes framework — Rubin causal model.

hard
  • For each unit i and treatment T, define Yi(0)Y_{i}(0) (outcome if untreated) and Yi(1)Y_{i}(1) (outcome if treated).
  • Individual causal effect: Yi(1)    Yi(0)Y_{i}(1)\; - \;Y_{i}(0) — fundamentally unobservable (fundamental problem of causal inference).
  • Estimands: ATE = E[Y(1) - Y(0)], ATT  =  E[Y(1)    Y(0)    T=1]\mathrm{ATT}\; = \;E[Y(1)\; - \;Y(0)\; \mid \;T = 1].
  • Identification requires: (1) SUTVA (no interference / one version of treatment), (2) unconfoundedness (Y(0),  Y(1)    T    X)(Y(0), \;Y(1)\;\;T\; \mid \;X), (3) overlap.
  • Foundation of modern causal inference.
#causal-inference#theoryPermalink & quiz →

Practise Statistics Fundamentals