Diagnostic expectations and credit cycles