Late Deliveries and Repeat Customers: 99,441 Orders Analysed

2026-11-30来源 dev.toEnglish

Late deliveries cost an online shop more than one bad review. In the Olist dataset of 99,441 Brazilian e-commerce orders, customers rated on-time orders 4.3 stars on average and orders more than 8 days late 1.7 stars. Only 2.2% of customers ever placed a second order. I spent four weeks turning nine raw tables into a dashboard and four recommendations, and two of my own findings failed the checks along the way.

The numbers that matter

Measure Value
Revenue from delivered orders R$15.4M
Average order value R$159.83
Orders that arrived late 6.8%
Average review score 4.16 out of 5
Customers who ever came back 2.2%

Week 1: make the data trustworthy

The data came as nine linked tables. I modelled them into a star schema with two fact tables and four dimensions, and wrote 14 automated checks so no row went missing and revenue reconciled to the cent. One check exposed a trap: the customer ID changes with every order. Using the real customer key showed 96,096 actual customers, and every retention number depends on that fix.

Week 2: analyse, then try to break it

I built a monthly KPI layer in SQL with a written definition for every metric, then ran 12-month cohort retention and RFM segmentation of 95,000 customers into seven groups. Then I tested my own conclusions. Two didn't survive:

  • "Repeat buyers come back within 28 days." 28% of these "repeat customers" had split one shopping trip into several orders. Counting real return visits, the typical wait is 74 days.
  • "A late first order makes customers less likely to return." Late orders cluster in certain months. Comparing customers who joined at the same time, the effect isn't statistically significant.

If I had published after week 2 without those checks, two of the headline findings would have been wrong.

Weeks 3 and 4: a dashboard and a report

I published a live Streamlit dashboard anyone can filter by month, state and category, with every number matching the notebooks. Then I built a four-page Power BI executive report for a manager who has five minutes.

Four recommendations

  1. Set honest delivery dates by region. Late parcels drop ratings from about 4.3 stars to under 2.
  2. Ask for reviews after delivery. 74% of reviews on late orders were written before the parcel arrived.
  3. Build a second-purchase programme. With 2.2% of customers returning, the next sale is the biggest opportunity.
  4. Protect delivery in São Paulo, Rio de Janeiro and Minas Gerais. These three states bring in 62.5% of revenue.

What this means for your business

Check your own delivery promise against your actual delivery times, and look at when your customers write reviews. If most of your customers buy once, the cheapest growth you have is a reason to buy twice.

Open the live dashboard · Read the full case study · Code on GitHub

Have data you want answers from? Send me the question you want answered. Get in touch.

See how I work as a data analyst · Originally published on meetoluwaseyi.com.

原文:https://www.a8q9.cn/en/article/late-deliveries-and-repeat-customers-99-441-orders-analysed-e654b3.html

相关文章