Session Ready
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().