Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • Compute Services
  • System Modeler
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • AI & Linguistic Understanding

Deployment Options

  • Wolfram Cloud
  • wolframscript
  • Wolfram Engine Community Edition
  • Wolfram LLM API
  • WSTPServer
  • Wolfram|Alpha APIs

From the Community

  • Function Repository
  • Community Paclet Repository
  • Example Repository
  • Neural Net Repository
  • Prompt Repository
  • Wolfram Demonstrations
  • Data Repository
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

  • Data & Computational Intelligence
  • Model-Based Design
  • Algorithm Development
  • Wolfram|Alpha for Business
  • Blockchain Technology
  • Education Technology
  • Quantum Computation

Wolfram Consulting

Wolfram Solutions

  • Data Science
  • Artificial Intelligence
  • Biosciences
  • Healthcare Intelligence
  • Sustainable Energy
  • Control Systems
  • Enterprise Wolfram|Alpha
  • Blockchain Labs

More Wolfram Solutions

Wolfram Solutions For Education

  • Research Universities
  • Colleges & Teaching Universities
  • Junior & Community Colleges
  • High Schools
  • Educational Technology
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM/STEAM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
Wolfram|Alpha
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • Notebook Assistant + LLM Kit
    • Compute Services
    • System Modeler
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Application Server
    • Enterprise Private Cloud
    • Wolfram Engine
    • Wolfram Player
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • AI & Linguistic Understanding
    • Deployment Options
      • Wolfram Cloud
      • wolframscript
      • Wolfram Engine Community Edition
      • Wolfram LLM API
      • WSTPServer
      • Wolfram|Alpha APIs
    • From the Community
      • Function Repository
      • Community Paclet Repository
      • Example Repository
      • Neural Net Repository
      • Prompt Repository
      • Wolfram Demonstrations
      • Data Repository
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions

    We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

    WolframConsulting.com

    Wolfram Solutions

    • Data Science
    • Artificial Intelligence
    • Biosciences
    • Healthcare Intelligence
    • Sustainable Energy
    • Control Systems
    • Enterprise Wolfram|Alpha
    • Blockchain Labs

    More Wolfram Solutions

    Wolfram Solutions For Education

    • Research Universities
    • Colleges & Teaching Universities
    • Junior & Community Colleges
    • High Schools
    • Educational Technology
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM/STEAM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • Wolfram|Alpha
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
DirichletDistribution
  • See Also
    • BetaDistribution
    • GammaDistribution
    • MultinomialDistribution
  • Related Guides
    • Parametric Statistical Distributions
    • See Also
      • BetaDistribution
      • GammaDistribution
      • MultinomialDistribution
    • Related Guides
      • Parametric Statistical Distributions

DirichletDistribution[{α1,…,αk+1}]

represents a Dirichlet distribution of dimension k with shape parameters αi.

Details
Details and Options Details and Options
Background & Context
Examples  
Basic Examples  
Scope  
Applications  
Properties & Relations  
See Also
Related Guides
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • BetaDistribution
    • GammaDistribution
    • MultinomialDistribution
  • Related Guides
    • Parametric Statistical Distributions
    • See Also
      • BetaDistribution
      • GammaDistribution
      • MultinomialDistribution
    • Related Guides
      • Parametric Statistical Distributions

DirichletDistribution

DirichletDistribution[{α1,…,αk+1}]

represents a Dirichlet distribution of dimension k with shape parameters αi.

Details

  • DirichletDistribution is also known as multivariate beta distribution.
  • The probability density for vector in a Dirichlet distribution is proportional to for and .
  • DirichletDistribution allows αi to be any positive real number.
  • DirichletDistribution allows αi to be a dimensionless quantity.
  • DirichletDistribution can be used with such functions as Mean, CDF, and RandomVariate.

Background & Context

  • DirichletDistribution[{α1,…,αk+1}] represents a continuous multivariate statistical distribution defined over k-tuples of positive real numbers whose sum is less than one and for which . The marginal distributions (MarginalDistribution) of DirichletDistribution[{α1,…,αk+1}] are all versions of BetaDistribution parametrized by various linear combinations of the components αi. As a result, the Dirichlet distribution is parametrized by a -tuple (α1,…,αk+1) whose components αi are all positive real numbers that together determine the overall shape of its probability density function (PDF). The Dirichlet distribution is sometimes referred to as the multivariate beta distribution.
  • The PDF of a Dirichlet distribution has an absolute maximum at its mean, i.e. at the k-vector whose components are the one-variable means of its univariate marginal PDF. The tails of each of the associated marginal PDFs corresponding to a Dirichlet distribution are "fat," in the sense that the marginal PDF decreases algebraically for large values of rather than decreasing exponentially. (This behavior can be made quantitatively precise by analyzing the SurvivalFunction of these distributions.)
  • The Dirichlet distribution is named for German mathematician Johann Dirichlet. It has been used as a tool for modeling both real-world and theoretical phenomena since its formal introduction by Thomas Ferguson in the 1970s. The Dirichlet distribution is a finite version of the more general Dirichlet process, an infinite-dimensional stochastic process that, roughly speaking, assigns a probability distribution to each of a collection of probability distributions according to a specific algorithm. Similarly, the Dirichlet distribution often occurs as a prior distribution in Bayesian statistics, including as the conjugate prior for MultinomialDistribution. One interesting application of the Dirichlet distribution is in modeling randomness among accuracies of (fair) dice manufactured over time, noting that dice manufactured more recently tend to be "fairer" because of more precise manufacturing processes. The Dirichlet distribution has also been applied to data mining, machine learning, and computer vision. More recently, the Dirichlet distribution has been used to model the frequencies of words across collections of texts.
  • RandomVariate can be used to give one or more machine- or arbitrary-precision (the latter via the WorkingPrecision option) pseudorandom variates from a Dirichlet distribution. Distributed[{x1,…,xk},DirichletDistribution[{α1,…,αk+1}]], written more concisely as {x1,…,xk}DirichletDistribution[{α1,…,αk+1}], can be used to assert that a k-tuple (x1,…,xk) of random variables is distributed according to a Dirichlet distribution. Such an assertion can then be used in functions such as Probability, NProbability, Expectation, and NExpectation.
  • The probability density and cumulative distribution functions may be given using PDF[DirichletDistribution[{α1,…,αk+1}],{x1,…,xk}] and CDF[DirichletDistribution[{α1,…,αk+1}],{x1,…,xk}]. The mean, median, variance, raw moments, and central moments may be computed using Mean, Median, Variance, Moment, and CentralMoment, respectively. Moreover, Covariance can be used to compute the covariance matrix corresponding to DirichletDistribution.
  • DistributionFitTest can be used to test if a given dataset is consistent with a Dirichlet distribution, EstimatedDistribution to estimate a Dirichlet parametric distribution from given data, and FindDistributionParameters to fit data to a Dirichlet distribution. ProbabilityPlot can be used to generate a plot of the CDF of given data against the CDF of a symbolic Dirichlet distribution, and QuantilePlot to generate a plot of the quantiles of given data against the quantiles of a symbolic Dirichlet distribution.
  • TransformedDistribution can be used to represent a transformed Dirichlet distribution, CensoredDistribution to represent the distribution of values censored between upper and lower values, and TruncatedDistribution to represent the distribution of values truncated between upper and lower values. CopulaDistribution can be used to build higher-dimensional distributions that contain a Dirichlet distribution, and ProductDistribution can be used to compute a joint distribution with independent component distributions involving Dirichlet distributions.
  • DirichletDistribution is closely related to a number of other distributions. As noted previously, DirichletDistribution has close ties with BetaDistribution, in the sense that each of its marginal distributions is a beta distribution. Moreover, any one-dimensional Dirichlet distribution is a beta distribution, in the sense that the PDF of DirichletDistribution[{α1,α2}] is precisely that of BetaDistribution[α1,α2]. DirichletDistribution is also related to GammaDistribution, in the sense that the random variable is distributed according to DirichletDistribution whenever is the gamma-distributed random variable defined by the sum of k independently distributed gamma variates Y1,…,Yk. DirichletDistribution is the conjugate prior of MultinomialDistribution and is also related to BetaPrimeDistribution, CompoundPoissonDistribution, and MultinormalDistribution.

Examples

open all close all

Basic Examples  (4)

Probability density function in two dimensions:

Cumulative distribution function in two dimensions:

Mean and variance in two dimensions:

Covariance:

Scope  (8)

Generate a sample of pseudorandom vectors from a bivariate Dirichlet distribution:

Visualize the sample using a histogram:

Distribution parameters estimation:

Estimate the distribution parameters from sample data:

Goodness-of-fit test:

Skewness:

Kurtosis:

Correlation:

Different mixed moments for a Dirichlet distribution:

Closed form for a symbolic order:

Mixed central moments:

Mixed factorial moments:

Mixed cumulants:

Hazard function:

Univariate marginals of a Dirichlet distribution follow a BetaDistribution:

Multivariate marginals follow a DirichletDistribution:

Applications  (5)

Show a distribution function and its histogram in the same plot:

Compare the PDF to its histogram version:

Compare the CDF to its histogram version:

Simulate points on the half-plane with mean :

For α3=30:

For α3=10:

The point spread can be controlled by the third parameter:

Use Dirichlet distribution to define a multivariate Pólya distribution as a parameter mixture:

Probability density function:

Find the probability over a Disk for a Dirichlet distribution:

Estimate confidence interval for maximum likelihood estimates of distribution parameters:

Apply fractional random weight bootstrap to estimate confidence interval, by repeating weighted estimation with weights sampled from a DirichletDistribution with unit parameters:

Generate a bootstrap sample of parameter estimates:

Visualize bootstrap estimates:

Fit BetaDistribution to the bootstrap parameters:

Find its quartiles:

Properties & Relations  (2)

Equal probability contours for a Dirichlet distribution:

One-dimensional Dirichlet distribution is a BetaDistribution:

See Also

BetaDistribution  GammaDistribution  MultinomialDistribution

Related Guides

    ▪
  • Parametric Statistical Distributions

History

Introduced in 2010 (8.0) | Updated in 2016 (10.4)

Wolfram Research (2010), DirichletDistribution, Wolfram Language function, https://reference.wolfram.com/language/ref/DirichletDistribution.html (updated 2016).

Text

Wolfram Research (2010), DirichletDistribution, Wolfram Language function, https://reference.wolfram.com/language/ref/DirichletDistribution.html (updated 2016).

CMS

Wolfram Language. 2010. "DirichletDistribution." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/DirichletDistribution.html.

APA

Wolfram Language. (2010). DirichletDistribution. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DirichletDistribution.html

BibTeX

@misc{reference.wolfram_2025_dirichletdistribution, author="Wolfram Research", title="{DirichletDistribution}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/DirichletDistribution.html}", note=[Accessed: 01-May-2026]}

BibLaTeX

@online{reference.wolfram_2025_dirichletdistribution, organization={Wolfram Research}, title={DirichletDistribution}, year={2016}, url={https://reference.wolfram.com/language/ref/DirichletDistribution.html}, note=[Accessed: 01-May-2026]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • Notebook Assistant + LLM Kit
  • Compute Services
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Engine
  • Wolfram Player

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2026 Wolfram
© 2026 Wolfram | Legal & Privacy Policy |
English