Put in order · Python course · Module 8: Data Science

Linear Regression

Arrange the steps for performing linear regression in scipy:

Items to put in order

  • Prepare x and y data
  • Check R-squared
  • Call stats.linregress(x, y)
  • Read slope and intercept

You can check the correct answer by solving this task in the CodeWorlds game.