joint probability, conditional probability calc and test