testing calculateConditionalProbs