math
math copied to clipboard
Higher-order mixture distribution
Discussed in https://github.com/stan-dev/design-docs/pull/53, but doesn't require any additional new syntax:
An M component mixture where each component uses the same distribution function could be written with a variadic function as follows:
vector[N] y;
simplex[M] p;
vector[M] mu;
vector[M] sigma;
// mixture with M components
y ~ mixture_?(p, normal, mu, sigma)
Name is up for debate