1. Learn
  2. /
  3. Courses
  4. /
  5. Exploring and Analyzing Data in Python

Exercise

Using StatsModels

Let's run the same regression using SciPy and StatsModels, and confirm we get the same results.

Instructions

100 XP
  • Compute the regression of '_VEGESU1' as a function of 'INCOME2' using SciPy's linregress().
  • Compute the regression of '_VEGESU1' as a function of 'INCOME2' using StatsModels' smf.ols().