
182 Data Analysis and Statistics for Geography, Environmental Science, and Engineering
We can substitute our prior result given in Equation 6.16 for b
0
to obtain
bx
b
n
x
n
yx xy
iii
i
n
i
n
i
i
n
i
n
i
n
1
2
1
1
11
1
0+− +
=
==
∑
∑∑∑
(6.20)
Now separate terms in b
1
bx
n
x
n
yx xy
ii
i
n
i
n
i
i
n
i
i
n
1
2
1
2
1
11
−
=− +
=
=
∑
∑
ii
n
=
∑
1
(6.21)
Finally solve for b
1
b
xy
n
x
n
x
ii
i
n
i
i
n
i
i
n
i
i
n
i
i
n
1
1
2
2
1
1
=
−
−
=
∑∑∑
(6.22)
Once b
1
is calculated using Equation 6.22, then we can calculate b
0
using Equation 6.16 repeated
now for easy reference
b
b
n
x
n
y
i
n
i
n
0
1
11
1
=− +
==
∑∑
(6.23)
Once we have values for slope and intercept, then we can draw the regression line on the ...