Ten days of statistics (9) - Linear Regression
![cover](/blog/post/statistics-10/businesswoman-using-tablet-analysis-graph-company-finance-strategy-statistics-success-concept-planning-future-office-room.jpg)
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