Kreditrisikomodellierung in Python
Michael Crabtree
Data Scientist, Ford Motor Company
| Zahlung | Zahlungsdatum | Kreditstatus |
|---|---|---|
| $100 | 15. Jun | Kein Ausfall |
| $100 | 15. Jul | Kein Ausfall |
| $0 | 15. Aug | Ausfall |
Formel für erwarteten Verlust:
expected_loss = PD * EAD * LGD
Zwei Hauptdatentypen:
| Antrag | Verhalten |
|---|---|
| Zinssatz | Beschäftigungsdauer |
| Bonitätsklasse | Historischer Ausfall |
| Betrag | Einkommen |
| Spalte | Spalte |
|---|---|
| Einkommen | Kreditklasse |
| Alter | Kreditbetrag |
| Wohneigentum | Zinssatz |
| Beschäftigungsdauer | Kreditstatus |
| Kreditabsicht | Historischer Ausfall |
| Einkommensanteil | Länge der Kreditgeschichte |
pd.crosstab(cr_loan['person_home_ownership'], cr_loan['loan_status'],
values=cr_loan['loan_int_rate'], aggfunc='mean').round(2)
plt.scatter(cr_loan['person_income'], cr_loan['loan_int_rate'],c='blue', alpha=0.5)
plt.xlabel("Personal Income")
plt.ylabel("Loan Interest Rate")
plt.show()
Kreditrisikomodellierung in Python