SMS: Essays in macroeconomics and machine learning