# Inventory Intelligence: Reducing Stockouts and Excess Inventory

## Melvin Cuffee — completed independent synthetic analysis

A Home Depot–inspired portfolio, not a company engagement. All inputs are synthetic. Python and local SQLite were executed; PostgreSQL and Power BI instructions are optional rebuilding guides, not deployed results.

## Executive conclusion
Lead-time-aware reorder points improve availability in this deliberately simple synthetic environment but require more inventory and orders. This experiment does **not** demonstrate simultaneous reductions in stockouts and excess inventory or net retailer savings.

## Data and assumptions
Seed 20261114; 5 stores, 18 products, 60 days, January 1–March 1, 2026; 5,400 inventory rows. Eight populated tables are included. Costs, prices, supplier assignments, physical volumes and lead times are generator assumptions. Selling price uses 1.55 × assumed cost; values are illustrative, not retailer pricing. Poisson demand uses store and weekend multipliers with a garden-demand step. Lead time is rounded normal, mean 3–5 days, standard deviation 1, minimum 1 day. No original retailer CSV was supplied or inferred.

## Validation and execution
Ten checks pass; zero rejected records. Keys, references, quantities, daily inventory continuity, reconciliation and demand balance are checked before local SQL execution. The SQLite tables are populated using pandas.to_sql; Python enforces data integrity rather than declared SQLite constraints. PostgreSQL constraints are provided only in the optional blueprint.

## Baseline results (60 days)
- demand units: 27,665
- sales units: 17,900
- unmet units: 9,765
- fill rate pct: 64.7
- stockout rate pct: 36.37
- avg inventory value: 49,267.52
- carrying cost: 2,024.69
- ordering cost: 3,136.0
- unmet revenue exposure: 698,877.95

Stockout rate means store-product-days with positive simulated unmet units / all observed store-product-days, not hourly availability. Unmet exposure means simulated unmet units × assumed selling price, not actual lost sales or profit. Garden has the highest category stockout rate (38.56%). Tools has the largest modeled revenue exposure ($289,912). SKU-006, Tape measure at Simulated Store 3, tops the exposure list ($28,737). No retailer performance is inferred.

## Forecast evaluation
First 40 days train; last 20 days test. Each method has 1,800 fixed-origin predictions. Forecasts never update from test observations. Targets are generated uncensored demand, not fulfilled sales. Exponential smoothing fixes alpha at 0.3 with no tuning.

| Method | MAE | RMSE | WAPE | Bias |
|---|---:|---:|---:|---:|
| Seasonal naive | 2.396 | 3.152 | 46.39% | -0.067 |
| Trailing 14-day mean | 1.914 | 2.535 | 37.06% | -0.04 |
| Exponential smoothing | 1.97 | 2.579 | 38.15% | 0.102 |

Trailing 14-day mean ranks best here. WAPE sums absolute errors / actual demand; bias is predicted minus actual. A holdout used for this ranking still requires further independent or rolling-origin validation. Short generated history cannot establish annual seasonality or promotional effects.

## Policies and fair comparisons
Use training demand mean/variance only. Each policy resets at day 40 with seven mean-demand days of stock and no open orders, so this experiment differs from the continuing 60-day baseline. Demand and order-day lead-time draws are shared. All policies see 9,297 held-out demand units. Inventory position includes on hand plus outstanding orders; receipts precede sales, unmet units are lost with no backorders.

- Baseline reviews every 7 days, reorder point 2 demand-days, target 9 demand-days.
- Reorder point reviews daily; threshold = mean demand × lead time + safety stock; target adds four mean-demand days.
- Periodic review every three days orders up to lead time plus review interval demand and a variability buffer.
- Safety stock = ceil(1.65 × sqrt(mean lead time × demand variance + mean demand squared × lead-time variance)).

| Policy | Fill rate | Stockout rate | Avg inventory | Carrying + ordering | Unmet revenue exposure |
|---|---:|---:|---:|---:|---:|
| Baseline | 77.52% | 25.06% | $61,960.25 | $1,680.77 | $153,350.80 |
| Reorder point | 99.45% | 0.83% | $100,425.65 | $4,767.69 | $4,436.10 |
| Periodic review | 99.77% | 0.44% | $98,407.40 | $6,388.05 | $1,841.40 |

Carrying cost = daily closing inventory at cost × 25% / 365. Ordering cost = $8 per order including open horizon-end orders. Unmet revenue exposure is separate, never added to operating cost as if it were profit loss. No terminal stock, salvage, backorder, capacity or receipt-age costs are used.

## Robustness
Five additional seeds (101, 202, 303, 404, 505) use policies fitted to the original training data. Mean fill rates are 76.94% baseline and 99.57% for both proposed policies. Mean carrying + ordering costs are $1,631.22 baseline, $4,716.21 reorder point and $6,369.02 periodic review. This tests the generator assumptions, not actual retailer behavior.

## Recommendations
1. Prioritize high-exposure store-SKU combinations, not category averages alone.
2. Pilot lead-time-aware reorder points while tracking service, capital and order volume; no blanket cost-saving claim is justified.
3. Use trailing-mean forecasts as benchmarks and evaluate longer real history, promotions and censored demand.
4. Quantify whether periodic review’s marginal service gain pays for additional orders. The robustness check does not show a service advantage over reorder points.
5. Collect real receipt ages, lead-time history, contribution margins, storage limits and service targets before recommending excess-stock or space reductions.

## Working capital and limitations
Turnover is 60-day fulfilled-sales COGS / average daily closing inventory at cost; it is not annualized. Final-day days of supply uses closing stock / average fulfilled daily sales; zero sales yields null. Excess units are max(0, final stock − baseline target). This generator demonstrates availability pressure, not genuine overstock reduction. Assumed volume is included but no binding capacity or stock-age model is evaluated. Supplier variability is an input, not evidence of causality.

The 20-day horizon benefits from common initial stock, leaves open orders and excludes terminal costs. Baseline behavior is intentionally simplistic, not measured retailer practice. No Home Depot operating performance, real savings or universal policy superiority is established.

## Reproduction
Run `python -m pip install -r requirements.txt`, `python run_analysis.py --output reproduced`, and `python -m unittest test_analysis.py`. The archive includes all eight CSVs, local database, executed SQL, validation/results JSON, forecast predictions and scores, daily policy records, orders, settings, robustness CSVs and hashes. The public website displays committed outputs, not live Python or database execution. Native Power BI and hosted PostgreSQL were not supplied.
