Mathematical Analysis of Machine Learning Algorithms