Understanding error while sampling a model with conditional probabilities

Awesome, thanks for the example and suggestions.