Essays in finance and behavioral economics