Calculating beliefs