Essays in marketing and applied microeconomics