Inferensys

Glossary

Dirichlet Distribution

A multivariate continuous probability distribution parameterized by a vector of positive reals, defined over the probability simplex, serving as the conjugate prior to the categorical and multinomial distributions.
Engineer reviewing vector database search results on laptop, embeddings visualization on screen, home office coding session.
MULTIVARIATE PROBABILITY DISTRIBUTION

What is Dirichlet Distribution?

The Dirichlet distribution is a multivariate probability distribution defined over the simplex of categorical probabilities, serving as the conjugate prior to the multinomial distribution in Bayesian statistics and evidential deep learning.

The Dirichlet distribution is a continuous multivariate probability distribution parameterized by a vector of positive real numbers, known as concentration parameters. It is defined over the (K-1)-dimensional simplex, meaning its support consists of vectors whose components are non-negative and sum to one. This makes it the natural distribution for modeling the probabilities of a categorical distribution, where each draw represents a complete set of mutually exclusive outcome probabilities. The distribution's shape is controlled by its concentration parameters: values greater than 1 concentrate density toward the center of the simplex, while values less than 1 push density toward the vertices, creating sparse probability vectors.

In evidential deep learning, the Dirichlet distribution is placed directly over the predicted class probabilities, allowing a neural network to output the parameters of a Dirichlet rather than a single point estimate. This formulation quantifies epistemic uncertainty through the distribution's spread: a uniform Dirichlet indicates high uncertainty from lack of evidence, while a sharply peaked Dirichlet reflects confident predictions supported by strong evidence. The Dirichlet's role as the conjugate prior to the multinomial distribution enables principled Bayesian updating, where observed counts are added to the prior concentration parameters to produce the posterior distribution.

Dirichlet Distribution

Key Statistical Properties

The Dirichlet distribution is the conjugate prior to the multinomial distribution, defined over the probability simplex. Its core statistical properties govern how prior beliefs are updated into posterior beliefs in evidential deep learning and Bayesian inference.

01

Probability Density Function

The PDF is defined over the (K-1)-simplex, where a vector α = (α₁, ..., αK) of concentration parameters controls the shape.

  • Support: All vectors p where pᵢ ≥ 0 and Σ pᵢ = 1.
  • Formula: f(p|α) = (1/B(α)) ∏ pᵢ^(αᵢ - 1), where B(α) is the multivariate Beta function.
  • Interpretation: The density is high where p aligns with the normalized α vector.
02

Concentration Parameter

The sum of the parameter vector, α₀ = Σ αᵢ, is the precision or concentration of the distribution.

  • α₀ large: The distribution is sharply peaked around the mean, indicating high confidence.
  • α₀ small: The distribution is flat and dispersed, indicating high uncertainty.
  • In evidential deep learning, a neural network directly outputs α to parameterize a Dirichlet over class probabilities.
03

Mean and Variance

The expected value and dispersion are analytically tractable, making the Dirichlet computationally efficient for Bayesian updates.

  • Mean: E[pᵢ] = αᵢ / α₀. The predicted probability for class i is the normalized evidence.
  • Variance: Var[pᵢ] = (αᵢ(α₀ - αᵢ)) / (α₀²(α₀ + 1)).
  • Covariance: Cov[pᵢ, pⱼ] = -(αᵢ αⱼ) / (α₀²(α₀ + 1)) for i ≠ j, enforcing the negative correlation inherent to the simplex.
04

Conjugate Prior Property

The Dirichlet is the conjugate prior to the multinomial distribution, enabling closed-form Bayesian updates.

  • Prior: Dir(α_prior).
  • Likelihood: Multinomial with counts c.
  • Posterior: Dir(α_prior + c).
  • This additive property allows a model to accumulate evidence from observations without iterative optimization, forming the mathematical basis for evidential deep learning.
05

Entropy and Uncertainty

The differential entropy of a Dirichlet distribution quantifies the total predictive uncertainty.

  • Formula: H[Dir(α)] = log B(α) + (α₀ - K)ψ(α₀) - Σ (αᵢ - 1)ψ(αᵢ), where ψ is the digamma function.
  • Maximum Entropy: Occurs when all αᵢ = 1 (uniform distribution over the simplex), representing total ignorance.
  • Minimum Entropy: Approaches negative infinity as α₀ → ∞ for a single peaked class, representing absolute certainty.
06

Aggregation Property

If p ~ Dir(α₁, ..., αK), then any merged partition of p also follows a Dirichlet distribution.

  • Example: Merging classes 1 and 2 yields (p₁+p₂, p₃, ..., pK) ~ Dir(α₁+α₂, α₃, ..., αK).
  • This marginalization property is critical for hierarchical classification, allowing uncertainty to be coherently propagated up a class taxonomy without re-sampling.
DIRICHLET DISTRIBUTION

Frequently Asked Questions

Explore the foundational concepts of the Dirichlet distribution, a core mathematical object for modeling probabilities over categories and quantifying predictive uncertainty in modern Bayesian machine learning.

The Dirichlet distribution is a multivariate probability distribution defined over the simplex of categorical probabilities, meaning it generates a vector of numbers that sum to 1. It is parameterized by a vector of positive real numbers, α = [α₁, ..., α_K], called concentration parameters. The distribution's output is a probability mass function over K categories. The sum of the concentration parameters, α₀, controls the sharpness of the distribution: a high α₀ produces a peaked distribution concentrated near the mean, representing high confidence, while a low α₀ produces a flat, spread-out distribution, representing high uncertainty. It is the conjugate prior to the multinomial and categorical distributions, making it analytically tractable for Bayesian updating.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.