working out the prior/noise params