def calcBayes(priorA, probBifA, probB):
    """priorA: initial estimate of probability of A independent of B
       priorBifA: est. of probability of B assuming A is true
       priorBifNotA: est. of probability of B 
       returns probability of A given B"""
    return priorA*probBifA/probB