Introduction aux modèles linéaires en Python
Jason Vestuto
Data Scientist
Rappel :
y = a0 + a1*xx = variable indépendante, p. ex. le tempsy = variable dépendante, p. ex. la distance parcouruexp = 10; yp = a0 + a1*xp, « prédiction du modèle »
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 aux modèles linéaires en Python