Estimate the slope
Here is the same scatter plot of house price per area versus number of nearby convenience stores, using the Taiwan real estate dataset.
This time, estimate the slope of the trend line. Click the line once, then double click a different position on the line, and finally, read the slope value.
This exercise is part of the course
Introduction to Regression with statsmodels in Python
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
