Dirichlet Distribution Calculator

The Multivariate Beta Family

The Dirichlet distribution generalizes the beta distribution to multiple proportions that sum to one. For parameters α1, α2, and α3, the density over points (x1,x2,x3) in the simplex x1+x2+x3=1 is fx=Γα1+α2+α3Γα1Γα2Γα3x1α1-1x2α2-1x3α3-1.

Each exponent is one less than its corresponding shape parameter, coupling the concentration of probability around the simplex corners. When all α values exceed one, the distribution favors interior regions. If some drop below one, it allocates more mass near the respective edges. The normalizing constant involves the multivariate beta function Bα1,α2,α3, ensuring the total probability integrates to one.

Applications span Bayesian statistics and compositional data analysis. For example, proportions of time spent in different activities, or the fraction of elements in a chemical mixture, naturally live in the simplex. The Dirichlet distribution provides a flexible prior over such proportions. Its conjugacy with the multinomial distribution allows convenient updating of beliefs when new counts are observed.

Using this calculator, you input three positive shape parameters and a candidate point whose coordinates sum to one. The script computes the PDF using gamma functions and simple arithmetic. In practice, you can interpret the result as the relative likelihood of seeing those proportions in a sample drawn from the modeled process.

Experiment by varying α. When all values match, the distribution is symmetric. Increasing one parameter relative to the others biases the density toward that vertex. The Dirichlet thus captures prior knowledge about likely compositions.

Related Calculators

Geometric Distribution Calculator - Trial Counts Until Success

Compute probabilities for the geometric distribution and explore its properties.

geometric distribution calculator probability of first success

Linear Regression Calculator - Find the Best Fit Line

Enter paired X and Y data to compute the slope, intercept, and R-squared of a simple linear regression.

linear regression calculator slope intercept least squares

Photoelectric Effect Calculator - Photon Energy and Electron Emission

Determine the kinetic energy of photoelectrons by entering light wavelength or frequency and the material work function.

photoelectric effect calculator photon energy work function