Ten days of statistics (9) - Linear Regression
Least square regression line
Regression line is the straight line which best describes the relationship between 2 variables and . Formally
Find the value of
The value of can be calculated using either of the following:
Find the value of
Where and is the mean of and respectively
Practice
Hackerrank has an exercise for you to test your knowledge:
Next lesson: Multiple regression