How do I perform linear regression on data?
You need to see full answer to understand
I don't fully know what you mean first you get your data set where you regress y on x to find how a change in x effects y.
And you want to find the relationship between x and y so say you believe the model is like
or in stats
This tells you that the predicted coefficents will give you the predicted y value.
So now you want to find the best estimates for these co-efficents we do this by finding the lowest difference between the actual y value and predicted.
This basically says that you want the minimum of the sum of the differences between the acutal y values and predicted y values for your regression line
So the formulas for finding them are
Impact of this question
Creative Commons License