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
Hotelling's T² and the Wishart Distribution
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.
| Quantity | Formula | Value here |
|---|---|---|
| T² | n(x̄ − μ₀)′S⁻¹(x̄ − μ₀) | 4.49 |
| F statistic | (n − p)T²/(p(n − 1)) | 2.00 |
| 5% critical F(2, 8) | table | 4.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
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.
| Property | Condition | Result for this chain |
|---|---|---|
| Stationary distribution | πP = π | (0.5714, 0.4286) |
| Second eigenvalue | Rate of convergence | 0.3 |
| Mean return times | 1/πᵢ | 1.75, 2.33 |
| Periodic chain | No 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
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.
| Mode | Definition | Implies |
|---|---|---|
| Almost sure | P(Xₙ → X) = 1 | In probability |
| Mean square | E|Xₙ − X|² → 0 | In probability |
| In probability | P(|Xₙ − X| > ε) → 0 | In distribution |
| In distribution | CDFs converge | Nothing stronger in general |
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.
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.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 Σ.The maximum likelihood estimator of the covariance matrix of a multivariate normal sample of size n is:
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
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.Under H₀, the statistic (n − p)T²/(p(n − 1)) for Hotelling's test has the distribution:
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².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.Which condition makes the n-step transition probabilities of a finite Markov chain converge to the same limit from every starting state?
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.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.Which implication between modes of convergence is correct?
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).Which statements are correct?
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.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.In the transition matrix of a time-homogeneous Markov chain,
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.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.For i.i.d. variables with E|X₁| < ∞, the strong law of large numbers asserts that X̄ₙ converges to the mean
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.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.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.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.(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.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.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.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.(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).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.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.