marginalize theta in MCMC