<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kiryl Miranovich on Medium]]></title>
        <description><![CDATA[Stories by Kiryl Miranovich on Medium]]></description>
        <link>https://medium.com/@kiryl-m?source=rss-88efd1ee7c90------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*K9yQ-yPtFUdSjMnBk0e-1w.jpeg</url>
            <title>Stories by Kiryl Miranovich on Medium</title>
            <link>https://medium.com/@kiryl-m?source=rss-88efd1ee7c90------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 23:08:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kiryl-m/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Predicting the default probability of small businesses based on their credit history]]></title>
            <link>https://medium.com/analytics-in-action-columbia-business-school/predicting-the-default-probability-of-small-businesses-based-on-their-credit-history-852ce50d0d?source=rss-88efd1ee7c90------2</link>
            <guid isPermaLink="false">https://medium.com/p/852ce50d0d</guid>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[mba]]></category>
            <category><![CDATA[data-analytics]]></category>
            <dc:creator><![CDATA[Kiryl Miranovich]]></dc:creator>
            <pubDate>Thu, 22 Dec 2022 20:53:03 GMT</pubDate>
            <atom:updated>2022-12-22T20:53:03.271Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JzAhiAtY2FIRp_LmkqYJXA.jpeg" /></figure><p>Small businesses are the backbone of the U.S. economy. They make up 99% of all companies, employ over 50% of the workforce, and contribute about 50% of non-agricultural GDP. However, despite their economic importance, they often struggle to find adequate financing opportunities with traditional financial institutions. One of the main issues being that lenders do not have a clear perspective on the financial health of a business to make an informed decision on a loan or a cash advance application.</p><p>As part of the CBS class Analytics in Action, an interdisciplinary team of 5 graduate students partnered up with Kalamata Capital to develop a default prediction model to help them better identify creditworthy small businesses to lend money. And here is how we did just that:</p><h3>Understanding the Context</h3><p>Kalamata Capital receives several hundreds of financing applications each week through brokers. It needs to assess these applications to determine whether or not to fund it at the particular terms requested. In this process, two things are essential: First, the assessment needs to be reliable to keep the default risk low and ensure the profitability of the business; second, and, just as important, the process needs to be fast. Kalamata Capital competes with many other potential lenders. Only if it quickly identifies the creditworthy borrowers can it close the deal. Therefore, a purely manual process based on the human judgment will often be too slow and potentially biased to provide the results needed. An analytics-driven prediction model is crucial to gain and maintain a competitive edge.</p><h3>Defining the Problem</h3><p>In this context, our task was to develop a model that would predict the likelihood of default based on the characteristics known at the time of a financing application. As Kalamata Capital specializes in merchant cash advances with maturities under a year, our model only needed to focus on that time period in particular.</p><p>While Kalamata had historical data on their previously funded applications and their subsequent fate, this data set would have been too small and potentially biased due to pre-selection during the underwriting process <em>(see figure 1)</em>. The key ingredient of our prediction model would instead be credit report data procured from an external vendor on both the small businesses themselves (also called “business data”) as well as their owners (“consumer data”) in three-month intervals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*MAI-jNTPnOLoibQIQ5RnBg.png" /><figcaption>Figure 1. Defining the goal of the project</figcaption></figure><p>While this external data provided a more robust foundation to build a well-performing model, it also presented us with a new problem: while Kalamata’s internal data indicated if and when a specific borrower defaulted, such a variable would not be available for the external data which in essence are just aggregated credit reports pulled in pre-defined intervals. While credit fundamentals (e.g., FICO scores, outstanding balances, etc.) would change over time, nowhere would it say whether a specific combination of variables would constitute a “default” for Kalamata’s lending business. It quickly became apparent that we would have to develop two distinct models: one model to define what default is and a second one to try to predict it.</p><h3>Diving into the Data</h3><p>We dove straight into the data with a clear goal in mind. We quickly found that the idea that most of the work in data analytics is spent on data processing was also true for us.</p><p><strong>Data Cleaning</strong></p><p>The external data was only available in text files which first needed to be converted into CSV format based on data dictionaries provided by the vendor. After creating the necessary data preprocessing pipelines, we were confronted with several additional issues with the data: A large number of values were filled with “default” codes by the vendor that needed to be translated into a format usable in the modeling process.</p><p><strong>Data Preprocessing</strong></p><p>Furthermore, almost every row contained missing values <em>(see figure 2)</em>, which became painfully apparent when we were left with only 38 rows (out of over 70,000) after dropping missing values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*Pkt-PDVxt7gHVI9KnZIvlQ.png" /><figcaption>Figure 2. Missing data heat map (blue dots represent missing data)</figcaption></figure><p>We used a combination of techniques to deal with this issue. While we did remove rows and columns for which more than 50% of values were missing, we opted for kNN imputation for smaller sets of missing values to preserve more features and data points for our models <em>(see figure 3)</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*5Grg0o7NDXsypEev01mkSg.png" /><figcaption>Figure 3. KNN imputation approach used to deal with missing values.</figcaption></figure><p>Another issue we had to contend with was that part of the external data was gathered during the early months of Covid, which of course, had a profound impact on the health of the economy and small businesses in particular. Excluding this data was impossible as this would have left the remaining data set too small to be useable. Instead, we removed outliers and normalized the data to dampen the Covid impact.</p><p>Since we had information about each business’s owner, it made only logical sense to combine consumer data with external business data. This way, we had more context before model training. Hence, at this point, we have one dataset for finding the proxy for the default and two different datasets for our Model 2 after we find the proxy default variable.</p><h3>Building the Model</h3><p>As mentioned, our project consisted of building two distinct models. Model 1 determines a proxy variable for default, and Model 2 predicts the likelihood of default. Since Kalamata’s internal data contained a sample of both healthy and defaulted applications, we had the idea of linking this data with the external data to find specific features in the external data that correlate to default.</p><p>The internal data showed that most borrowers that eventually defaulted had done so by the 6-month mark <em>(see figure 4)</em>. Or said differently: If a company were healthy six months after application, it would likely continue to be for the remainder of the financing’s maturity. Thanks to this insight, we could now focus on external data taken at the 6-month mark (T6) after the application to look for default markers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*krfMkiTYttETVDKKkex_2Q.png" /><figcaption>Figure 4: Defaults at specified time intervals as a percentage of total defaults</figcaption></figure><p>After selecting a subset of the features available in the external data (considering an initial size of over 4,000 variables), our first approach was to run a logistic regression with the LASSO penalty to create a “synthetic” target variable that would combine several features into one default proxy. After weeks of data cleaning and preprocessing, the initial results were encouraging, with AUCs of up to 0.7. Yet, we soon had to realize that we could achieve similar results by replacing this complex “synthetic” variable by simply using a single feature as a default proxy <em>(see figure 5).</em> Given the lower complexity when using a single variable, we opted for this approach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4x3BE4BsELwrMGwUHrBUQg.png" /><figcaption>Figure 5. Performance of multi and single-variable models to identify a proxy for default</figcaption></figure><p>After creating a flexible modeling pipeline for Model 1, we ran a logistic regression model for each variable in the dataset. Then, we ranked their “default proxy” performance using AUC and selected top 10–12 performers for Model 2. We obtained a set of 10–12 variables that were good predictors of default; therefore, the Model 2 training was performed for all those variables separately. Now we needed to predict the value of the identified target variables in T6 based on the features available in T0 (i.e., at the time of the application). We started with linear regression, random forest regressor, XGBoost, and Neural Networks. The performance observed can be seen in figure 6.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*Dd3wnEaJL4y3HlkXXp0vtA.png" /><figcaption>Figure 6. Model performance for variable with the highest AUC</figcaption></figure><p>We finalized the XGBoost model as it provided the best performance with an R-squared of 0.53, using <strong>Weighted Days Beyond Term (DBT) of trades opened three months ago or earlier</strong> as the target variable. Since Kalamata Capital is not only interested in the prediction but also the underlying concept and explainability, we did not go with the Neural Networks approach even though the performance was slightly better than XGBoost.</p><h3>In conclusion</h3><p>Creating a default prediction model would support the underwriting process by immediately weeding out poor-performing borrowers and freeing up resources to screen other applications. The current model will require additional refinement to improve its performance. It was created to be modular for Kalamata Capital to adjust the model inputs with updated data sets and test other target variables to see if model performance will improve.</p><p>Following this, a pilot would be helpful with a sample of live applications to test its accuracy and to see how the model can be integrated with Kalamata’s existing operations.</p><h3>Key Learnings</h3><p>This project presented us with many more challenges than we might have expected at the outset. Still, it provided a great learning opportunity for our future data analytics and consulting endeavors. Our main takeaways are:</p><ul><li><strong>Budget sufficient time for data preparation.</strong> Even though we have heard this point many times, we still ended up spending way more time on data processing and preparation than we initially thought.</li><li><strong>Make it replicable and modular:</strong> Your project will go through many iterations, and what may seem the right approach initially may turn out to be a dead end. Keeping the code modular and easily accessible allows it to be repurposed both by the team along the way and by the client after the handover.</li><li><strong>Be specific:</strong> Defining the problem is half the battle. Pushing for high specificity from the outset will force you to analyze potential issues in-depth, identifying hurdles early on and ensuring alignment within the team and with the client.</li><li><strong>Keep it simple:</strong> Focus on explainability. Simple is often better. Make sure to test simple approaches before switching to more complex solutions (even if they look fancy and are more interesting).</li></ul><h3>Our team</h3><p>From left to right: <em>Xi (Peter) Zhao, Kiryl Miranovich, Ashwani Varshney (</em><a href="https://medium.com/u/e546ada9a361"><em>Ashwanivarshney</em></a><em>), Cyrill Tschudin, Rebecca Loh</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gUpybIisz1K6-fVfE_WnUQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=852ce50d0d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-in-action-columbia-business-school/predicting-the-default-probability-of-small-businesses-based-on-their-credit-history-852ce50d0d">Predicting the default probability of small businesses based on their credit history</a> was originally published in <a href="https://medium.com/analytics-in-action-columbia-business-school">Analytics in Action @ Columbia Business School</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>