How to extract the regression coefficient from statsmodels api

0 votes
 result = sm.OLS(gold_lookback, silver_lookback ).fit()

After I get the result, how can I get the coefficient and the constant? In other words, if y = ax + c how to get the values a and c?

Mar 15, 2022 in Machine Learning by Nandini
• 5,480 points
11,509 views

1 answer to this question.

0 votes

The coefficients can be