Bayesian modelling of two sequential tests

Hi! Thanks for your reply!
I do understand it in theory. however, I have no idea how to grasp it in pymc3 or if it’s possible at all. Maybe you’ve stumbled upon a similar analysis?