math icon indicating copy to clipboard operation
math copied to clipboard

Higher-order mixture distribution

Open WardBrian opened this issue 1 month ago • 0 comments

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

WardBrian avatar Nov 14 '25 15:11 WardBrian