Python 线性建模入门
Jason Vestuto
Data Scientist
回顾:
y = a0 + a1*xx = 自变量,如时间y = 因变量,如行程xp = 10; yp = a0 + a1*xp,模型预测
x0 = 0
print(y(x0))
100

slope = (225 - 100) / (5 - 0)
print(slope)
25

slope = (350 - 100) / (10 - 0)
print(slope)
25

slope = (212-32)/(100-0) # 180/100 = 9/5
intercept = 32
Python 线性建模入门