标签: python-2.7
def avg(x): return sum(x/float(len(x)) x_avg=avg(list1) y_avg=avg(list2) result=0
beta = cars_sold,car_sold /协方差(car_sold,car_sold) alpha = avg(house)-b * avg()
https://i.stack.imgur.com/P4Eap.png