The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

How to calculate the slope and constant value In single Linear Regression

How to calculate the slope and constant value In single Linear Regression

1
Vote
1
Answer

In single Linear Regression how to calculate the slope and constant value
yhat = m.x1 + c
How to calculate value of m and c?

1 Answer

365 Team
0
Votes

Hi Junaid,
the slope and intercept are calculated by the algorithm and are the coefficients for the OLS.
So, you can access them when you get the results.summary() and in the table they are under coef

Best,
Eli