Is it mandatory to use statsmodel add_constant() method while implementing linear regression model? Can't be directly put the coef_ nd intercept_ value directly in the equation y=mx+b ? Also what is the use of OLS( ). Please clarify it.
1 answers ( 0 marked as helpful)
365 Team
Instructor