<?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 Nnaemeka Destine Dike on Medium]]></title>
        <description><![CDATA[Stories by Nnaemeka Destine Dike on Medium]]></description>
        <link>https://medium.com/@destine.dike234?source=rss-150986d9c636------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*147RVkZaPC6jxfDK</url>
            <title>Stories by Nnaemeka Destine Dike on Medium</title>
            <link>https://medium.com/@destine.dike234?source=rss-150986d9c636------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 20:52:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@destine.dike234/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[A Good Churn Model Isn’t a Good Retention Plan]]></title>
            <link>https://medium.com/@destine.dike234/a-good-churn-model-isnt-a-good-retention-plan-51583081aa77?source=rss-150986d9c636------2</link>
            <guid isPermaLink="false">https://medium.com/p/51583081aa77</guid>
            <category><![CDATA[business-analysis]]></category>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[churn-prediction]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Nnaemeka Destine Dike]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 09:19:25 GMT</pubDate>
            <atom:updated>2026-11-24T09:19:25.100Z</atom:updated>
            <content:encoded><![CDATA[<p><em>What an Excel, SQL, Python, and Power BI project taught me about base rates, honest validation, and the one number worth testing</em></p><p><em>A business analytics case study on 7,043 telecom customers</em></p><p>My churn model scored an AUC of 0.84 on customers it had never seen. By the usual standards, that is a good model. And yet that was not the most important number in the project.</p><p>The most important number was <strong>14.1%</strong>. It is the offer success rate below which my retention plan stops making money. I had assumed 30%. Nothing in the data could tell me whether the real figure was 30%, 15% or 5%.</p><p>This is the story of how I got there, and of the smaller traps along the way.</p><h3>The project in one paragraph</h3><p>I analysed the IBM Telco Customer Churn sample: 7,043 customers, 21 columns covering plans, services, contract, tenure and charges, and a churn flag (1,869 customers, or 26.5%, had left). I used Excel to inspect and reconcile, MySQL to measure churn by segment, Python to clean the data and build a validated model, an Excel workbook to model retention economics, and Power BI to report. Two limits shape everything below: the file has <strong>no dates</strong>, so it is a snapshot, and it has <strong>no cost data</strong>, so any money figure rests on assumptions.</p><h3>Step 1: Understand the data before modelling it</h3><p>The cleaning was short, but each decision mattered.</p><ul><li><strong>Eleven blank totals.</strong> Eleven TotalCharges cells held a single space. All eleven belonged to customers with a tenure of zero: they had joined that month and had not been billed. Dropping them would have deleted real customers, and leaving blanks would have broken calculations. The honest value was 0.00, and I added a flag so the decision stays visible.</li><li><strong>Twenty-two “duplicates” that are not.</strong> Twenty-two customers matched another customer on every column except the ID. They were not duplicates. All of them had a tenure of one month, and 62% had no internet service, against 22% overall. They were different people on the same simple plan, and deleting them would have removed real customers.</li><li><strong>The word “None”.</strong> I had labelled customers with no internet as None. When pandas reads a CSV, it treats the text “None” as a <strong>missing value</strong>. Every grouping silently dropped 1,526 customers, and nothing raised an error. I only noticed because a table showed two internet types instead of three. Renaming the category to No internet fixed it.</li></ul><p>That last one is my favourite lesson in the project: a silent data loss is more dangerous than a crash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4U5l-ck0SEjlmmlufmXJAw.png" /></figure><h3>Step 2: Who churns?</h3><p>SQL made the picture clear quickly.</p><ul><li><strong>Month-to-month contracts</strong> are 55% of customers but 89% of churners. Their churn rate is 42.7%, against 11.3% for one-year and 2.8% for two-year contracts.</li><li><strong>The first year</strong> is the danger zone: first-year customers are 31% of the base but 55.5% of churners, and their churn rate (47.4%) falls to 6.6% after five years.</li><li><strong>One combination</strong> stands out: month-to-month, fiber optic, paying by electronic check. It covers 1,307 customers (19% of the base), churns at 60.4%, and holds 42% of all churners.</li></ul><p>A natural question is whether this is really about contract or just about being new, since new customers are mostly on month-to-month plans. So I held tenure fixed. Within every tenure band, month-to-month customers churned at several times the rate of two-year customers. The contract effect is not just newness.</p><p>Another result looked like a clean story and was not. Customers with more add-ons churn less, but across all customers, “zero add-ons” mixes people with no internet (very low churn) and internet customers who bought nothing (high churn). Inside fiber optic alone, churn falls from 60.4% with no add-ons to 9.2% with all six. The relationship was real but hidden until I split the groups, and even then it is an association: customers choose their add-ons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XAWYtyGPUEn37FhWyx_pUw.png" /></figure><h3>Step 3: A model, with the rules written first</h3><p>Before running anything, I wrote down the rules, so the results could not steer them:</p><ol><li>Gender and age would <strong>not</strong> be model features, because they are protected attributes. I would test whether leaving them out cost anything, and check how each group was treated.</li><li>Models would be compared by cross-validation on the training split only, and I would prefer the simple, explainable logistic regression unless another model beat it by more than 0.01.</li><li>The test set would be used once.</li></ol><p>Then I set baselines, because a model has to beat something. Predicting that nobody leaves is 73.5% accurate and useless, which is why accuracy is the wrong score for a problem with 26.5% churn. A one-line rule, “flag every month-to-month customer,” reaches 89% of churners but flags 55% of customers, so only 43% of those flagged really churn.</p><p>Three models were within about 0.01 of each other in cross-validation, so the rule selected the logistic regression. On the test set, it scored an AUC of 0.844 (95% interval 0.825 to 0.863). If the top 20% of customers by risk are contacted, 66% of them really would have churned, and half of all churners are reached. The probabilities are well calibrated, and each customer was scored by a model that had never seen them. Actual churn climbs from 7.5% in the Low tier to 32.4% in Medium and 65.6% in High.</p><p>I am honest about where the model adds value. The one-line rule is already strict when you contact half the base. The model earns its keep at the <strong>top of the list</strong>, where an offer budget is actually spent.</p><p>Two robustness checks mattered. Tenure was the strongest feature, and in a snapshot file tenure can partly encode the outcome. Refitting without it lowered AUC only from 0.842 to 0.830, so the model does not hinge on it. And adding gender and age changed AUC by 0.0001, so leaving them out cost nothing.</p><p>The fairness check was less comfortable. Gender was treated almost identically. But senior citizens were flagged about twice as often (43.4% against 21.4%), because they really do churn more and tend to have fiber and month-to-month plans, even though age is not in the model. The model is also less accurate for them. That is acceptable for a discount, and worth reviewing before using the scores for anything that restricts a service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*jZocN4-zGwWsLGAXFW1XLQ.png" /></figure><h3>Step 4: Is it worth acting?</h3><p>A model ranks customers. A business needs to know whether contacting them pays. For each active customer, I calculated an expected benefit: churn probability, times the offer success rate, times the value of keeping the customer, minus the cost of the offer. Value was monthly charge times an assumed 40% margin times 12 months. A customer is contacted only if that number is positive.</p><p>With my assumptions (an offer cost of 25 and a success rate of 30%), this selects 1,360 of 5,174 active customers, costs 34,000, is expected to keep about 182 customers, and nets about <strong>38,000</strong>. Contacting everyone loses 30,862, and contacting the same number at random also loses money. So the model’s ranking is what makes the offer pay.</p><p>Then came the part I nearly got wrong. My first sensitivity table re-picked the best list for every assumption, so it could never go negative. It looked reassuring, and it was misleading. The real risk is different: I send offers to the list I chose under my assumptions, and then the world turns out to be different. When I held the list fixed, the picture changed. At a 15% success rate with an offer cost of 50, the same list <strong>loses 31,887</strong>. The break-even success rate is <strong>14.1%</strong>, less than half of what I assumed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZP9pXNZ68zMwgOu3VRp2YA.png" /></figure><p>The honest recommendation, therefore, is not “send the offers.” It is “run an A/B test of the offer first.” The success rate is the one number the data cannot supply, and it decides whether the plan makes money.</p><h3>The dashboard</h3><p>The Power BI report has three pages: a churn overview, a customer-segmentation page, and a retention-opportunities page showing churn by contract, payment method, and tenure. It is descriptive. The model’s scores, the at-risk list, and the economics live in the notebooks and the Excel workbook, and my next step is to extend the report with them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5xktlKErSrGgWnza79wUDQ.png" /></figure><h3>What I would do next</h3><ul><li>Run the A/B test, then re-run the economics with the measured success rate.</li><li>Add dates to build real cohorts and survival curves.</li><li>Add customer-level cost and margin.</li><li>Bring the risk tiers, the at-risk list, and the economics into the dashboard.</li></ul><h3>Five takeaways for aspiring analysts</h3><ol><li><strong>A silent failure is worse than a crash.</strong> Check that your groups add up to your total.</li><li><strong>Write your rules before you see the results.</strong> It is the only way results cannot steer the rules.</li><li><strong>Compare a model with a simple rule.</strong> Know where it adds value, and say so.</li><li><strong>Test a plan with the assumptions held fixed.</strong> Re-optimising for every scenario hides the real risk.</li><li><strong>Find the one number that decides everything</strong>, and say plainly that the data cannot supply it.</li></ol><p>The code, SQL, notebooks, and Excel model are on GitHub: [GitHub link]. If you have ever trusted a sensitivity table that could not go negative, I would like to hear how you caught it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51583081aa77" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Sales Collapse That Wasn’t (and the One That Was)]]></title>
            <link>https://medium.com/@destine.dike234/the-sales-collapse-that-wasnt-and-the-one-that-was-0fe45f85429f?source=rss-150986d9c636------2</link>
            <guid isPermaLink="false">https://medium.com/p/0fe45f85429f</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[business-analysis]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[exploratory-data-analysis]]></category>
            <category><![CDATA[power-bi]]></category>
            <dc:creator><![CDATA[Nnaemeka Destine Dike]]></dc:creator>
            <pubDate>Tue, 10 Nov 2026 09:03:50 GMT</pubDate>
            <atom:updated>2026-11-10T09:03:50.256Z</atom:updated>
            <content:encoded><![CDATA[<p><em>What an Amazon India sales dataset taught me about settled data, honest forecasting, and the limits of what data can tell you</em></p><p><em>A business analytics case study: Excel, Python, MySQL and Power BI</em></p><p>The last three days of my dataset looked like a catastrophe. Net revenue dropped sharply on 27 June, fell further on the 28th, and was close to nothing by the 29th. If I had built a dashboard that afternoon, the headline would have been “sales are collapsing.”</p><p>They weren’t. Booked value on 28 June was ₹772K, in line with the days before. What had changed was that those orders hadn’t shipped yet when the report was exported, so they were still marked “Pending” and counted as zero revenue.</p><p>That one catch shaped everything else in this project, and it is the reason I think the most valuable analytical skill is not modelling. It is knowing what your data can and cannot be trusted to say.</p><h3>The project in one paragraph</h3><p>I analysed 128,975 order lines from an Amazon India fashion seller (31 March to 29 June 2022) using Excel, Python, MySQL and Power BI. The goal was practical: find where revenue leaks, explain a drop in sales, forecast the next four weeks, and flag stock problems. The data has no cost or profit column, so this is a revenue and operations study, not a margin study. I will say where that limits the conclusions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JOw3u6NEIkqWUDx7mud5bw.png" /><figcaption>Executve Overview Dashboard</figcaption></figure><h3>Lesson 1: Find out which data is finished</h3><p>The sales report records an order’s status at the moment of export. Orders placed a few days earlier have mostly shipped; orders placed in the last day or two have not. So I checked, day by day, what share of orders were still pending:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/377/1*6Pphk6O96x2xGV-MD1On7A.png" /></figure><p>Until 26 June, the share is close to zero, and then it jumps. Those days are not low-demand days; they are unfinished days. I defined the analysis window from the data itself: 4 April to 26 June, which is 84 days, or exactly 12 whole Monday-to-Sunday weeks. Using whole weeks matters too, because it stops weekday patterns from biasing any before-and-after comparison.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xs0lGBEBuWjHeNqfgs8VNg.png" /></figure><p><em>Net revenue per day. The red bars on the right look like a collapse, but their orders had not shipped when the data was exported.</em></p><p>There is also a distinction I used throughout. <strong>Gross booked</strong> is the value of every order line, whatever its status. <strong>Net revenue</strong> is the value of completed lines only. Mixing those two quantities is one of the easiest ways to produce a wrong number.</p><h3>Lesson 2: Cleaning is a series of decisions, not a script</h3><p>The cleaning code is short. The thinking behind it is not. A few of the decisions:</p><ul><li><strong>Duplicates.</strong> Six order lines were exact copies of the line above, so I dropped them. But 8,597 repeated order IDs were <em>not</em> duplicates: an order with several items has one line per item. Dropping those would have deleted real sales.</li><li><strong>Blank amounts.</strong> 7,795 amounts were blank, and 97% of them belonged to cancelled orders. I set them to zero and flagged them rather than dropping the rows, because the cancellations themselves were part of the story.</li><li><strong>State names.</strong> There were 69 different spellings for about 36 states and territories (typos, abbreviations like RJ and PB, old names like Orissa). Missing or invalid states became “Unknown,” not deleted rows.</li></ul><p>The most important discoveries were not cleaning problems but <strong>traps</strong>, places where a naive analysis would have drawn a wrong conclusion:</p><ul><li><strong>Returns are recorded only for Merchant-fulfilled orders.</strong> Amazon-fulfilled orders show a 0% return rate, but that is a gap in the report, not great performance. Comparing return rates across fulfilment models would have been simply wrong.</li><li><strong>Promotion IDs look predictive but are not.</strong> A naive comparison showed a 0.4% cancellation rate for orders with a promotion against 37% without. But 98% of cancelled orders carry no promotion ID because it is recorded after the order is confirmed. The pattern is an artefact, not an effect.</li></ul><p>I logged every issue (15 in total) and the decision I made for it, so anyone can challenge a choice later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BBodhOX11Hq06T6E7G1hkw.png" /><figcaption>Data Modelling</figcaption></figure><h3>The real finding: one step, not a slide</h3><p>Once I used only settled days, a clear pattern appeared. Net revenue per day was fairly steady, then dropped in a single week and stayed lower. I searched for the single best change point and found it on <strong>9 May</strong>. Average daily net revenue fell from <strong>₹876K to ₹719K, a drop of 17.9%</strong>, with a 95% interval of roughly -23% to -11%. A single step explained 44% of the day-to-day variation, against 28% for a straight-line trend.</p><p>The decline was also broad:</p><ul><li>All six zones fell. The South dropped 8%, while the other five fell between 21% and 30%.</li><li>Sets fell 29% and Kurtas 20%, while Western Dress actually grew 34%.</li><li>It was a volume problem: order lines per day fell 22.5%, while unit prices did not. A price-volume-mix breakdown, which adds up exactly to the total change, confirmed it.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AqgLMAGzn7eDgSRhBoSscQ.png" /></figure><p><em>02_weekly_by_category.png. Caption: Sets and Kurtas fell by about a third in one week, while Western Dress held up.</em></p><h3>What it wasn’t</h3><p>A good analyst lists the obvious explanations and tries to kill them. I tested three:</p><ol><li><strong>Cancellations.</strong> The cancel rate barely moved, from 14.4% to 14.1%. The fall in revenue was due to fewer orders, not more failures.</li><li><strong>Catalog changes.</strong> Styles that were discontinued or newly launched netted out to about +₹3K per day, against a -₹157K per day total fall. And 63% of the styles sold both before and after simply sold less.</li><li><strong>Stock-outs.</strong> Only 1 of the top 150 styles had almost no stock, and a style’s stock level had no relationship with how much it fell (correlation -0.02).</li></ol><p>All three were ruled out. That leaves a question the data <strong>cannot answer</strong>: what actually changed on 9 May? Advertising spend, a sale event, pricing, and competitor activity are all plausible, and none of them is in this dataset. So the recommendation is not a guess at the cause. It is a precise instruction: check those things for that week. It is worth roughly ₹5 million a month if it can be won back.</p><h3>Forecasting honestly</h3><p>With only 84 days of data, complicated models are a trap. I compared six simple ones: same-weekday-last-week, recent averages with a weekday pattern, exponential smoothing, a linear trend, and an average of the best three. Each was scored on data it had never seen, using several rolling test windows.</p><p>The recent-level models had an average daily error of about 10% to 12%, against 13% for the naive baseline and 15% for the linear trend. The straight-line trend was the worst, which makes sense: the data stepped; it didn’t slide.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gQX_0sSpi4McaG9g7eolVA.png" /></figure><p>Here is the part I think matters most. The top three models scored so closely that, with so few test windows, I could not tell them apart. The single best one also over-forecast on average. So I used an <strong>ensemble</strong>, the average of the three. I decided that rule <em>after</em> seeing the results, and I say so in the project documentation. I would rather disclose a choice than pretend I made it in advance.</p><p>The models also disagreed with each other by up to 16% on the 28-day total, so the forecast is a range, not a number: about <strong>₹19.4M over the next four weeks, with an 80% range of ₹15.6M to ₹22.7M</strong>. Getting back to the pre-9-May level would mean about ₹24.5M.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-0lD1xnrbdz9nqivXQrj3Q.png" /></figure><p><em>The four-week forecast with its range. The dotted line is the average before the step change.</em></p><h3>Where money leaks and where stock runs out</h3><p>Over the settled period, ₹73.8M was booked, and ₹65.9M was kept (89%). Cancellations cost ₹6.5M (8.8% of bookings) and returns ₹1.35M (1.8%).</p><p>Merchant-fulfilled orders were cancelled more often: 17.5% against 12.8% for Amazon-fulfilled orders. If Merchant orders had matched Amazon’s rate, roughly ₹0.8M of bookings would have been kept. That is a rough estimate, because the two groups may sell different products to different regions, so I treat it as a size of the prize and not a promise.</p><p>On inventory, 76 styles had under 30 days of stock at their recent sales rate, and together they made up 26% of revenue. Twelve had under a week. The top-selling style, JNE3797, had just 3.4 days left. At the other end, 276 styles held 14,353 units (6% of all stock) and sold nothing in the window.</p><h3>Turning it into a dashboard</h3><p>The Power BI report has three pages: an executive overview, one that explains the step change and the forecast, and one for leakage and inventory. A few principles guided it:</p><ul><li><strong>Show rates as bars, never as pie slices.</strong> Rates do not add up to a whole, so a pie of cancel rates misleads.</li><li><strong>Check every number against an independent calculation.</strong> The same totals appear in Excel, MySQL, and Python, and each dashboard measure has an expected value computed elsewhere.</li><li><strong>Put the caveats on the page.</strong> Returns exist only for Merchant orders, and the cause of the drop is unknown. Both are stated in text boxes next to the charts.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5CbsnELgD_7EQljM_sSQGQ.png" /></figure><h3>What I would do next</h3><ul><li>Add <strong>cost data</strong> to move from revenue to margin.</li><li>Add <strong>advertising spend and promotion calendars</strong>, the data most likely to explain 9 May.</li><li>Extend the history beyond three months, to measure seasonality and improve the forecast.</li></ul><h3>Five takeaways for aspiring analysts</h3><ol><li><strong>Ask whether your data is finished</strong> before you ask what it says.</li><li><strong>Treat cleaning as decisions, and write them down.</strong></li><li><strong>List the obvious explanations and try to kill them.</strong> Ruling things out is a finding.</li><li><strong>Backtest a forecast and give a range.</strong> A single confident number is rarely honest.</li><li><strong>Say what the data cannot tell you.</strong> It builds more trust than a tidy story.</li></ol><p>The code, SQL, notebooks, and Power BI build files are on GitHub: [GitHub link]. If you have worked with data that looked finished and wasn’t, I would like to hear how you caught it.</p><p><a href="https://github.com/Destinetheanalyst/Amazon-India-Sales-Analysis-Revenue-Leakage-a-Sudden-Decline-and-a-4-Week-Forecast">https://github.com/Destinetheanalyst/Amazon-India-Sales-Analysis-Revenue-Leakage-a-Sudden-Decline-and-a-4-Week-Forecast</a></p><p><em>Data Analytics, Business Analytics, Power BI, SQL, Python</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0fe45f85429f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>