Fixed marginal computation for mcmc