vasishth / bayescogsci

Draft of book entitled An Introduction to Bayesian Data Analysis for Cognitive Science by Nicenboim, Schad, Vasishth
100 stars 27 forks source link

chapter 20 - ch-mixture.html #15

Closed themeo closed 2 years ago

themeo commented 3 years ago

In Stan, we can circumvent this issue by marginalizing out the indicator variable z.

I guess there are a lot of steps compressed in this sentence but it is not explained further in the text. Perhaps it could be possible to provide some more info on what marginalization of z means in this context and why it solves the problem of not being able to use categorical z. Later you write that the math behind this is more complicated but perhaps even a paraphrase would help to get an intuition about how or why it works.

It is unclear to me if in Stan z will take real values different than 1 or 0 and this is why marginalization matters?

themeo commented 3 years ago

Some more questions / unclear things: