def calc_sos(x,y):
    """
    Calculate the sum-of-squared error for two lists of numbers, x and y.
    returns sos = ∑(x-y)²
    """
    xy = list(zip(*[x,y]))
    sos = sum([(x-y)**2 for x,y in xy])
    return sos