I have a theoretical question concerning your example of the “Change point models” in the latent Discrete parameters part of your manual.
You show how to estimate the posteriori distribution for the discrete parameter s.
where lp[m,s] is the likelihood : p(s, D| e,l) in the posteriori draw m. I found it strange that the prior for parameter e and l is never taken into account to calculate the posteriori distribution for the discrete parameter s. For me, this formulation would make more sense:
p(s|D) \propto q(s|D) = \frac{1}{M} \sum_{m=1}^M \exp(lp[m,s]) p(e,m) p(l,m)
where p(e,m) would denote the prior for parameter e in the posteriori draw m.
Am I misunderstanding something?
Thanks for your time,
Charlotte