Machine Learning, Linear Algebra, Gaussian Elimination, Inverse Matrix, Numpy.
While previous method is cool, it is hard for computers, as inverted matrix calculation complexity growth dramatically with the number of objects and dimentions in matrix. Another approach (used by a group of methods) is to transform w matrix to the form where equations solution becomes trivial.