Imagine that you are building a linear regression model which estimates the quarterly bonus of the employees of the company you work for based on the value of six inputs :
.
After fitting the model, you've got the following coefficients vector:
.
Here is the data about your colleague:
| Input variable | ||||||
| Value | 3 | 0.5 | 20 | 4 | 0.3 | 0.1 |
Which bonus does the linear regression model predict for them?
Variables as python lists
x = [3, 0.5, 20, 4, 0.3, 0.1]
w = [4, 0.5, 3, 0.2,-1, -4, 17]