calculateConditionalProbs works