def ProbBigger(pmf1, pmf2):
    """Returns the probability that a value from one pmf exceeds another."""
    total = 0.0
    for v1, p1 in pmf1.Items():
        for v2, p2 in pmf2.Items():
            if v1 > v2:
                total += p1 * p2
    return total