Model with high-dimensional stochastic vectors and broadcasting in distributions

Yes, this helped a lot. Thank you!
My issue now is that m_det is usually zero, which pm.Binomial appearently does not like. The code runs when I set c_param above ~0.6 and exclude the evaluation of binomial likelihoodlike_1 (which usually has the smallest observed value).