Building GMV Forecast Model for Trendyol Sales by BigQuery ML

Emre Tamer21 Dec 2023

Problem

Trendyol's finance team used traditional forecasting methods. They were slow, manual and error-prone, and gave no real-time view of market changes. Campaign days such as Black Friday add bursts that a plain seasonal model misses. High inflation in Turkey and the pandemic shift to online shopping make older history unrepresentative. The team needed a daily forecast that finance could read, check by category and refresh without a separate ML platform.

Example from the article: GMV is split into number of items sold and average item amount, and each part gets its own model. The article walks through the item-count model.

Solution in brief

Train a BigQuery ML arima_plus model on daily item counts from 2022 onward, inside the warehouse where the data already lives. Add the national holiday calendar (TR) and a custom table of company events with days before and after each event. Test on two months, one regular and one with a campaign week.

Questions this case answers
  • How to forecast a daily business aggregate directly in the data warehouse when scheduled promotional events distort the series
  • How to pick a backtest window that covers both a regular period and a promotional period
  • How to forecast daily GMV for finance planning without manual spreadsheet work?
  • How to make a time-series forecast aware of campaign days such as Black Friday?

Tools and methods

  • BigQuery ML ARIMA_PLUS — time-series model trained and run with SQL, with automatic seasonality detection
  • Custom holiday table — company events (tier, primary date, pre- and post-event days) passed to the model
  • Holiday region TR — built-in national and religious holidays
  • Looker — planned output channel for sharing forecasts with business teams
Continue reading — it's free

Google or a one-time email code. No password.