Math Behind Machine Learning