def auc(points):
    """Calulate the area under the curve using trapezoid rule."""
    return sum((p[0]-lp[0])/100*(lp[1]+(p[1]-lp[1])/2.0)/100
                for p, lp in zip(points[1:], points[:-1]))