Stockout Prediction on BigQuery, for supply chain
Ward pulls from any BigQuery dataset, gA4 event exports, ads data transfers from Google BigQuery, runs stockout on it, and hands you the supply chain read on a daily cycle.
Stockout Prediction on BigQuery, for supply chain
You find out about stockouts after customers do. Ward filters to what a VP Supply Chain can act on and drops the rest.
Here is stockout prediction in plain terms. Ward detects SKUs trending toward zero-on-hand and alerts your team with replenishment recommendations before customers notice.
What Ward does with that: Ward analyzes sell-through velocity, current inventory levels, lead times, and supplier reliability to predict stockouts 24-72 hours before they occur.
Setup: Service account with BigQuery Data Viewer role. Ward runs read-only SQL queries on your schedule.
What you get
- Automated replenishment recommendations
- Supplier-aware lead time modeling
- Priority ranking by revenue impact
- Reduce lost sales by catching gaps early
Chat
Ask anything. Ward routes to the right agent and returns cited answers.
I pulled Store 37’s last 28 days against the chain baseline. Two root causes, both compounding.
| Signal | Finding |
|---|---|
labor_efficiency | Rev/labor-hour −22% vs. cluster, staffing mismatch at 11a–1p peak |
inventory.fresh | Fresh fill 83%, backroom replenishment lag at 2–4p |
promo.lift | BOGO crackers cannibalized Brand Y by 28%, net category +6% |
Recommend: re-baseline Store 37 schedule against true peak, raise replen window to 1p, and review the BOGO before next cycle.
labor_scheduling…
Reporting
Pinned views built from saved data-lake queries. Every number re-derivable from its SQL.
| Model | Horizon | MAPE |
|---|---|---|
holt_winters | 4wk | 4.1% |
arima_sarimax | 13wk | 8.9% |
gbm_demand | 1wk | 2.1% |
bayes_hier | new store | 11.4% |
Sources
Connect external systems to the data lake.
| Name | Type | Last sync |
|---|---|---|
sap_pos_transactions | import | 2m ago |
sap_inventory_shrinkage | import | 2m ago |
sap_labor_scheduling | import | 14m ago |
retail_inventory_weekly | import | 1h ago |
retail_google_ads_daily | import | 1h ago |
retail_meta_ads_daily | import | 1h ago |
retail_ga4_website_daily | import | 1h ago |
Policies
Browse and manage Cedar access policies for your tenant.
| Policy ID | Effect | Resources |
|---|---|---|
merch-read-default | permit | Model::* |
finance-read-shrinkage | permit | Model::"inventory_shrinkage" |
vendor-blocked | forbid | Model::"labor_*" |
region-west-only | permit | Tenant::"acme" |
What Ward has eyes on.
The stockout model runs every morning, not on a reporting calendar. It spots the pattern, traces the cause, and attaches a recommended action before the number reaches a review deck.
The connection to Google BigQuery is read-only and runs on your schedule. Ward pulls from any BigQuery dataset, gA4 event exports, and the rest of the feed, then stitches together it with external context your Data Platform does not carry: weather, local events, competitor pricing.
Why this combination
is its own problem.
Stockout Prediction produces a lot of output that is technically correct and operationally useless to supply chain. Ward filters on whether the finding changes a decision a VP Supply Chain can actually make.
What the first 90 days
actually look like.
-
01
Week 1: read-only connection
Ward plugs into Google BigQuery with read-only credentials and begins ingesting any BigQuery dataset and gA4 event exports. No config changes on your side. First insight cards arrive inside the first 48 hours.
-
02
Weeks 2 to 3: calibration
Baselines stabilize per store and per category. Ward stops flagging normal variance and starts flagging exceptions. This is the window where the false positive rate drops sharply.
-
03
Weeks 4 to 12: operating rhythm
Insight cards arrive each day and get triaged like any other queue. Most teams find the volume settles into something one person clears in ten minutes. What matters is the action rate, not the alert count.
How Ward connects to Google BigQuery
Ward queries BigQuery using your existing datasets. GA4 exports, POS data, CRM exports. Ward reads it where it lives.
Setup: Service account with BigQuery Data Viewer role. Ward runs read-only SQL queries on your schedule.
Data Ward reads from BigQuery
Impact metrics with BigQuery
Data lake enrichment
Ward enriches BigQuery data with: Any BigQuery dataset, GA4 event exports, Weather & events, Demographics, Custom feeds
You find out about stockouts after customers do.
- ×Demand forecasts are off by 15-25% and nobody catches it until the shelf is empty
- ×Supplier fill rate problems announce themselves at the receiving dock
- ×Safety stock levels get set once a year and left alone
- ×No early warning system for supply chain disruptions
- ×Replenishment exceptions require manual triage every morning
- ✓Stockout prediction cards arrive 24-72 hours before empty shelves
- ✓Supplier fill rate tracking with automatic escalation
- ✓Dynamic safety stock recommendations based on current demand signals
- ✓Weather, event, and macro-driven demand adjustments
- ✓Replenishment exceptions auto-prioritized by revenue impact
Stockouts cost retailers $1.14 trillion in missed sales globally each year. Source: IHL Group
Frequently asked questions
Service account with BigQuery Data Viewer role. Ward runs read-only SQL queries on your schedule. Data points include: Any BigQuery dataset, GA4 event exports, Ads data transfers, Custom ETL outputs.
You find out about stockouts after customers do. Ward solves this with automated insight cards: Stockout prediction cards arrive 24-72 hours before empty shelves. Supplier fill rate tracking with automatic escalation. Dynamic safety stock recommendations based on current demand signals.
First insight cards arrive within 48 hours of data connection. Ward needs approximately 2 weeks to establish stable baselines for your specific operation.
No. Ward sits on top of your existing stack. It is the proactive intelligence layer that watches your data continuously and delivers insight cards, so your team acts on findings instead of hunting for them.
Related solutions
See what stockout problems Ward catches.
Root causes, not just alerts. See it on your data.
Read-only to start · your LLM keys · SOC 2 Type II underway · or book a call directly
Find out what your data has been hiding.
Tell us about your operation. We’ll show you the problems Ward catches, and the ones your current tools miss.