Essays on Demand Estimation, Financial Economics and Machine Learning