Optimizing wrt to th eunknown paramters θj we get
and if the matrix XTX is invertible we have the optimal values