Dirichlet — The Dirichlet distribution

Usage

Dirichlet(as: List<Double>) → Distribution<List<Double>>

Arguments

as:

Nonempty list of positive concentration parameters, one per proportion

Description

The Dirichlet distribution produces a list of proportions that sum to 1, with one entry for each concentration parameter in as. The expected proportion for each entry is its concentration divided by sum(as). Multiplying all concentrations by the same factor greater than 1 preserves these expected proportions while reducing variation around them.

Examples

~Dirichlet([1,2,3])

See also