<?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 Elijah Obisesan on Medium]]></title>
        <description><![CDATA[Stories by Elijah Obisesan on Medium]]></description>
        <link>https://medium.com/@elijahobisesan01?source=rss-545d06e485c0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*5MoHJxrZBqmFUTAi</url>
            <title>Stories by Elijah Obisesan on Medium</title>
            <link>https://medium.com/@elijahobisesan01?source=rss-545d06e485c0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:32:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@elijahobisesan01/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 Bank Customer Churn: A Comprehensive Guide]]></title>
            <link>https://medium.com/@elijahobisesan01/predicting-bank-customer-churn-a-comprehensive-guide-52b2627405a4?source=rss-545d06e485c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/52b2627405a4</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[banking]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[prediction-model]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Elijah Obisesan]]></dc:creator>
            <pubDate>Fri, 02 Aug 2024 19:55:45 GMT</pubDate>
            <atom:updated>2025-04-08T15:17:18.768Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s data-driven world, understanding customer behavior is crucial for businesses, especially in the banking sector. Customer churn as a term simply means when customers leave a company. This is a significant concern, as retaining customers is often more cost-effective than acquiring new ones. In this article, I’ll walk you through my project on predicting banking customer churn, covering everything from data exploration to model evaluation.</p><h3>📊 Project Overview</h3><p>The goals of this project are to analyze a bank dataset to view see the reasons why customers end up leaving the bank and to build a predictive model that identifies customers likely to churn from a bank. By leveraging machine learning techniques, we aimed to provide insights that can help the bank improve customer retention strategies.</p><h3>🧑‍💻 1. Data Collection and Preparation</h3><h3>Dataset</h3><p>The dataset used includes the following columns:</p><ul><li>RowNumber, CustomerId, Surname, CreditScore, Geography, Gender, Age, Tenure, Balance, NumOfProducts, HasCrCard, IsActiveMember, EstimatedSalary, Exited, Complain, Satisfaction Score, Card Type, Point Earned</li><li><a href="https://www.kaggle.com/datasets/radheshyamkollipara/bank-customer-churn"><strong><em>Link to dataset</em></strong></a></li></ul><h3>Data Cleaning</h3><p>The initial steps involved:</p><ul><li><strong>Handling Missing Values</strong>: Addressed any missing data points (though there were actually none in the dataset I made use of).</li><li><strong>Scaling</strong>: Used StandardScaler() to scale our numerical features.</li></ul><h3>🔍 2. Exploratory Data Analysis (EDA)</h3><p>EDA is crucial to understand the dataset and uncover patterns and below are some of the insights gotten from the dataset:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*qvuGEJMSL-dhLZ120jaskg.png" /></figure><ul><li>From the image above, we can see that out of the countries listed, more churns occurred in Germany. This can be looked into to figure out why it is so.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*XWAK54MtC18h6oH6FNCksQ.png" /></figure><ul><li>Rate of churn and complaints are highly correlated. That is, 99.5% of those who lodged complaints eventually left the bank. <br>This could be due to poor customer service, bad attitude to work of assisting staff, or even late response of the bank staff to customers’ complaints.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*lS1F_Lvr5DOGBbYeEW0vwg.png" /></figure><ul><li>The table above shows the churn rate of each gender by the differenct countries and it is seen that in each of them, females churned more than males.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*45m6JJW07UAKAq0V1oHY4Q.png" /></figure><ul><li>We can see from above the rate of churn of each customer by the card type possessed. <br>It is evident that customers with Gold card type are less likely to churn compared to others.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*u0VwOylGouT6LhoJ8NEl2w.png" /></figure><ul><li>From the heatmap above, we get to see that rate of exit of customers and complaints are heavily correlated, with a relation of 99.5%. Meaning that there is a very high tendency that once a customer lodges a complain, he/she might eventually leave the bank. There can be lots of reasons for this. Probably due to their customer service, dissatisfaction with rate of response, or something related…</li><li>Age also, though not fully correlated with rate of exit, it still has an effect on it. <br>We also get to see that younger people get to logde complaints more and since complaints and churn rate are correlated, they also most likely end up leaving the bank.<br>This can be seen in the charts below:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-opQbciFO7Z3hLrEqjQkDA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SEC9_MsniGfPCI5hIsg4lg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jnjUJCmYe5WK6D-ZmDg4JQ.png" /></figure><p>Note that the results gotten from the exploratory data analysis above aren’t all that can be gotten from the dataset as there are still more insights that can be gotten, depending on the bank’s needs.</p><h3>🤖 3. Model Building — Predicting Customer Churn</h3><h3>Preprocessing</h3><ul><li><strong>Feature Encoding</strong>: Used one-hot encoding for categorical variables.</li><li><strong>Feature Scaling</strong>: Standardized numerical features for better model performance.</li></ul><h3>Model Selection</h3><ul><li>Multiple classification models were evaluated:<br>Decision Tree Classifier — K-Nearest Neighbors Classifier — Random Forest Classifier — Support Vector Machine (SVM)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*IvvLj0B4RAV61oYu2LuRyg.png" /></figure><h3><strong>4. Recommendations:</strong></h3><ol><li>Address Complaint Management System — Nearly all customers (99.5%) who complained eventually left the bank<br>- Implement immediate complaint resolution system<br>- Set up proactive customer support to identify issues before they become complaints</li><li>Geographic Market Strategy — Focus on German market where churn rate (32.4%) is significantly higher <br>- Conduct market research to understand specific issues in German market<br>- Consider country-specific product offerings and services</li><li>Member Activation Program — Inactive members are almost twice as likely to leave (26.9% vs 14.3%) <br>- Develop targeted activation campaigns<br>- Create incentives for regular account activity</li><li>Age-Specific Solutions — Average age of churned customers is 44.8 years<br>- Create tailored products for different age segments<br>- Focus on digital services for younger customers <br>- Develop retention programs specifically for middle-aged customers</li><li>Customer Service Enhancement — Implement regular satisfaction surveys<br>- Provide additional training for customer service representatives<br>- Create a feedback loop for continuous service improvement</li></ol><h3>🔗 5. GitHub Repository</h3><p>All code and documentation for this project are available on my GitHub repository. Feel free to explore the code, try it out, and provide feedback!</p><p>🔗 <a href="https://github.com/etimexo/Bank_customer_churn_predict">Link to GitHub Repository</a></p><h3>📣 6. Conclusion</h3><p>Predicting customer churn is a vital aspect of maintaining and growing a business’s customer base. By leveraging machine learning, businesses can proactively address churn and enhance customer satisfaction. I hope this article provides a comprehensive overview of the process and inspires others to explore similar projects.</p><p>Feel free to reach out with any questions or comments. I’m excited to hear your thoughts and discuss data science further!</p><p>Wanna link up? Check me up on LinkedIn <a href="https://www.linkedin.com/in/teoso"><strong><em>here</em></strong></a><strong><em><br></em></strong>GitHub:<strong><em> </em></strong><a href="https://github.com/etimexo"><strong><em>here</em></strong></a><strong><em><br></em></strong>Gmail: <a href="http://elijahobisesan01@gmail.com/">elijahobisesan01@gmail.com</a></p><p><em>Thanks for reading thus far… Gracias</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52b2627405a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HNG11 Data Analysis Internship Stage 0 - Elijah]]></title>
            <link>https://medium.com/@elijahobisesan01/greetings-i-am-elijah-i-am-writing-this-article-as-part-of-my-hng11-data-analysis-internship-c0c638c7539c?source=rss-545d06e485c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0c638c7539c</guid>
            <dc:creator><![CDATA[Elijah Obisesan]]></dc:creator>
            <pubDate>Fri, 28 Jun 2024 20:06:51 GMT</pubDate>
            <atom:updated>2024-06-28T21:06:14.888Z</atom:updated>
            <content:encoded><![CDATA[<p>Greetings, I am Elijah. I am writing this article as part of my HNG11 Data Analysis Internship.</p><p><em>Without wasting much of your time, let’s begin.</em></p><h3><strong>Introduction</strong></h3><p>The dataset I will be working with is Kaggle’s Retail Sales Dataset. I have provided a link to the dataset in the article. <a href="https://www.kaggle.com/datasets/kyanyoga/sample-sales-data">https://www.kaggle.com/datasets/kyanyoga/sample-sales-data</a></p><p>The dataset provided contains 2823 records (entries) of sales orders, capturing various aspects of the sales process including customer details, order specifics, product information, and transaction details. The purpose of this review is to gather insight from first glance of the dataset while identifying key variables and their data types, conducting a quick exploration to identify any patterns, trends, or anomalies, and provide initial insights for potential areas of further analysis.</p><h3>Dataset Structure and Key Variables</h3><p>The dataset consists of the following columns and their respective datatypes:</p><ul><li><strong>ORDERNUMBER</strong>: Unique identifier for each order (int64)</li><li><strong>QUANTITYORDERED</strong>: Quantity of products ordered (int64)</li><li><strong>PRICEEACH</strong>: Price of each product (float64)</li><li><strong>ORDERLINENUMBER</strong>: Line number of the order (int64)</li><li><strong>SALES</strong>: Total sales amount (float64)</li><li><strong>ORDERDATE</strong>: Date of the order (object)</li><li><strong>STATUS</strong>: Status of the order (object)</li><li><strong>QTR_ID</strong>: Quarter of the year (int64)</li><li><strong>MONTH_ID</strong>: Month of the year (int64)</li><li><strong>YEAR_ID</strong>: Year of the order (int64)</li><li><strong>PRODUCTLINE</strong>: Product line category (object)</li><li><strong>MSRP</strong>: Manufacturer’s suggested retail price (int64)</li><li><strong>PRODUCTCODE</strong>: Product code (object)</li><li><strong>CUSTOMERNAME</strong>: Name of the customer (object)</li><li><strong>PHONE</strong>: Customer phone number (object)</li><li><strong>ADDRESSLINE1</strong>: Primary address line (object)</li><li><strong>ADDRESSLINE2</strong>: Secondary address line (object)</li><li><strong>CITY</strong>: City of the customer (object)</li><li><strong>STATE</strong>: State of the customer (object)</li><li><strong>POSTALCODE</strong>: Postal code of the customer (object)</li><li><strong>COUNTRY</strong>: Country of the customer (object)</li><li><strong>TERRITORY</strong>: Sales territory (object)</li><li><strong>CONTACTLASTNAME</strong>: Contact last name (object)</li><li><strong>CONTACTFIRSTNAME</strong>: Contact first name (object)</li><li><strong>DEALSIZE</strong>: Size of the deal (object)</li></ul><h3>Missing values and duplicates</h3><ul><li>There are 2521 missing values in the ADDRESSLINE2 column</li><li>There are 1486 missing values in the STATE column</li><li>76 missing values in the POSTALCODE column</li><li>And 1074 missing values in the TERRITORY column</li><li>There aren’t any duplicated values in the dataset.</li></ul><h3>Observations</h3><ol><li>Customers rarely filled the ADDRESSLINE2 data fields.</li><li>From the plot below, it can be seen that majority of orders were shipped, few disputed, a higher number were cancelled compared with In-Process, On-Hold and Resolved.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*lNV-g-d0sJdjgzgtTI2ukw.png" /></figure><p>3. From the plot below, it can also be seen that more medium-sized-deals were completed than others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*DY4GM_ZznHY3bweGMzj4RQ.png" /></figure><h3>Conclusion</h3><h4>Summary of Observations</h4><ul><li>The dataset includes detailed sales information with various numerical and categorical variables.</li><li>Missing values are present in columns such as ADDRESSLINE2, STATE, and TERRITORY.</li><li>Sales amounts vary widely, indicating different order sizes and values.</li></ul><h4>Potential Areas for Further Analysis</h4><ul><li><strong>Sales Performance</strong>: Investigating order statuses and their impact on sales performance and revenue.</li><li><strong>Trend Analysis</strong>: Examining sales trends over time by quarter, month, and year to identify seasonal patterns.</li><li><strong>Predictive Modeling</strong>: Building models to predict future sales, customer churn, and order completion based on historical data.</li></ul><p>By conducting further detailed analysis in these areas, insights can be gathered in sales dynamics and customer behavior, which can inform strategic decisions for improving sales performance and customer satisfaction. For more internship opportunities like this, you can visit <a href="https://hng.tech/hire">https://hng.tech/hire</a> or <a href="https://hng.tech/internship">https://hng.tech/internship</a>.</p><p><a href="https://github.com/etimexo/HNG11_task0">GitHub repo containing full code</a></p><p><strong><em>Thanks for reading through!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0c638c7539c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>