check that probabilities sum to 1