[Activity] Multiple Regression, and Predicting Car Prices November 1, 20192 Back to: Machine Learning, Data Science, and Deep Learning with Python Previous Lesson [Activity] Polynomial Regression Next Lesson Multi-Level Models Share this Article Comments Yasir Tharayil March 2, 2021 4:23 pm Log in to Reply Dont we have the constant(B0) value in summary (along with other coeficients)? if yes,which one it is? Frank Kane March 2, 2021 5:29 pm Log in to Reply Great question. The OLS module in statsmodel sets B0 to 0, so it’s not used in its results. There are exceptions though; if you read through its docs at https://www.statsmodels.org/dev/generated/statsmodels.regression.linear_model.OLS.html you can get all the details. Leave a Comment Cancel CommentYou must be logged in to post a comment.
Yasir Tharayil
March 2, 2021 4:23 pmDont we have the constant(B0) value in summary (along with other coeficients)?
if yes,which one it is?
Frank Kane
March 2, 2021 5:29 pmGreat question. The OLS module in statsmodel sets B0 to 0, so it’s not used in its results.
There are exceptions though; if you read through its docs at https://www.statsmodels.org/dev/generated/statsmodels.regression.linear_model.OLS.html you can get all the details.