Learning from defaulted loans