Multivariate Normal Inference and Markov Chains in Numbers: Hotelling's T², the Wishart Distribution and Maximum Likelihood, Marginal and Conditional Laws, Stationary Distributions and Convergence

Section 11 of the Statistics paper names Hotelling's T² test, the Wishart distribution, marginal distributions and the maximum likelihood estimation of the mean vector, and Sections 6 and 7 name convergence of random variables and the limiting behaviour of n-step transition probabilities; the first chapters of those sections state them in words. With n = 10 observations on two variables, a sample mean (5.4, 7.5) against a hypothesised (5, 8) and S = [[2, 0.8], [0.8, 1.5]], Hotelling's T² is 4.49, which converts to F = 2.00 on (2, 8) degrees of freedom (critical value 4.46, p = 0.20); for a bivariate normal with covariance [[4, 1.2], [1.2, 2]], X₁ + X₂ has variance 8.4; and the chain with rows (0.7, 0.3) and (0.4, 0.6) has stationary distribution (0.5714, 0.4286) and second eigenvalue 0.3.
Overview

The Multivariate Normal: Marginals, Linear Combinations and Conditionals

1 min read

A random vector X ~ N_p(μ, Σ) has mean vector μ and dispersion (covariance) matrix Σ, symmetric positive semidefinite, with the variances on the diagonal. Its marginal distributions are normal with the corresponding sub-vector of μ and sub-block of Σ; any linear combination a′X is normal with mean a′μ and variance a′Σa. For μ = (1, 2) and Σ = [[4, 1.2], [1.2, 2]]: X₁ + X₂ has mean 3 and variance 4 + 2 + 2(1.2) = 8.4, while X₁ − X₂ has variance 4 + 2 − 2(1.2) = 3.6; the correlation is ρ = 1.2/√(4 × 2) = 0.424. The conditional distribution of X₁ given X₂ = x₂ is normal with mean μ₁ + Σ₁₂Σ₂₂⁻¹(x₂ − μ₂) and variance Σ₁₁ − Σ₁₂²/Σ₂₂: at x₂ = 3, mean = 1 + (1.2/2)(1) = 1.6, variance = 4 − 1.44/2 = 3.3 — smaller than the marginal variance 4, because knowing X₂ explains part of X₁. Zero covariance means independence only in the normal case (marginal normality of each component is not enough: jointly normal is needed). The maximum likelihood estimators from n observations are μ̂ = x̄ (the sample mean vector) and Σ̂ = (1/n)Σ(xᵢ − x̄)(xᵢ − x̄)′ = ((n − 1)/n) S, which is biased; for S = [[2, 0.8], [0.8, 1.5]] and n = 10 the MLE is [[1.8, 0.72], [0.72, 1.35]], whereas S, with divisor n − 1, is unbiased.

QuantityFormulaValue here
Var(X₁ + X₂)Σ₁₁ + Σ₂₂ + 2Σ₁₂8.4
CorrelationΣ₁₂/√(Σ₁₁Σ₂₂)0.424
E[X₁ | X₂ = 3]μ₁ + Σ₁₂Σ₂₂⁻¹(x₂ − μ₂)1.6
Var(X₁ | X₂)Σ₁₁ − Σ₁₂²/Σ₂₂3.3

A random vector X ~ N_p(μ, Σ) has mean vector μ and dispersion (covariance) matrix Σ, symmetric positive semidefinite, with the variances on the diagonal. Its marginal distributions are…

Hotelling's T² and the Wishart Distribution

1 min read

The Wishart distribution W_p(Σ, ν) is the distribution of the matrix Σᵢ₌₁^ν zᵢzᵢ′ for independent zᵢ ~ N_p(0, Σ); it generalises the chi-squared (for p = 1, W = σ²χ²_ν), has E[W] = νΣ (for ν = 9, Σ = [[4, 1.2], [1.2, 2]]: E[W] = [[36, 10.8], [10.8, 18]]), and the scatter matrix (n − 1)S of a normal sample is W_p(Σ, n − 1), independent of x̄. Hotelling's T² is the multivariate analogue of the squared t statistic, for testing H₀: μ = μ₀: T² = n(x̄ − μ₀)′S⁻¹(x̄ − μ₀), and under H₀ ((n − p)/(p(n − 1))) T² ~ F(p, n − p). For n = 10, p = 2, x̄ − μ₀ = (0.4, −0.5) and S = [[2, 0.8], [0.8, 1.5]]: T² = 4.49, so F = (8/18) × 4.49 = 2.00 on (2, 8) df, against the 5% critical value 4.46, p = 0.20: H₀ is not rejected. Testing the two means separately with t-tests would ignore the correlation (here 0.46) and inflate the Type I error; T² uses the whole covariance structure and is invariant to non-singular linear transformations of the variables. With p = 1, T² = t². Hotelling's T² is also used for a two-sample comparison with pooled covariance, and its limiting distribution for large n is chi-squared with p degrees of freedom.

QuantityFormulaValue here
T²n(x̄ − μ₀)′S⁻¹(x̄ − μ₀)4.49
F statistic(n − p)T²/(p(n − 1))2.00
5% critical F(2, 8)table4.46
E[W], ν = 9νΣ[[36, 10.8], [10.8, 18]]

The Wishart distribution W_p(Σ, ν) is the distribution of the matrix Σᵢ₌₁^ν zᵢzᵢ′ for independent zᵢ ~ N_p(0, Σ); it generalises the chi-squared (for p = 1, W = σ²χ²_ν), has E[W] = νΣ (for…

Markov Chains: Limiting Behaviour of n-Step Transition Probabilities

1 min read

The n-step transition matrix is Pⁿ (Chapman–Kolmogorov). For P = [[0.7, 0.3], [0.4, 0.6]]: P² = [[0.61, 0.39], [0.52, 0.48]], and P¹⁰ already has both rows nearly equal to (0.5714, 0.4286). The limit exists because the chain is irreducible (all states communicate), aperiodic (the diagonal is positive, so the period is 1) and finite, hence positive recurrent; then Pⁿ → a matrix whose rows are the stationary distribution π, the solution of πP = π, Σπᵢ = 1: 0.3π₁ = 0.4π₂ gives π = (4/7, 3/7) = (0.5714, 0.4286). The speed of convergence is the second-largest eigenvalue modulus: the eigenvalues are 1 and 0.3 (trace 1.3 − 1), so the error shrinks as 0.3ⁿ, a factor of 10⁻⁵ after 10 steps. The classification of states: a state is recurrent if return is certain (and positive recurrent if the mean return time 1/πᵢ is finite: 1.75 and 2.33 steps here), transient otherwise; a periodic chain such as [[0, 1], [1, 0]] has no limit of Pⁿ although a stationary distribution (½, ½) exists; an absorbing state (pᵢᵢ = 1) in a gambler's ruin with fair coin gives a ruin probability i/N-type linear in the start (from 1 with absorbing barriers at 0 and 3: probability of reaching 3 first is 1/3). Brownian motion is the continuous limit: B(t) ~ N(0, t) with independent increments and continuous paths.

PropertyConditionResult for this chain
Stationary distributionπP = π(0.5714, 0.4286)
Second eigenvalueRate of convergence0.3
Mean return times1/πᵢ1.75, 2.33
Periodic chainNo limit of PⁿStationary law exists

The n-step transition matrix is Pⁿ (Chapman–Kolmogorov). For P = [[0.7, 0.3], [0.4, 0.6]]: P² = [[0.61, 0.39], [0.52, 0.48]], and P¹⁰ already has both rows nearly equal to (0.5714, 0.4286).…

Convergence of Random Variables and the Laws of Large Numbers

2 min read · 1 part

Xₙ converges in probability to X if P(|Xₙ − X| > ε) → 0 for every ε; almost surely if P(Xₙ → X) = 1; in distribution if the distribution functions converge at continuity points; and in mean square if E|Xₙ − X|² → 0. The implications are: almost sure ⇒ in probability ⇒ in distribution, and mean square ⇒ in probability; the converses fail in general (except convergence in distribution to a constant, which gives convergence in probability). The weak law of large numbers says X̄ₙ → μ in probability, and by Chebyshev's inequality P(|X̄ₙ − p| ≥ ε) ≤ p(1 − p)/(nε²): for a proportion with ε = 0.05 and a bound of 0.05, n ≥ 0.25/(0.0025 × 0.05) = 2000 observations guarantee it (a conservative bound; the CLT needs far fewer). The strong law gives almost-sure convergence. The central limit theorem gives X̄ₙ ≈ N(p, p(1 − p)/n): for n = 400 and p = 0.5, σ = 0.025, so P(|X̄ − 0.5| ≤ 0.05) = P(|Z| ≤ 2) = 0.9545, far tighter than Chebyshev's 0.85. Slutsky's lemma: if Xₙ → X in distribution and Yₙ → c in probability then Xₙ + Yₙ → X + c and XₙYₙ → cX, which justifies replacing σ by the sample s in the t statistic. The Borel–Cantelli lemma: if Σ P(Aₙ) < ∞ then P(Aₙ infinitely often) = 0.

ModeDefinitionImplies
Almost sureP(Xₙ → X) = 1In probability
Mean squareE|Xₙ − X|² → 0In probability
In probabilityP(|Xₙ − X| > ε) → 0In distribution
In distributionCDFs convergeNothing stronger in general
🎯 A stationary distribution, found by balance
For the two-state chain with P = [[0.9, 0.1], [0.5, 0.5]] the stationary vector π satisfies πP = π, and balance across the cut gives π₁ × 0.1 = π₂ × 0.5, so π₁ = 5π₂ and with π₁ + π₂ = 1 we get π = (5/6, 1/6). The chain is irreducible and aperiodic, so every row of Pⁿ converges to π; the mean return time to state 2 is 1/π₂ = 6 steps.

Xₙ converges in probability to X if P(|Xₙ − X| > ε) → 0 for every ε; almost surely if P(Xₙ → X) = 1; in distribution if the distribution functions converge at continuity points; and in mean…

Key takeaways

  • For a multivariate normal, a′X ~ N(a′μ, a′Σa); the conditional variance Σ₁₁ − Σ₁₂²/Σ₂₂ never exceeds the marginal variance; MLEs are x̄ and (n − 1)S/n.
  • Hotelling's T² = n(x̄ − μ₀)′S⁻¹(x̄ − μ₀), with (n − p)T²/(p(n − 1)) ~ F(p, n − p); (n − 1)S ~ Wishart W_p(Σ, n − 1) and E[W] = νΣ.
  • A finite irreducible aperiodic chain has Pⁿ → rows equal to the unique stationary distribution; the convergence rate is the second-largest eigenvalue modulus.
  • Almost-sure and mean-square convergence each imply convergence in probability, which implies convergence in distribution; Chebyshev gives a conservative sample size, the CLT a sharp one.
  • Slutsky's lemma lets us replace an unknown σ by s in a limiting distribution.

Practice questions (24)

Attempt each one before opening the answer. Every explanation names the tempting wrong option as well as the right one, because that is where marks are lost.

  1. X ~ N₂(μ, Σ) with Σ = [[4, 1.2], [1.2, 2]]. The variance of X₁ + X₂ is:

    Numerical answer — type the value.

    Show answer

    Answer: 8.4

    Var(X₁ + X₂) = Σ₁₁ + Σ₂₂ + 2Σ₁₂ = 4 + 2 + 2.4 = 8.4. Omitting the covariance term would give 6.
  2. With μ = (1, 2) and Σ = [[4, 1.2], [1.2, 2]], the conditional variance of X₁ given X₂ (two decimals) is:

    Numerical answer — type the value.

    Show answer

    Answer: 3.28

    Var(X₁ | X₂) = 4 − 1.2²/2 = 4 − 0.72 = 3.28. It does not depend on the value of x₂, only on Σ.
  3. The maximum likelihood estimator of the covariance matrix of a multivariate normal sample of size n is:

    1. S, with divisor n − 1
    2. ((n − 1)/n) S, the biased estimator with divisor n
    3. S/n
    4. The identity matrix
    Show answer

    Answer: B — ((n − 1)/n) S, the biased estimator with divisor n

    Maximising the likelihood gives Σ̂ = (1/n)Σ(xᵢ − x̄)(xᵢ − x̄)′, which is biased low by the factor (n − 1)/n; S, with n − 1, is the unbiased version.
Show the other 21 questions
  1. Hotelling's T² for n = 10, x̄ − μ₀ = (0.4, −0.5) and S = [[2, 0.8], [0.8, 1.5]] (two decimals) is:

    Numerical answer — type the value.

    Show answer

    Answer: 4.49

    det S = 3 − 0.64 = 2.36 and S⁻¹ = (1/2.36)[[1.5, −0.8], [−0.8, 2]]; d′S⁻¹d = (1.5 × 0.16 + 0.32 + 2 × 0.25)/2.36 = 1.06/2.36 = 0.449, so T² = 10 × 0.449 = 4.49.
  2. Under H₀, the statistic (n − p)T²/(p(n − 1)) for Hotelling's test has the distribution:

    1. F with p and n − p degrees of freedom
    2. Chi-squared with p degrees of freedom exactly
    3. Standard normal
    4. t with n − 1 degrees of freedom
    Show answer

    Answer: A — F with p and n − p degrees of freedom

    T² is a ratio of a Wishart-based quadratic form and an independent chi-squared type quantity, which scales to an F(p, n − p). The chi-squared with p df is only the large-sample limit, and for p = 1 the F reduces to t².
  3. The Markov chain with rows (0.7, 0.3) and (0.4, 0.6) has a stationary probability of state 1 equal to (four decimals):

    Numerical answer — type the value.

    Show answer

    Answer: 0.5714

    πP = π gives 0.3π₁ = 0.4π₂, so π₁/π₂ = 4/3 and π₁ = 4/7 = 0.5714. The long-run share does not depend on the starting state.
  4. Which condition makes the n-step transition probabilities of a finite Markov chain converge to the same limit from every starting state?

    1. The chain has an absorbing state
    2. All transition probabilities are 0.5
    3. The chain is periodic with period 2
    4. The chain is irreducible and aperiodic
    Show answer

    Answer: D — The chain is irreducible and aperiodic

    Irreducibility gives a unique stationary law and aperiodicity removes oscillation, so Pⁿ converges to rows equal to π. A periodic chain such as [[0, 1], [1, 0]] oscillates and has no limit; an absorbing state makes the limit depend on the start.
  5. By Chebyshev's inequality, the smallest sample size n that guarantees P(|X̄ − p| ≥ 0.05) ≤ 0.05 for any proportion p, using p(1 − p) ≤ 0.25, is:

    Numerical answer — type the value.

    Show answer

    Answer: 2000

    n ≥ 0.25/(ε² δ) = 0.25/(0.0025 × 0.05) = 2000. The CLT would need only about 385 for 95% at ε = 0.05, which shows how conservative the Chebyshev bound is.
  6. Which implication between modes of convergence is correct?

    1. Convergence in distribution implies almost sure convergence
    2. Almost sure convergence implies convergence in probability, which implies convergence in distribution
    3. Convergence in probability implies mean-square convergence
    4. Convergence in distribution implies convergence in mean square
    Show answer

    Answer: B — Almost sure convergence implies convergence in probability, which implies convergence in distribution

    The chain a.s. ⇒ in probability ⇒ in distribution holds; the reverse implications fail in general (a sequence can converge in distribution without any relation between the variables, and in probability without a finite second moment).
  7. Which statements are correct?

    1. A periodic irreducible chain has a unique stationary distribution but Pⁿ does not converge
    2. For a jointly normal vector, zero covariance between two components implies independence
    3. The Wishart distribution generalises the chi-squared distribution
    4. Convergence in probability implies almost sure convergence
    Show answer

    Answer: A — A periodic irreducible chain has a unique stationary distribution but Pⁿ does not converge; B — For a jointly normal vector, zero covariance between two components implies independence; C — The Wishart distribution generalises the chi-squared distribution

    Convergence in probability does not imply almost sure convergence (the moving-bump counterexample). The other three are standard.
  8. A Markov chain has transition matrix with rows (0.5, 0.5) and (0.2, 0.8). The two-step probability P(X₂ = 0 | X₀ = 0), correct to two decimal places, is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 0.35

    P²₀₀ = 0.5 × 0.5 + 0.5 × 0.2 = 0.35, summing over the intermediate state. The tempting 0.25 = 0.5² keeps only the path that stays at 0.
  9. In the transition matrix of a time-homogeneous Markov chain,

    1. the matrix must be symmetric
    2. every column sums to 1
    3. every row sums to 1
    4. every entry must be positive
    Show answer

    Answer: C — every row sums to 1

    Row i lists P(next = j | now = i) over all j, which must sum to 1. Column sums of 1 (the tempting option) hold only for doubly stochastic chains.
  10. X = (X₁, X₂) has mean vector (1, 3). E[2X₁ + X₂] is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 5

    Expectation is linear: 2 × 1 + 3 = 5, whatever the dispersion matrix. The tempting 4 adds the means without the weight 2.
  11. For i.i.d. variables with E|X₁| < ∞, the strong law of large numbers asserts that X̄ₙ converges to the mean

    1. only in distribution
    2. almost surely
    3. only if the variance is finite
    4. only in mean square
    Show answer

    Answer: B — almost surely

    Kolmogorov’s SLLN gives P(X̄ₙ → μ) = 1 under a finite first moment alone. Requiring finite variance, the tempting extra condition, belongs to the easy Chebyshev proof of the weak law.
  12. A two-state Markov chain has rows (0.9, 0.1) and (0.5, 0.5). The stationary probability of state 0, correct to three decimal places, is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 0.833

    Balance: π₀ × 0.1 = π₁ × 0.5, so π₀ = 0.5/0.6 = 0.833. The tempting 0.9 reads the self-transition probability.
  13. X has dispersion matrix [[3, 1], [1, 2]]. Cov(X₁, X₁ + X₂) is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 4

    Cov(X₁, X₁) + Cov(X₁, X₂) = 3 + 1 = 4. The tempting 1 keeps only the cross-covariance. Substituting the answer back into the relation confirms it.
  14. For the chain with rows (0.9, 0.1) and (0.5, 0.5), the mean return time to state 0, correct to one decimal place, is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 1.2

    For a positive recurrent state, m₀ = 1/π₀ = 6/5 = 1.2 steps. The tempting 0.833 reports π₀ itself. Substituting the answer back into the relation confirms it.
  15. (X₁, X₂) is bivariate normal with mean (1, 1), unit variances and correlation 0.5. P(X₁ + X₂ > 4), correct to three decimal places, is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 0.124

    X₁ + X₂ ~ N(2, 1 + 1 + 2 × 0.5) = N(2, 3), so P = 1 − Φ(2/√3) = 1 − Φ(1.155) = 0.124. The tempting 0.079 ignores the covariance and uses variance 2.
  16. For a one-sample Hotelling test with n = 11 and p = 2, T² = 10. The equivalent F statistic (n − p)T²/[p(n − 1)] is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 4.5

    9 × 10/(2 × 10) = 4.5, referred to F(2, 9). The tempting 10 uses T² directly as if it were already F. Substituting the answer back into the relation confirms it.
  17. A sample proportion p̂ is based on n = 400 trials with p = 0.5. Its standard deviation is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 0.025

    SD = √(p(1 − p)/n) = √(0.25/400) = 0.025. The tempting 0.000625 is the variance. Substituting the answer back into the relation confirms it.
  18. A gambler starts with 3 units and bets 1 unit on fair coin tosses until reaching 10 units or ruin. The probability of reaching 10 units first is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 0.3

    For a fair walk the hitting probability is linear, h(k) = k/N = 3/10 = 0.3, solving h(k) = ½h(k − 1) + ½h(k + 1). The tempting 0.7 is the ruin probability.
  19. (X₁, X₂, X₃) is trivariate normal with Σ = [[4, 2, 2], [2, 3, 1], [2, 1, 3]]. Var(X₁ | X₂, X₃) is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 2

    σ₁₁ − σ₁₂Σ₂₂⁻¹σ₂₁ with Σ₂₂⁻¹ = [[3, −1], [−1, 3]]/8 gives 4 − (2, 2)·(0.5, 0.5) = 4 − 2 = 2. The tempting 2.67 conditions on X₂ alone (4 − 4/3).
  20. A one-sample Hotelling test uses n = 5, x̄ − μ₀ = (1, −1) and S = [[1, 0.5], [0.5, 1]]. The value of T² = n(x̄ − μ₀)ᵀS⁻¹(x̄ − μ₀) is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 20

    S⁻¹ = [[1, −0.5], [−0.5, 1]]/0.75, so dᵀS⁻¹d = (1 + 1 + 1)/0.75 = 4 and T² = 20. The tempting 10 ignores the correlation (S = I), but the positive correlation makes the opposite-signed deviations more surprising.
  21. X₁, …, Xₙ are i.i.d. Poisson(4). By the delta method, √n(ln X̄ − ln 4) converges to N(0, v). The value of v is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 0.25

    g(x) = ln x, g′(4) = 1/4 and Var X = 4, so v = (1/4)² × 4 = 0.25; simulation agrees. The tempting 4 forgets to multiply by g′² and reports Var X.