Skip to Content

Data analysis for retail: 4 examples

Here are four analyses I carried out to show how I work: start from a business owner's question, clean the data, measure, then say what to do.

These are personal projects, not client results. Each one states whether the data is public or synthetic.

Book a 30-minute call

A bar chart on a screen on a desk, a symbol of data analysis
Illustration: two charts, the share of customers and the share of revenue by segment, with the three criteria of the RFM method: recency, frequency and monetary value

RFM customer segmentation: who generates the revenue?

Public data: Online Retail II, a British e-commerce business, about 1 million rows.

Out of 5,878 customers, 20% (the “Champions”) generate 74% of revenue, and a third of the base accounts for only 3.6% of it. A quarter of the raw rows (25%) had to be discarded before any analysis: returns, cancellations, orders without a customer. Result: four named customer groups, with one action for each, protecting the best or reactivating those who have left.

See the project on GitHub

Price elasticity: how far can you raise your prices?

Public data: Kaggle, 48 products, 7 categories.

A naive regression advises raising prices everywhere. Corrected for the “premium product” effect, it says the opposite: in the 4 categories where the result is significant, a 10% increase would reduce revenue by 16% to 38%. The limits are written up in the project: small sample, elasticities closer to those of promotions than of list prices.

See the project on GitHub

Two bar charts separated by a different sign, to compare the naive result and the corrected result
Illustration: map of France with four stores (Lille, Paris, Lyon, Marseille) surrounded by their catchment area, and a white zone in the South-West around Toulouse and Bordeaux

Catchment area: where to open the next store?

Real geography (GeoNames cities), synthetic sales.

For a fictional chain of 4 stores, 80% of revenue comes from customers within 19 km of a store. A Huff model identifies the white zones: the South-West, more than 300 km from the nearest store, is the largest uncovered area, with Toulouse at the top.

See the project on GitHub

dbt dashboard: running a convenience store

Synthetic data.

16 dbt models, 34 quality tests and a Streamlit dashboard: sales ranking (this week, the previous one, the same week last year), stock and losses, gap between theoretical stock and counted stock with alerts, replenishment list by supplier. The 3 products where thefts had been injected come out at the top of the gap ranking: the signal works.

See the project on GitHub

A grid of raw data turning into a chart, to illustrate a dbt pipeline

And on your data?

A free 30-minute video call: you show me a file or a report, and I tell you honestly what can be done. No commitment. For a real client case, also read A real case in food processing: 5 reports for an SME.

To go further: Excel or Power BI: which one to choose, and when, Why your figures do not match from one tool to another and the frequently asked questions about the freelance data analyst profession.

Book a 30-minute call