Probabilistic inference utils