Compute priors