Applied Data Science for Credit Risk
Applied Data Science for Credit Risk
A Practical Guide in R and Python
About the Book
Over the past five decades, technological advancements have driven significant transformations in data science. While the rise of high-speed computing has played a key role, the development of specialized data science tools and packages has been even more crucial in shaping the field. Today, data practitioners increasingly rely on these tools to streamline analysis and automate processes. However, the widespread use of such tools can sometimes lead to over-automation, where important foundational principles and assumptions are overlooked. This can result in the application of incorrect statistical methods, potentially compromising the validity of the analysis.
This book addresses these challenges by showcasing the most widely used data science methods through practical examples, specifically within the domain of credit risk management. Using both R and Python, it walks readers through real-world scenarios, offering a practical guide to applying these methods and a thorough understanding of the theoretical underpinnings. The goal is to provide readers with a clear, step-by-step approach to analyzing data, understanding the outcomes generated by pre-existing software, and making informed decisions based on those results.
The book is designed primarily for practitioners in credit risk management, though it is equally relevant to anyone interested in applied data science. It assumes that readers have a foundational knowledge of data science, particularly statistics, econometrics, finance, and banking. Familiarity with Internal Rating Based (IRB) models and International Financial Reporting Standards 9 (IFRS9) is also recommended to understand better the concepts discussed.
A supporting GitHub repository, accessible here, complements the book by expanding its scope. The repository will be regularly updated with documents covering various modeling topics.
Table of Contents
- Preface
- 1 Financial mathematics of loans
- 1.1 Net present value
- 1.2 Loan repayment plan
- 1.3 Loan repayment moratorium
- 1.4 Loan restructuring
- 2 Credit risk modeling
- 2.1 Descriptive statistics
- 2.1.1 Measures of central tendency
- 2.1.2 Measures of variability
- 2.1.3 Measures of distribution shape
- 2.2 Variable engineering
- 2.2.1 Numeric variable transformations
- 2.2.2 Categorical variable encodings
- 2.3 Ordinary least squares regression
- 2.3.1 Model estimation
- 2.3.2 Model assumptions and diagnostics
- 2.3.2.1 Testing for normality
- 2.3.2.2 Testing for heteroscedasticity
- 2.3.2.3 Testing for multicollinearity
- 2.3.2.4 Testing for autocorrelation
- 2.3.3 Violation of the fundamental OLS regression assumptions
- 2.3.3.1 Normality of residuals
- 2.3.3.2 Heteroscedasticity of residuals
- 2.3.3.3 Multicollinearity
- 2.3.3.4 Autocorrelation in residuals
- 2.4 Logistic regression
- 2.5 Principal component analysis
- 2.6 Hypothesis testing
- 2.6.1 Test of proportions
- 2.6.2 Exact binomial test
- 2.6.3 Jeffreys’ test
- 2.6.4 T-tests
- 2.6.5 Welch’s ANOVA and Games-Howell test
- 2.6.6 Hosmer-Lemeshow test
- 2.6.7 Population stability index
- 2.6.8 Herfindahl-Hirschman index and concentration testing
- 2.7 Bootstrapping
- 3 Custom optimization techniques
- 3.1 Effective interest rate
- 3.2 Constrained linear regression
- 3.3 Constrained logistic regression
- 3.4 Calibration of the PD ranking model
- 3.5 Transition rates matrix rescaling
- Bibliography
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them