Example (slope and y-intercept of the regression line)
Given the following set of data points find the equation of the regression line in the form
y = mx + b
.
Table 1: Data Points
x
y
x*y
x**2
1
2
2
1
2
3.5
7
4
3
5
15
9
4
5
20
16
5
3
15
25
6
4.5
27
36
7
6
42
49
8
5.5
44
64
9
7
63
81
10
8
80
100
With the number of data points n=10
The equation of the regression line is
y = 0.518x + 2.1