A model of mortgage losses and its applications for macroprudential instruments Christian Hott