Last answered:

16 Apr 2020

Posted on:

14 Apr 2020

1

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

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 answers ( 0 marked as helpful)
Instructor
Posted on:

16 Apr 2020

0

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

Submit an answer