Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Uncertain about the chances themselves
Is this die fair? You don’t know the six chances (one per face), so they’re uncertain too. A distribution over whole lists of chances that always add up to 1 is a Dirichlet distribution. Its parameters act like imaginary counts you’ve already seen. Every real roll adds one to the count for its face.
Engineers also need uncertainty about how noisy a sensor is, and about how its errors in different directions are related (a covariance matrix). The Wishart family describes random covariance matrices.
A classifier has never seen a rare fault type, so it would assign it probability 0, which is dangerous. Dirichlet “pseudo-counts” keep it possible. A new IMU’s noise covariance must be estimated from only a few calibration samples, and a Wishart-based prior stops the estimate from being nonsense.
- 1. A die's six face probabilities add up to…
- 2. Seen 7 red, 3 blue; add one imaginary count to each. P(red) = ?
- 3. A Wishart distribution describes random…
Level 1: Beginner
★★☆☆☆ Basic⏱ 15 minSecondary-school mathematics: arithmetic and elementary algebra.The Dirichlet
has density on the simplex , where .
- Mean and variance . A larger means more concentrated.
- With it’s the Beta distribution.
- Shape: all is uniform on the simplex. All gives sparse vectors (mass in the corners). Large concentrates near the mean.
The Wishart
If in dimensions, the scatter matrix is .
- Its mean is , so is unbiased.
- With it’s .
- The inverse-Wishart (the law of , suitably parametrized) is the conjugate prior for a Gaussian covariance.
- 1. Dirichlet(2, 6, 2) mean of p₂?
- 2. Dirichlet with K = 2 is the…
- 3. E[S] for Wishart(Σ, n)?
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.Constructions and properties
- Gamma construction: take independent Gamma(). Then . It’s also independent of the total .
- Marginals: .
- Aggregation: merging components adds their ’s. For example, .
- Conjugacy with the multinomial: prior and counts give posterior , with posterior mean . With , that’s Laplace (add-one) smoothing, so unseen categories keep non-zero probability.
Covariance estimation with few samples
The sample covariance is unbiased, but noisy when is small. If , it’s singular, so you can’t invert it, as filters and Mahalanobis gates need to. An inverse-Wishart prior gives posterior (zero-mean data), with mean
That’s a blend of a prior guess and the data, and it’s always positive definite. The same idea in non-Bayesian form is shrinkage (Ledoit and Wolf, 2004).
- 1. Dir(1,1,1) prior plus counts (7, 0, 3) gives the posterior…
- 2. Marginal of p₁ under Dir(2, 5, 3)?
- 3. The sample covariance with n < d samples is…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Conjugacy, proved
Prior times multinomial likelihood gives , which is again a Dirichlet kernel. ∎
The Dirichlet mean from the gamma construction
Write with Gamma(), independent of (Lukacs’ theorem). Then . ∎
Why means singular
with has rank . With fewer samples than dimensions, some directions have zero estimated variance. A filter using would treat them as perfectly known, which is catastrophic overconfidence.
The Dirichlet process (preview)
Let with a total concentration . You get the Dirichlet process, a prior over distributions with infinitely many possible categories. It’s used in non-parametric mixture models that decide how many clusters the data needs (Ferguson, 1973; A4.2-6).
Exercise 3.1: Show the posterior mean under a symmetric Dir(1) prior is (nᵢ + 1)/(N + K)
The posterior is , so its mean is .
- 1. Dirichlet × multinomial likelihood gives a…
- 2. rank(XᵀX) for X ∈ ℝ^(n×d) is at most…
- 3. The K → ∞ limit of the Dirichlet is the…
Level 4: Expert
★★★★★ Expert⏱ 45 minResearchers: original papers and open problems.Bayesian covariance estimation for sensors
A new IMU’s 6-D noise covariance must be estimated from a handful of static calibration windows. The MLE is singular for and badly conditioned for small . An inverse-Wishart prior centred on a datasheet guess gives a posterior mean that’s always positive definite and much more accurate when samples are scarce. The data take over as grows. This is the same idea behind adaptive and variational Kalman filters that learn unknown noise covariances online (Särkkä and Nummenmaa, 2009) and behind Bayesian multivariate regression.
Where they appear
- Topic models and mixtures. In LDA, each document’s topic proportions are Dirichlet, and small makes documents focus on few topics (Blei, Ng and Jordan, 2003). Mixture-model weights get Dirichlet priors (A4.2-6).
- Uncertainty-aware classification. Evidential deep learning outputs Dirichlet parameters, so a network can say “I don’t know” (low ) rather than only “class 3 with 60%” (Sensoy, Kaplan and Kandemir, 2018).
- Exploration in RL. Bayesian (Thompson-sampling) agents keep Dirichlet posteriors over transition probabilities of unknown MDPs (Osband, Russo and Van Roy, 2013).
- Robotics. Inverse-Wishart priors appear in adaptive noise estimation for Kalman filters, in Gaussian-process hyperpriors, and in multi-target tracking’s covariance models.
- Random-matrix effects. For large with not small, the eigenvalues of spread far from Σ’s (Marchenko–Pastur). That’s why shrinkage is essential in high-dimensional covariance estimation.
References
- N. Johnson, S. Kotz, N. Balakrishnan (1997). Discrete Multivariate Distributions. Wiley.
- J. Wishart (1928). “The generalised product moment distribution in samples from a normal multivariate population.” Biometrika, 20A.
- O. Ledoit, M. Wolf (2004). “A well-conditioned estimator for large-dimensional covariance matrices.” Journal of Multivariate Analysis, 88(2).
- T. Ferguson (1973). “A Bayesian analysis of some nonparametric problems.” Annals of Statistics, 1(2).
- D. Blei, A. Ng, M. Jordan (2003). “Latent Dirichlet allocation.” JMLR, 3.
- M. Sensoy, L. Kaplan, M. Kandemir (2018). “Evidential deep learning to quantify classification uncertainty.” NeurIPS.
- S. Särkkä, A. Nummenmaa (2009). “Recursive noise adaptive Kalman filtering by variational Bayesian approximations.” IEEE Transactions on Automatic Control, 54(3).
- I. Osband, D. Russo, B. Van Roy (2013). “(More) efficient reinforcement learning via posterior sampling.” NeurIPS.
- A. Gelman et al. (2013). Bayesian Data Analysis, 3rd ed. CRC Press.