Introduktion till linjär modellering i Python
Jason Vestuto
Data Scientist
Repetition:
y = a0 + a1*xx = oberoende variabel, t.ex. tidy = beroende variabel, t.ex. tillryggalagd sträckaxp = 10; yp = a0 + a1*xp, "modellprediktion"
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
Introduktion till linjär modellering i Python