Dibs E-Commerce Data Analytics & Sales Forecasting
Objective
to analyse historical data for Dibs, an online tech retailer facing declining sales and customer retention issues. Through data wrangling, deep analysis, and time-series modelling, the project aimed to uncover patterns in customer purchasing behaviour, geographic performance, and temporal sales trends. The ultimate goal was to deliver data-driven recommendations to optimise marketing strategies, improve product bundling, and drive revenue growth.
tool
R, tidyverse, ggplot2, forecast, keras (LSTM), ARIMA, Time-Series Analysis, Neural Networks
firm analysed
dibs
Role
Data Analyst

PROJECT OVERVIEW
Dibs, a rising online technological retail company in the US, faced stagnating sales and customer retention challenges following the abrupt impacts of the COVID-19 pandemic. The objective of this project was to leverage a highly complex, raw dataset of historical sales to extract actionable insights.
My specific contribution focused on transforming cleansed data into strategic business value. I led the deep analysis of purchasing patterns, engineered advanced data visualisations to map operational trends, and deployed machine learning models to forecast future sales, ultimately delivering targeted, data-driven marketing and operational recommendations.
KEY FINDINGS
1. The Revenue Anchor
Understanding what customers buy together is crucial for cross-selling and bundling strategies. I conducted an in-depth analysis of frequently grouped products by isolating unique Order.ID values to identify items purchased in the same transaction.
A key finding was the high frequency of mobile phones being bought alongside charging cables rather than headphones. This insight directly informed our bundling strategies, reflecting the modern tech landscape where manufacturers no longer include adapters in the box.
2. Visualising Business Operations
To optimise marketing spend and operational efficiency, it was necessary to map the business's natural traffic flow. I utilised ggplot2 to visualise sales trends across months, days, and hours.
The hourly order trend analysis revealed that order volumes consistently rise throughout the morning, experiencing a midday peak at 12:00 PM (14,202 orders), followed by the absolute peak of the trading cycle at 7:00 PM (14,470 orders). This data is invaluable for timing digital ad campaigns and scheduling server maintenance.
3. Predictive Modelling: Time-Series Forecasting
To predict future sales trajectories, I implemented and compared two distinct time-series forecasting models using an 80/20 train-test split:
ARIMA: A classical statistical method effective for linear patterns.
LSTM (Long Short-Term Memory Neural Network): An advanced deep learning model highly effective at capturing complex, non-linear temporal dependencies, built using
keras.
Model Evaluation: The LSTM model significantly outperformed the ARIMA model, achieving a much lower Root Mean Squared Error (RMSE of 17,537 vs. 22,492). Consequently, I deployed the LSTM model to forecast the next 30 days of daily sales for January 2020.
Baseline Forecasting - ARIMA
The Autoregressive Integrated Moving Average (ARIMA) model was selected as a robust baseline statistical method to identify and forecast linear patterns and seasonality within the sales data .
While the model successfully mapped the general upward trend of late 2019, it struggled to precisely capture the sharp, complex daily fluctuations during peak holiday periods, returning a Root Mean Squared Error (RMSE) of 22,492 on the test data.
Advanced Forecasting - LSTM
To capture the intricate, non-linear behaviours present in the daily sales fluctuations, I deployed a Long Short-Term Memory (LSTM) recurrent neural network .
The LSTM model significantly outperformed the baseline ARIMA model. By effectively learning long-term dependencies in the sequence data, the LSTM model achieved a much tighter fit to the actual testing data, lowering the RMSE to 17,537.
Future Projection: January 2020 Sales Forecast
Given the LSTM model's superior predictive accuracy, I utilised it to generate a 30-day sales forecast for January 2020.
The forecast revealed a distinct post-holiday downward trend, predicting that daily revenue would decline and stabilise around $117,269 by the end of January. This critical insight allowed me to recommend that Dibs adjust their immediate inventory procurement and prepare targeted promotional campaigns to mitigate the anticipated seasonal slump.


















