Essays on the Applications of Machine Learning in Financial Markets