Imagine that you are working in a secret laboratory.
Your colleague build a linear regression model based on some secret data below.
| Secret X | Secret Y |
| 1 | 18 |
| 3 | 17 |
| 5 | 13 |
| 7 | 8 |
| 9 | 4 |
The resulting model is as follows:
Help your colleague to compute the sum of squares of deviations of the obtained model.
Input values as NumPy arrays
import numpy as np
x = np.array([1, 3, 5, 7, 9])
y = np.array([18, 17, 13, 8, 4])