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 find yhat ie the regression equation (the constant and the x variable used??)

how to find yhat ie the regression equation (the constant and the x variable used??)

0
Votes
1
Answer

plt.scatter(x1,y)
yhat = x1*223.1787+101900
fig = plt.plot(x1,yhat, lw=4, c=’orange’, label =’regression line’)
plt.xlabel(‘Size’, fontsize = 20)
plt.ylabel(‘Price’, fontsize = 20)
plt.show()
 
how do you determine the coefficients of the underlined equation?
 

1 Answer

365 Team
0
Votes

Hi Kartikeya,
As explained a bit later, the regression equation is determined by the coefficients and the intercept from the regression table.
Please hold on for a couple of lectures and you will see that!
Best,
Iliya