Skip to main content

Module dirichlet

Module dirichlet 

Source

Functions§

dirichlet_distribution
A Dirichlet sample on the probability simplex, x_i = g_i / Σ g_j with independent g_i ~ Gamma(α_i, 1). Its mean is α_i / α₀ (α₀ = Σ α_i); two components give the beta distribution.