def esperance(X):
    s = 0
    for c in X:
        s = s + c[0]*c[1]

    return s
