<?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"><channel><title><![CDATA[Richard Alaefule-data-analysis]]></title><description><![CDATA[Richard Alaefule-data-analysis]]></description><link>https://richard-alaefule-data.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6acc76e07c09648311fcf497/ff3cce9d-54be-416c-b43d-cde8461b9da9.jpg</url><title>Richard Alaefule-data-analysis</title><link>https://richard-alaefule-data.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Sat, 24 Oct 2026 02:27:19 GMT</lastBuildDate><atom:link href="https://richard-alaefule-data.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Retail-sales-case-study]]></title><description><![CDATA[This case study uses a simulated dataset I created for practice (4,800 orders, about $599K revenue). The method is real, and I'll apply the same steps to…]]></description><link>https://richard-alaefule-data.hashnode.dev/retail-sales-case-study</link><guid isPermaLink="true">https://richard-alaefule-data.hashnode.dev/retail-sales-case-study</guid><category><![CDATA[data analysis]]></category><category><![CDATA[Python]]></category><category><![CDATA[Dataanalysis]]></category><category><![CDATA[Data Science]]></category><category><![CDATA[data]]></category><dc:creator><![CDATA[rickylight]]></dc:creator><pubDate>Mon, 12 Oct 2026 09:09:41 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6acc76e07c09648311fcf497/de377173-a4bb-4778-b8f9-5dbf68a26b6a.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>This case study uses a simulated dataset I created for practice (4,800 orders, about $599K revenue). The method is real, and I'll apply the same steps to real business data.</p>
<h2>The Question</h2>
<p>Revenue grew steadily in the first half of the year, then dropped in Q3. The business question: what caused the dip, and where should the team focus next?</p>
<h2>The Data</h2>
<p>One year of order-level data with these columns: date, category, region, customer (new or returning) and revenue.</p>
<h2><strong>How I Cleaned the Data</strong></h2>
<p>• Removed duplicates: repeated order IDs</p>
<p>• Checked missing values: filled or dropped depending on the column</p>
<p>• Fixed formats: standardised dates and category names</p>
<p>• Flagged outliers: used the IQR method on order values</p>
<p>import pandas as pd</p>
<p>df = pd.read_csv("retail_sales_sample.csv", parse_dates=["date"])</p>
<p>df = df.drop_duplicates()</p>
<p>df["category"] = df["category"].str.strip().str.title()</p>
<p>df["month"] = df["date"].dt.to_period("M")</p>
<p>monthly = df.groupby("month")["revenue"].sum()</p>
<h2>Finding 1: Revenue Fell in July to September</h2>
<p>Monthly revenue held at roughly \(52-56K from January to June. It then dropped to about \)44K in July, $41K in August and $39K in September, before recovering in Q4.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6acc76e07c09648311fcf497/b966bad2-ef75-47fb-aa7e-865589e8ba50.png" alt="" style="display:block;margin:0 auto" />

<h2>Finding 2: Electronics Drove Most of the Drop</h2>
<p>Comparing Q3's monthly average to the rest of the year, Electronics fell about 31%, the biggest drop. Beauty fell 20%, Fashion 14% and Home 12%. Grocery stayed flat (+3%), so everyday demand held up.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6acc76e07c09648311fcf497/7cfbb837-28dd-4d12-88b4-33223c0ab437.png" alt="" style="display:block;margin:0 auto" />

<h2>Finding 3: The South Region Was Hit Hardest</h2>
<p>Every region declined in Q3, but the South fell about 33%, compared with 15-22% elsewhere. That points to a regional problem on top of the category issue.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6acc76e07c09648311fcf497/0e1bacb0-1a0e-47f1-b54a-aa25da4bd387.png" alt="" style="display:block;margin:0 auto" />

<h2>One More Insight</h2>
<p>Returning customers spent about $140 per order versus $113 for new customers, roughly 24% more. Keeping repeat buyers matters.</p>
<h2>Recommendations</h2>
<p>Investigate Electronics in Q3: check pricing, stock and competitor promotions.</p>
<p>Review the South region: look at delivery times, local campaigns and stock levels.</p>
<p>Invest in retention: loyalty rewards and win-back emails for returning customers.</p>
<p>Track weekly KPIs: build a Power BI or Tableau dashboard so dips are caught early.</p>
<p>Tools used: Python (pandas, matplotlib), Excel, SQL</p>
<p><a href="https://www.linkedin.com/in/alaefule-richard">Contact with me on LinkedIn</a></p>
<p><a href="https://www.linkedin.com/in/alaefule-richard">Please click</a></p>
<p><a href="https://docs.google.com/spreadsheets/d/1XKc3VlFO_6aM0sGASaml1eMilZbkZdpfBa1pnTR6OyE/edit?usp=drivesdk">Click to view the dataset</a></p>
]]></content:encoded></item></channel></rss>