Machine Learning, Data Science, Programming, Python, Deep Learning.
and c is the intercept(weight is equal to c when height is 0 as shown below). Y = m(0) + c = c For different values of slope ‘m’ and constant ‘c’, we will get different lines as shown in the below graph. How does a linear regression find the best fit line? Now, the question is how does a linear