Actually, the way you are modelling should be fine - the problem might be just the inefficiency of Metropolis then. You can generate posterior prediction like this maybe:
post_predi = np.random.binomial(p=trace['pm_event_prob'][:,10:], n=1)
Actually, the way you are modelling should be fine - the problem might be just the inefficiency of Metropolis then. You can generate posterior prediction like this maybe:
post_predi = np.random.binomial(p=trace['pm_event_prob'][:,10:], n=1)