Three Essays on Machine Learning and Applied Economics