Texts: Consider the following training set D = {(x1, y1) = (0, 0), (x2, y2) = (1, 7), (x3, y3) = (2, 3)}. Compute the following by hand:
a. Ordinary Least Square: (woLs, boLs) = argminw,b Σ(yi - wxi - b)^2
b. Weighted Linear Regression: (WwLS, bwLs) = argminw,b Σ(wi(yi - wxi - b)^2) where w = [2, 1, 2]
c. Polynomial Least Square (Calculator allowed @): (wpLS, bpLs) = argminw,b Σ(yi - wTzi - b)^2 where Zi = (xi^2, xi^3) and W = (W2, W3)^T
Hint: if A is a matrix, then det(A) represents the determinant of A.