News

Linear regression with a single explanatory variable¶ There are many ways to do linear regression in Python. We have already used the heavyweight Statsmodels library, so we will continue to use it ...
I then define to separate data frames: Y to hold my response variable (the single column “Strength”). X to hold my explanatory variables. Note that I have excluded “AirEntrain” at this point because ...