VN2 Inventory Planning Challenge
Share:
Finished
competition-bg

VN2 Inventory Planning Challenge

Test your inventory planning skills: cut holding costs, prevent shortages, and master real-world inventory planning.

DataSource.AI
E-commerce/Retail
Total Prize 18,000
Scroll To Top

Ph D · 30 September 2025

552
Copied!
2

UPDATED// Starter Notebook // Hierarchical Empirical Bayes for Robust Inventory Ordering

Stabilize low‑data SKUs via partial pooling across Division/Department/ProductGroup with NB‑GLM + Empirical Bayes shrinkage, per‑segment variance, and CV‑tuned strength. Generates a submission using a newsvendor base‑stock policy.

Description

What this does: Produces robust weekly orders by pooling information across your product hierarchy while preserving SKU‑specific signals. Especially effective for sparse/intermittent SKUs.

 

Method: Negative Binomial GLM with Fourier seasonality → Empirical Bayes SKU adjustments → CV‑tuned shrinkage → per‑segment overdispersion (alpha) → posterior aggregation over protection period → base‑stock ordering.

 

Robustness: Handles collinearity and convergence via fallbacks (simplified formulas, L2‑regularized NB/Poisson). Auto‑resolves common file paths and validates required inputs.

 

Inputs required:

  • data/Week 0 - Master.csv (must contain Division, Department, ProductGroup, plus Store, Product)
  • Long sales (Store, Product, Week, SalesQty) — e.g., exported from eda_order1.ipynb
  • Week 0 state (End Inventory, In Transit W+1, In Transit W+2)
  • Submission index template

Outputs:

  • submissions/orders_hierarchical_eb.csv (competition‑ready)
  • Diagnostics: artifacts/hierarchical/figs/ (shrinkage weights, naive vs EB mean/std)
  • Demand stats: artifacts/hierarchical/demand_stats_hierarchical.csv

Notes:

  • Runtime ~15–45s for 599 SKUs (includes CV).
  • If shrinkage appears weak (weights ~0), increase SHRINK_SCALE or review hierarchy quality.
  • Everything runs top‑to‑bottom inside notebooks/hierarchical_bayes.ipynb.
      
      
    

Comments

Join our private community in Discord

Keep up to date by participating in our global community of data scientists and AI enthusiasts. We discuss the latest developments in data science competitions, new techniques for solving complex challenges, AI and machine learning models, and much more!