By the way, this type of structural discrete priors are a good candidate to marginalization: multiple_changepoint_marginalization.ipynb · GitHub, which also has the side-benefit that impossible values won’t be considered.
1 Like