Essays in public economics and mathematical finance