Introduction to Linear Modeling in Python
Jason Vestuto
Data Scientist
Review:
y = a0 + a1*xx = independent variable, e.g. timey = dependent variable, e.g. distance traveledxp = 10; yp = a0 + a1*xp, "model prediction"
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
Introduction to Linear Modeling in Python