Inventory Intelligence
Reducing stockouts and excess inventory.

Turning Retail Inventory Data Into Better Business Decisions
An independent analytics case study exploring how inventory data, SQL, Python, and business intelligence can balance product availability with inventory investment.
Completed synthetic-data analysis · Executed Python and local SQLite. No actual Home Depot records, live PostgreSQL connection, or native Power BI report.
Research transparency. This is independent research, not an official Home Depot engagement. The completed dataset is synthetic; no company operating results are presented.
How can a retailer keep shelves stocked
without keeping too much on them?
Balance customer product availability with working capital and valuable store space.
A focused analytical scope
VALIDATED SYNTHETIC DATASETStore-level comparison
SKU-level inventory patterns
Daily stock and sales records
5 stores × 18 products × 60 days
From business problem to better decisions
A five-stage analytical workflow, with reproducibility at every step.
Define
Frame the business problem
Collect
Source and validate data
Transform
Clean and structure records
Analyze
Measure and model inventory
Communicate
Turn evidence into decisions
Three sides of the inventory challenge
AVAILABILITY · CAPITAL · DECISIONSReduce stockouts
Identify availability gaps and prioritize the SKUs with the highest modeled unmet-demand exposure.
Investigate availabilityUnderstand excess stock
Measure days of supply, slow-moving products, and the inventory investment behind them.
Explore working capitalTest better policies
Compare baseline, reorder-point, and periodic-review policies on identical demand scenarios.
Compare completed resultsThe questions behind the analysis
Business relevance first. Evidence before conclusions.
01Where are stockouts concentrated?
Compare SKU, category, and store stockout rates.
- Required fields
- daily_inventory.date, store_id, product_id, observed_stockout_flag
- Approach & visualization
- SQL grouped rates; store-by-category heatmap
- Limitation
- A daily flag does not measure hours of unavailability.
- Management decision
- Prioritize availability reviews by store and SKU.
02Which stockouts carry the most revenue exposure?
Estimate the value of simulated unmet demand.
- Required fields
- daily_demand.simulated_unmet_demand_units, products.selling_price
- Approach & visualization
- SQL joined aggregation; ranked SKU bars
- Limitation
- Modeled exposure is not observed lost sales.
- Management decision
- Investigate high-value replenishment gaps.
03Where is capital tied up in excess inventory?
Compare on-hand units against demand-based targets.
- Required fields
- closing_inventory, sales_units, unit_cost, target_stock
- Approach & visualization
- SQL days of supply; excess-value ranking
- Limitation
- Targets require lead-time and service assumptions.
- Management decision
- Review overstock and rebalancing opportunities.
04How quickly does inventory turn?
Compare inventory investment and fulfilled demand.
- Required fields
- sales_units, unit_cost, closing_inventory, date
- Approach & visualization
- SQL period COGS / average inventory value; category bars
- Limitation
- A short window needs careful annualization.
- Management decision
- Review category-level working capital.
05Can historical demand predict future demand?
Assess unseen-period forecasting performance.
- Required fields
- date, observed_demand_units, product_id, store_id
- Approach & visualization
- Python chronological holdout; actual-versus-forecast chart
- Limitation
- Sales may be censored by stockouts.
- Management decision
- Choose forecasts based on held-out error.
06How do supplier delays influence stockouts?
Relate delivery variability to product availability.
- Required fields
- order_date, actual_delivery_date, observed_stockout_flag
- Approach & visualization
- SQL lead-time distribution; Python association analysis
- Limitation
- Correlation does not establish causation.
- Management decision
- Test supplier-specific buffer policies.
07Can safety stock improve availability?
Evaluate reorder-point policies without excessive buffers.
- Required fields
- demand history, expected_lead_time_days, lead_time_std_days
- Approach & visualization
- Python same-seed simulation; policy comparison
- Limitation
- Demand and lead-time distributions are assumptions.
- Management decision
- Pilot replenishment settings before deployment.
08What is the economic trade-off?
Balance carrying, ordering, and unmet-demand exposure.
- Required fields
- unit_cost, inventory, order counts, carrying-cost rate
- Approach & visualization
- Python cost sensitivity; cost-versus-fill-rate chart
- Limitation
- Unmet revenue is not the same as lost profit.
- Management decision
- Select a policy under explicit cost assumptions.
09Which products need replenishment first?
Rank exposure, availability, and inventory gaps.
- Required fields
- reorder_point, closing_inventory, demand, selling_price
- Approach & visualization
- SQL CTE and window ranking; priority table
- Limitation
- On-order quantities and delivery dates are essential.
- Management decision
- Create an actionable replenishment review list.
10Do new policies outperform the baseline?
Compare policies on identical held-out demand.
- Required fields
- held-out demand, lead times, baseline policy
- Approach & visualization
- Python common-seed evaluation; cost and fill-rate comparison
- Limitation
- Synthetic success does not establish real-world impact.
- Management decision
- Design a controlled real-retailer pilot.