WLJS LogoWLJS Notebook

DirichletDistribution

DirichletDistribution[{α1, ..., αk+1}] represents a Dirichlet distribution of dimension k with shape parameters αi.

Examples

Create a Dirichlet distribution:

dist = DirichletDistribution[{1, 2, 3}]

Generate random samples:

RandomVariate[DirichletDistribution[{1, 1, 1}], 5]

Please visit the official Wolfram Language Reference for more details.

On this page