Three Essays Applying Dynamic Models in Economics, Finance, and Machine Learning