Skip to main content

Statistical Inference: Estimators and Properties

This article in the Probability and Statistics series formalizes estimator theory: what it means to "estimate well" a parameter…

What do you think about this article?

At a Glance

This article in the Probability and Statistics series formalizes estimator theory: what it means to "estimate well" a parameter…

This article in the Probability and Statistics series formalizes estimator theory: what it means to "estimate well" a parameter, which properties we desire (consistency, unbiasedness, efficiency, sufficiency), and which are the canonical construction methods (method of moments, maximum likelihood, M-estimators, U-statistics). See series index. Statistical inference is the bridge between probabilistic models and observed data: given a parametric family {P_θ : θ ∈ Θ} and a sample X_1, …, X_n, we want to deduce information about θ. We will cover: parameter space and identifiability; point estimators and their finite-sample properties (bias, variance, MSE) and asymptotic properties (consistency, asymptotic normality, efficiency); Cramér-Rao inequality and information bound; sufficiency, complete statistics, Rao-Blackwell and Lehmann-Scheffé theorems; method of moments vs MLE; M-estimators and Z-estimators; Hoeffding U-statistics; bootstrap as an estimator of the sampling distribution. All code is tested with numpy, scipy.stats, scipy.optimize in Python 3.12. Senior/graduate level: assumes familiarity with CLT/LLN (previous article), likelihood functions, and basic linear algebra.

Historical context and formalization

Statistical inference is born with Carl Friedrich Gauss (1809), who introduces least squares to estimate planetary orbits, and Pierre-Simon Laplace, who lays the probabilistic foundations. Karl Pearson (1894) develops the method of moments as a general estimation tool. The paradigm shift occurs with Ronald Aylmer Fisher, who in a series of revolutionary papers (1912, 1922, 1925) introduces: the likelihood, maximum likelihood estimators, information (Fisher information matrix), sufficiency, and consistency. Fisher proves (1925) that MLEs are asymptotically Normal and efficient - a result we now know is part of a wider framework (van der Vaart 1998).

Jerzy Neyman and Egon Pearson (1928-1933) develop hypothesis-testing theory and confidence intervals, completing the frequentist framework. Calyampudi Radhakrishna Rao (1945) and Harald Cramér (1946) independently formulate the inequality bearing their names, setting a lower bound on the variance of unbiased estimators. David Blackwell (1947) generalizes Rao's result and introduces Rao-Blackwellization; Erich Lehmann and Henry Scheffé (1950) prove uniqueness of the minimum-variance unbiased estimator (UMVUE) when a complete sufficient statistic exists.

The modern era: Peter Huber (1964) introduces M-estimators and robustness; Bradley Efron (1979) proposes the bootstrap, revolutionizing uncertainty estimation in complex problems; Aad van der Vaart and others (1990s-2000s) develop modern semi-parametric and non-parametric estimator theory (van der Vaart-Wellner 1996 Weak Convergence and Empirical Processes). References: Casella-Berger Statistical Inference (2002) as a textbook; van der Vaart Asymptotic Statistics (2000) for modern asymptotic theory; Lehmann-Casella Theory of Point Estimation (1998) for complete classical theory; Tsiatis Semiparametric Theory and Missing Data (2006) for semi-parametric inference.

Article outline

  1. Statistical model, identifiability, point estimators
  2. Bias, variance, MSE, consistency, asymptotic normality
  3. Cramér-Rao inequality and Fisher information
  4. Sufficiency, completeness, Rao-Blackwell, Lehmann-Scheffé
  5. Methods: moments, MLE, M-estimators, U-statistics
  6. Bootstrap, jackknife, and estimating the sampling distribution

Statistical model, identifiability, point estimators

A statistical model is a family P = {P_θ : θ ∈ Θ} of probability distributions on a sample space X, indexed by θ in a parameter space Θ ⊆ ℝ^k (parametric model) or infinite-dimensional (non-parametric, semi-parametric). The model is identifiable if θ_1 ≠ θ_2 ⇒ P_{θ_1} ≠ P_{θ_2}: distinct parameters produce distinct distributions. Without identifiability, inference is impossible.

Examples. Gaussian model: P_θ = N(μ, σ²) with θ = (μ, σ²) ∈ ℝ × (0, ∞); identifiable. Gaussian mixture: P_θ = π_1 N(μ_1, σ_1²) + π_2 N(μ_2, σ_2²); not identifiable with respect to label swapping (label switching), a known problem in mixture models and clustering. Linear regression: y_i = β^T x_i + ε_i with ε_i ∼ N(0, σ²); identifiable iff matrix X^T X is non-singular.

An estimator for θ is a measurable function T_n: X^n → Θ. It is a random variable, hence has a distribution (sampling distribution). Notation: θ̂_n = T_n(X_1, …, X_n). Key properties: bias b(θ) = E_θ[θ̂_n] − θ; variance V_θ(θ̂_n) = E_θ[(θ̂_n − E_θ[θ̂_n])²]; mean squared error MSE_θ(θ̂_n) = E_θ[(θ̂_n − θ)²] = V_θ(θ̂_n) + b(θ)². MSE decomposes into variance + bias² (bias-variance tradeoff), central in machine learning.

import numpy as np
rng = np.random.default_rng(42)
# Comparison of estimators for Gaussian σ²: MLE vs unbiased
trials, n = 10000, 20
mu_true, sigma2_true = 0.0, 4.0
X = rng.normal(mu_true, np.sqrt(sigma2_true), size=(trials, n))
mu_hat = X.mean(axis=1)
# MLE: σ̂² = (1/n) Σ (X_i - μ̂)²  (biased: E = σ² (n-1)/n)
sigma2_mle = ((X - mu_hat[:, None])**2).mean(axis=1)
# Unbiased: S² = (1/(n-1)) Σ (X_i - μ̂)²
sigma2_unb = sigma2_mle * n / (n - 1)
print(f"True σ² = {sigma2_true}")
print(f"MLE   mean = {sigma2_mle.mean():.4f}, var = {sigma2_mle.var():.4f}")
print(f"Unbiased mean = {sigma2_unb.mean():.4f}, var = {sigma2_unb.var():.4f}")
# MSE: MLE = var + bias², unbiased = var
mse_mle = sigma2_mle.var() + (sigma2_mle.mean() - sigma2_true)**2
mse_unb = sigma2_unb.var()
print(f"MSE MLE = {mse_mle:.4f}, MSE unbiased = {mse_unb:.4f}")
# For small n MLE can have lower MSE (bias-variance tradeoff!)

Generalized loss function. MSE is not always the appropriate loss. For θ a probability (constrained to [0, 1]), KL divergence D_{KL}(p_{θ_0} || p_{θ̂}) is preferable. For robust estimators, Huber loss (quadratic for small residuals, linear for large): L(r) = r²/2 if |r| ≤ k, k|r| − k²/2 otherwise, reduces sensitivity to outliers.

Bias, variance, MSE, consistency, asymptotic normality

Consistency. θ̂_n is consistent for θ iff θ̂_n →_P θ as n → ∞ under P_θ. Strong consistency: θ̂_n → θ a.s. Conditions: application of weak or strong LLN to the form of θ̂_n (e.g., method of moments, sample mean). For MLE, consistency requires regularity (continuity of log-likelihood, identifiability, compactness).

Asymptotic normality. θ̂_n is asymptotically Normal iff √n(θ̂_n − θ) ⇒ N(0, V(θ)) for some V(θ), called asymptotic variance. V(θ)/n is the asymptotic variance of θ̂_n. Combined with consistency, it provides the basis for asymptotic CIs and Wald tests. Delta method: for g differentiable at θ with g'(θ) ≠ 0, √n(g(θ̂_n) − g(θ)) ⇒ N(0, g'(θ)² V(θ)).

Example: sample mean. For i.i.d. with E[X_1] = μ, Var(X_1) = σ²: X̄_n is unbiased, consistent (LLN), asymptotically Normal (CLT) with asymptotic variance σ². For unknown σ², substitute S_n²; Slutsky guarantees same limit law. Asymptotic CI: X̄_n ± z_{1−α/2} S_n/√n.

Bias-variance tradeoff in practice. Shrinkage estimators (James-Stein 1961): θ̂_{JS} = (1 − (k − 2)/||X||²) X for k ≥ 3 dominates the sample mean in MSE (paradoxical: introduces bias to reduce variance). Ridge regression: introduces penalty λ ||β||² in least squares, biased but with lower variance for small n and large p; used in genomics, image processing.

import numpy as np
rng = np.random.default_rng(7)
# James-Stein vs MLE for N(θ, I_k) with k = 5
k, trials = 5, 20000
theta_true = np.array([1, 2, -1, 0.5, 0.3])
X = rng.multivariate_normal(theta_true, np.eye(k), size=trials)  # n=1 sample per trial
mle = X
# James-Stein (Efron-Morris 1973)
norm2 = (X**2).sum(axis=1)
shrink = np.maximum(0, 1 - (k - 2) / norm2)
js = shrink[:, None] * X
mse_mle = ((mle - theta_true)**2).sum(axis=1).mean()
mse_js  = ((js  - theta_true)**2).sum(axis=1).mean()
print(f"MLE MSE = {mse_mle:.4f}")
print(f"JS  MSE = {mse_js:.4f}")
# James-Stein dominates MLE in MSE for k ≥ 3 (Stein's paradox 1956)

Efficiency. An unbiased estimator θ̂_n is efficient iff it attains the Cramér-Rao lower bound: Var(θ̂_n) = 1/(n I(θ)), where I(θ) is the Fisher information. Asymptotic efficiency: √n(θ̂_n − θ) ⇒ N(0, 1/I(θ)). MLE is asymptotically efficient under regularity (Cramér 1946). Inefficient estimators have larger asymptotic variance; the efficient/inefficient ratio is called relative efficiency. Example: mean vs median for Normal, RE(median) ≈ 0.637.

Cramér-Rao inequality and Fisher information

Let P_θ be regular (support independent of θ, differentiability under the integral, etc.). The score function is U_n(θ) = ∂/∂θ log L_n(θ; X_1, …, X_n). For i.i.d., U_n(θ) = Σ_i u(X_i, θ) with u(x, θ) = ∂/∂θ log p_θ(x). Under regularity, E_θ[u(X_1, θ)] = 0.

The Fisher information for a single observation is I(θ) = E_θ[u(X_1, θ)²] = −E_θ[∂²/∂θ² log p_θ(X_1)] (covariant form and second-derivative form). For n i.i.d. observations: I_n(θ) = n I(θ). In dimension k: I(θ) ∈ ℝ^{k×k} symmetric positive definite matrix (under identifiability).

Theorem (Cramér-Rao, 1945-1946). For θ̂_n unbiased of θ ∈ ℝ under regularity: Var(θ̂_n) ≥ 1/I_n(θ) = 1/(n I(θ)). For θ ∈ ℝ^k: Cov(θ̂_n) − I_n(θ)^{-1} is PSD. Proof: Cauchy-Schwarz between θ̂_n − θ (deviation) and U_n(θ) (score), using E[θ̂_n U_n(θ)] = ∂/∂θ E[θ̂_n] = ∂/∂θ θ = 1.

Examples. Bernoulli(p): I(p) = 1/(p(1−p)), CR bound = p(1−p)/n. Sample proportion p̂ = X̄ attains the bound, is efficient. Gaussian(μ, σ² fixed): I(μ) = 1/σ², bound = σ²/n, attained by X̄. Exponential(λ): I(λ) = 1/λ², bound = λ²/n, attained by 1/X̄. Pareto(α, x_m fixed): I(α) = 1/α², bound = α²/n, attained by MLE 1/(log X̄ − log x_m).

import numpy as np
from scipy import stats

rng = np.random.default_rng(100)
# Verify Cramér-Rao: bound vs empirical variance for λ MLE
trials, n = 10000, 50
lam_true = 2.5
X = rng.exponential(scale=1/lam_true, size=(trials, n))
lam_hat = 1 / X.mean(axis=1)
cr_bound = lam_true**2 / n  # asymptotic
empirical_var = lam_hat.var()
# For finite n, MLE is biased: E[λ̂] = λ · n/(n-1). Correction: λ̂_unb = λ̂ · (n-1)/n
print(f"True λ = {lam_true}")
print(f"CR bound = {cr_bound:.4f}")
print(f"Empirical Var = {empirical_var:.4f}")
print(f"Ratio = {empirical_var / cr_bound:.4f}")  # → 1 for large n
# MLE bias
print(f"E[λ̂] - λ ≈ {lam_hat.mean() - lam_true:.4f}, expected ≈ λ/(n-1) = {lam_true/(n-1):.4f}")

Information geometry. Fisher information induces a Riemannian metric on Θ: the distance between θ_1 and θ_2 is the geodesic length computed with I(θ). For Bernoulli, it is the Fisher–Rao distance 2 arccos(√(p_1 p_2) + √((1-p_1)(1-p_2))). For Gaussians with the same variance, it is simply |μ_1 − μ_2|/σ. This perspective (Amari-Nagaoka 2000 Methods of Information Geometry) is fundamental in deep learning (Amari's natural gradient 1998).

When CR fails. Non-regular models: support depending on θ (Uniform(0, θ): MLE = max(X_i), order statistic, variance O(1/n²), beyond CR bound); non-differentiable laws (Laplace: CR bound not directly applicable); under-identified models (mixtures). In these cases, MLE can converge at a super-efficient rate.

Sufficiency, completeness, Rao-Blackwell, Lehmann-Scheffé

A statistic T(X) is sufficient for θ iff the conditional distribution P(X | T = t) does not depend on θ. Intuitively, T condenses all the information about the parameter contained in the sample; the rest is "noise". Fisher-Neyman factorization theorem: T is sufficient for θ iff there exist g, h with f_θ(x) = g(T(x), θ) · h(x).

Examples: for X_i ∼ N(μ, σ²) i.i.d., T = (Σ X_i, Σ X_i²) is sufficient for (μ, σ²). For Bernoulli, T = Σ X_i sufficient for p. For Exponential(λ), T = Σ X_i sufficient. For Uniform(0, θ), T = max X_i sufficient. The exponential family p_θ(x) = h(x) exp(η(θ)^T T(x) − A(θ)) has T(x) as natural sufficient statistic; T's dimension is reduced independently of n.

Minimal sufficiency: T sufficient is minimal iff it is a function of every other sufficient statistic. Completeness: T is complete for θ iff E_θ[g(T)] = 0 ∀θ ⇒ g(T) = 0 a.s. Completeness is a fundamental technical property to prove uniqueness of UMVUE. Exponential families (with parameter at an interior point of the canonical set) have complete sufficient statistics.

Rao-Blackwell theorem (1945-1947). Let W be unbiased estimator of θ and T sufficient. Then φ(T) := E[W | T] is unbiased, Var(φ(T)) ≤ Var(W) (equality iff W is a function of T). Procedure: given any estimator, condition on the sufficient statistic to improve it in MSE.

import numpy as np
rng = np.random.default_rng(3)
# Bernoulli(p): simple estimator W = X_1 vs Rao-Blackwell W' = X̄
trials, n = 50000, 20
p_true = 0.3
X = (rng.uniform(size=(trials, n)) < p_true).astype(float)
W_simple = X[:, 0]  # X_1, unbiased but noisy
W_rb = X.mean(axis=1)  # Rao-Blackwell of W_simple conditioned on Σ X_i
print(f"E[W_simple] = {W_simple.mean():.4f}, Var = {W_simple.var():.4f}")
print(f"E[W_rb]     = {W_rb.mean():.4f}, Var = {W_rb.var():.4f}")
# Var(W_rb) = p(1-p)/n << Var(W_simple) = p(1-p)
# Ratio = n: Rao-Blackwell reduces variance by factor n

Lehmann-Scheffé theorem (1950). If T is sufficient and complete, and W = g(T) is unbiased for θ, then W is UMVUE - minimum variance unbiased estimator, unique a.s. Application: for exponential families with complete sufficient statistic T, find g(T) unbiased and you automatically get the UMVUE.

Bernoulli example: T = Σ X_i ∼ Bin(n, p) is sufficient and complete for p; p̂ = T/n is unbiased, hence UMVUE. Variance p(1−p)/n attains CR bound - the ideal case (efficient and UMVUE). Exponential(λ): T = Σ X_i ∼ Gamma(n, 1/λ), sufficient and complete. UMVUE of λ: (n−1)/Σ X_i (corrected vs biased MLE n/Σ X_i).

Ancillary statistics. A statistic A is ancillary iff its distribution does not depend on θ. Examples: differences X_i − X̄ for shift-only Gaussian. Basu's theorem: if T sufficient complete and A ancillary, then T and A are independent. Used to derive useful conditional distributions (e.g., Student's t distribution as ratio of standard Normal and chi-squared root, independent).

Methods: moments, MLE, M-estimators, U-statistics

Method of moments (MM, Pearson 1894). For θ ∈ ℝ^k, equate first k theoretical moments to empirical moments: m_j(θ) = E_θ[X^j], m̂_j = (1/n) Σ X_i^j; solve m_j(θ̂) = m̂_j for j = 1, …, k. Advantage: computational simplicity, consistency (LLN). Disadvantage: not efficient in general, sensitive to tails (high moments depend strongly on outliers).

Gamma(α, β) example: μ = αβ, σ² = αβ²; solve: β̂ = σ̂²/μ̂, α̂ = μ̂²/σ̂². Comparison with Gamma MLE: MLE has no closed form, requires numerical optimization; MM is closed but less accurate.

Maximum likelihood (MLE). θ̂_{MLE} = arg max_θ L(θ; X_1, …, X_n) = arg max_θ Σ log p_θ(X_i). Asymptotic properties (under regularity, Cramér 1946, Wald 1949): consistency, asymptotic normality with variance 1/I(θ), asymptotic efficiency. For Gaussian, MLE coincides with method of moments. For logistic regression, Poisson regression, GLM in general: MLE obtained via iteratively reweighted least squares (IRLS) or Newton-Raphson.

import numpy as np
from scipy import optimize, stats

rng = np.random.default_rng(50)
# Beta(α, β) MLE via numerical optimization
n = 200
alpha_true, beta_true = 2.5, 5.0
X = stats.beta.rvs(alpha_true, beta_true, size=n, random_state=rng)
def neg_loglik(params):
    a, b = params
    if a <= 0 or b <= 0:
        return np.inf
    return -stats.beta.logpdf(X, a, b).sum()
# Starting point: method of moments
mu = X.mean(); v = X.var()
a0 = mu * (mu * (1 - mu) / v - 1)
b0 = (1 - mu) * (mu * (1 - mu) / v - 1)
res = optimize.minimize(neg_loglik, [a0, b0], method='Nelder-Mead')
a_mle, b_mle = res.x
print(f"True: α = {alpha_true}, β = {beta_true}")
print(f"MM   : α = {a0:.4f}, β = {b0:.4f}")
print(f"MLE  : α = {a_mle:.4f}, β = {b_mle:.4f}")

M-estimator (Huber 1964). θ̂ = arg min_θ Σ ρ(X_i, θ) for some loss function ρ. MLE is M-estimator with ρ = −log p_θ. Robust M-estimator: ρ(x, θ) = Huber loss; trimmed mean, median (ρ = |x − θ|). Z-estimator: θ̂ solution of Σ ψ(X_i, θ̂) = 0 where ψ = ∂ρ/∂θ. Asymptotically Normal with variance E[ψ²]/[E[ψ']]² (sandwich formula).

U-statistics (Hoeffding 1948). Estimators of symmetry parameters in the sample. For symmetric kernel h(x_1, …, x_m): U_n = (1/(n choose m)) Σ_{|S|=m} h(X_S). Example: sample variance with h(x, y) = (x − y)²/2, giving U_n = S_n². Variance of U-statistics: Var(U_n) = O(1/n) with explicit constant via Hoeffding decomposition; CLT holds (Hoeffding 1948). Rank-based statistic (Mann-Whitney) is a U-statistic with kernel h(x, y) = 1_{x < y}.

For modern applications: GMM (Hansen 1982, Nobel 2013) generalizes M-estimator to moment systems, basis of modern econometrics. Empirical likelihood (Owen 1990) builds non-parametric statistics based on maximization of non-parametric likelihood. Robust statistics (Hampel et al. 1986): influence function as a tool to study sensitivity to outliers.

Bootstrap, jackknife, and estimating the sampling distribution

Efron's bootstrap (1979). Estimate the sampling distribution of θ̂_n by resampling with replacement from the data: for b = 1, …, B, generate X*^{(b)} = (X*_1^{(b)}, …, X*_n^{(b)}) sampling uniform from the original data (with replacement); compute θ̂*^{(b)}; the empirical distribution of {θ̂*^{(b)}}_{b=1}^B approximates that of θ̂_n. Consistency (Singh 1981): for "smooth" statistics, √n(θ̂*_n − θ̂_n) | data ⇒ √n(θ̂_n − θ).

Bootstrap CIs. Percentile: [θ̂*_{(α/2)}, θ̂*_{(1−α/2)}] from empirical quantiles. Basic/pivotal: [2θ̂_n − θ̂*_{(1−α/2)}, 2θ̂_n − θ̂*_{(α/2)}]. Bias-corrected and accelerated (BCa, Efron 1987): bias and skewness correction via influence function, error O(1/n) vs O(1/√n) of simple percentile. Studentized: uses bootstrap standard error to pivot, error o(1/n) (high-order accuracy, Hall 1992).

Jackknife (Quenouille 1949, Tukey 1958). Bootstrap predecessor. For i = 1, …, n, compute θ̂_{(−i)} = T_{n−1}(X_1, …, X_{i−1}, X_{i+1}, …, X_n). Jackknife estimator: θ̂_J = n θ̂_n − (n−1) θ̂_{(.)} where θ̂_{(.)} = (1/n) Σ θ̂_{(−i)}. Reduces bias from order O(1/n) to O(1/n²). Jackknife variance: V̂_J = (n−1)/n · Σ (θ̂_{(−i)} − θ̂_{(.)})², used in survey statistics and meta-analysis.

import numpy as np
rng = np.random.default_rng(2024)
# Bootstrap for correlation coefficient
n = 100
true_rho = 0.6
cov = np.array([[1, true_rho], [true_rho, 1]])
data = rng.multivariate_normal([0, 0], cov, size=n)
rho_hat = np.corrcoef(data.T)[0, 1]
# Bootstrap
B = 5000
rho_boot = np.empty(B)
for b in range(B):
    idx = rng.integers(n, size=n)
    rho_boot[b] = np.corrcoef(data[idx].T)[0, 1]
# Fisher z transform for symmetric CI
z = 0.5 * np.log((1 + rho_hat) / (1 - rho_hat))
se_z = 1 / np.sqrt(n - 3)  # note: asymptotic
ci_z = (z - 1.96 * se_z, z + 1.96 * se_z)
ci_fisher = (np.tanh(ci_z[0]), np.tanh(ci_z[1]))
ci_boot = np.percentile(rho_boot, [2.5, 97.5])
print(f"True ρ = {true_rho}, sample ρ = {rho_hat:.4f}")
print(f"Fisher z CI 95%: ({ci_fisher[0]:.4f}, {ci_fisher[1]:.4f})")
print(f"Bootstrap CI 95%: ({ci_boot[0]:.4f}, {ci_boot[1]:.4f})")

Parametric bootstrap. If you assume parametric model P_θ: estimate θ̂_n, then generate X*^{(b)} ∼ P_{θ̂_n}. More efficient than non-parametric if the model is correct, but sensitive to misspecification. Common in MLE for complex models (GLM, mixed models).

Bootstrap for time series. i.i.d. bootstrap fails with dependence. Block bootstrap (Künsch 1989): resamples consecutive blocks of length ℓ; preserves local dependence. Stationary bootstrap (Politis-Romano 1994): blocks of geometric length. Wild bootstrap (Wu 1986): keeps X_i fixed and resamples residuals with random sign; used in regression with heteroskedasticity.

Cross-validation as bootstrap. Leave-one-out CV is approximately jackknife in MSE. K-fold CV has higher variance (fold correlation). 0.632 bootstrap (Efron 1983): combination of in-sample and out-of-bag error, reduces optimism of training error.

Advanced connections

Estimator theory intertwines with modern machine learning. Empirical risk minimization (ERM) is M-estimator: θ̂ = arg min Σ ℓ(y_i, f_θ(x_i)) for some loss ℓ. Cross-entropy in classification is conditional Bernoulli/multinomial MLE; MSE in regression is Gaussian MLE. Regularization (L2, L1, elastic net) is Bayesian MAP with Normal, Laplace, mixture prior. Deep learning: SGD on MLE does not guarantee global optimum (non-convex loss), but recent theory (Mei-Bai-Montanari 2018) shows SGD on wide networks converges to efficient solutions.

In causal inference: IPW estimators (Inverse Propensity Weighted, Robins 1986), doubly robust (Bang-Robins 2005), TMLE (van der Laan-Rose 2011) build efficient semi-parametric estimators of the causal effect. CRLB becomes semi-parametric efficiency bound (Bickel-Klaassen-Ritov-Wellner 1993). References applied to epidemiology, policy evaluation, A/B testing.

In statistical learning theory: PAC-Bayes (McAllester 1999) provides non-asymptotic generalization-error bounds combining distribution and learner information. VC dimension (Vapnik-Chervonenkis 1971), Rademacher complexity (Bartlett-Mendelson 2002) characterize "capacity" of a hypothesis class. Optimal convergence rates for non-parametric estimators (Hölder, Sobolev smooth functions) are determined by complexity dimension of the class (Stone 1980, Tsybakov 2009 Introduction to Nonparametric Estimation).

Pitfalls, edge cases, and silent failures

  • MLE on misspecified model. If the true data-generating process is not in P_θ, MLE converges to the quasi-MLE minimizing KL divergence from the family. Asymptotic variance is sandwich, not Fisher: √n(θ̂ − θ_*) ⇒ N(0, J^{-1} I J^{-1}) (White 1982).
  • Bootstrap without pivot. Percentile bootstrap is not invariant under reparameterization and has error O(1/√n) like Normal; need studentization or BCa to benefit from higher-order convergence.
  • Non-binding Cramér-Rao for biased estimators. For biased estimators, one with variance below CR bound may exist (e.g., James-Stein); CR applies only to unbiased.
  • Sufficiency confused with "information". Sufficient statistic for θ does not imply sufficient for g(θ): e.g., T = Σ X_i is sufficient for p in Bernoulli but not for p² in a fully "complete" sense w.r.t. the whole sample.
  • Pointwise vs uniform log-likelihood convergence. MLE consistency requires uniform convergence of (1/n) log L_n(θ) → E[log p_θ(X)] in a neighborhood of true θ_0; counterexamples with non-compact parameter space or improper priors.
  • Biased plug-in estimators. For non-linear g and g(X̄) plug-in estimator: bias ≈ g''(μ) σ²/(2n) (Taylor). For g(x) = 1/x, positive bias if right-skewed distribution (e.g., exponential).
  • Weak vs strong identifiability. Model identifiable on the orbit of symmetries (e.g., label switching in mixture) requires ordering constraints or reparameterization (e.g., μ_1 < μ_2) for valid inference.
  • Selection bias and conditional estimators. If we select the estimator based on the data (model selection), its distribution is degenerate; need post-selection correction (Berk et al. 2013 Valid post-selection inference).

Advanced exercises

  1. Cramér-Rao for Gamma. For Gamma(α, β), compute the 2x2 matrix I(α, β). Verify that MLE is asymptotically efficient by empirically comparing n · Cov(α̂, β̂) with I^{-1} for n = 100, 1000.
  2. UMVUE for Poisson. Prove that for X_1, …, X_n ∼ Poisson(λ) i.i.d., X̄ is UMVUE of λ using Lehmann-Scheffé. Find UMVUE of e^{-λ} (probability X = 0).
  3. Robust M-estimator. Implement Huber M-estimator for median vs mean; compare MSE on Normal data contaminated with 5% outliers N(0, 100).
  4. Consistent bootstrap for quantiles. Show that percentile bootstrap for quantile 0.5 (median) has error O(n^{-1/4}), worse than O(n^{-1/2}) for the mean. Use smoothed bootstrap to recover standard convergence.
  5. Bernoulli information geometry. Plot the Fisher-Rao metric on p ∈ (0, 1). Show that the geodesic between p_1 = 0.1 and p_2 = 0.9 is longer than between p_1 = 0.4 and p_2 = 0.6 despite same difference in p.
  6. Asymptotic likelihood-ratio test. Prove that under H_0, 2 (log L(θ̂_{MLE}) − log L(θ_0)) ⇒ χ²_k where k is the dimension of θ (Wilks 1938). Numerically verify for k = 1, 2, 3 with Gaussian, exponential, Gamma.

Essential bibliography

  • G. Casella, R.L. Berger, Statistical Inference, 2nd ed., Duxbury, 2002 - riferimento generale.
  • A.W. van der Vaart, Asymptotic Statistics, Cambridge University Press, 2000.
  • E.L. Lehmann, G. Casella, Theory of Point Estimation, 2nd ed., Springer, 1998.
  • B. Efron, R.J. Tibshirani, An Introduction to the Bootstrap, CRC Press, 1993.
  • C.M. Bishop, Pattern Recognition and Machine Learning, Springer, 2006 - cap. 2 (likelihood, MLE).
  • L. Wasserman, All of Statistics, Springer, 2004 - cap. 6-9 (inferenza puntuale, bootstrap, MLE).
  • MIT OCW 18.650 - Statistics for Applications.

Technical prerequisites

  • Probability: random variables, expectation, variance, independence.
  • CLT and LLN (previous article in series).
  • Differential calculus: partial derivatives, Jacobian, optimization.
  • Linear algebra: symmetric matrices, inversion, eigenvalues.
  • Scientific Python: scipy.optimize, scipy.stats, numpy.

Related resources

Article updated 2026-05-16, senior/graduate level.

Commenti

Caricamento commenti...

Sign in to comment

Discuss this article in the community

Join the Telegram group to discuss with other developers, ask questions and share your experiences.

Did you like this article?

Explore other content on the blog or discover my projects