Introduction to Linear Modeling in 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
Introduction to Linear Modeling in Python