Mathematics Behind Machine Learning