I have continuous observations y_i for i = 1, ..., N, and I want to fit a truncated Dirichlet process Gaussian mixture model.
My model is:
alpha ~ Gamma(1, 1),
w ~ StickBreakingWeights(alpha, K),
mu_k ~ Normal(0, 5), for k = 1, ..., K + 1,
sigma_k ~ HalfNormal(1), for k = 1, ..., K + 1,
z_i ~ Categorical(w_1, ..., w_{K+1}), for i = 1, ..., N,
y_i ~ Normal(mu_{z_i}, sigma_{z_i}), for i = 1, ..., N.
Here:
y_i is the observed continuous outcome for observation i,
z_i is the unknown component assignment for observation i,
alpha is the unknown concentration parameter,
w_k is the unknown mixture weight for component k,
mu_k is the unknown mean of component k,
sigma_k is the unknown standard deviation of component k,
K is the truncation level.

Parameterization notes:
In `Gamma(alpha, beta)`, `beta` is the rate parameter, so `E[X] = alpha / beta`.
In `Normal(mu, sigma)`, `sigma` denotes a standard deviation.
