When to use linear Regression?
If knowing the correlation isn´t enough. We want to find out more about the relation.
How to calculate linear regression using least square method?
What is the simple linear regression equation?
ŷ = b0 + b1*x
ŷ=the predicted value of y (the dependent variable) in a regression equation.
b1=slope
b0= y-intercept
What does R-squared tell us?
How well a regression line actually predicts the values 1.0 would be the perfect prediction.
How to calculate R-squared?
Sum(ŷ-ymean)2
______________
Sum (y-ymean)2