Mathematical Theory of Machine Learning and Applications