Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

line of best fit in linear regression

fx = np.array([xs.min(), xs.max()])
fy = res.intercept + res.slope * fx
plt.plot(fx, fy, '-')
Source by campus.datacamp.com #
 
PREVIOUS NEXT
Tagged: #line #fit #linear #regression
ADD COMMENT
Topic
Name
2+2 =