Jesús R. L. GonzálezSource code on GitHub

Where does the money for poor quality go in an auto-parts plant?

Shift-level production records, cleaned and validated, turned into a cost Pareto, Laney p′ charts and a binomial model that values each improvement lever in pesos.

MXN 1.23 Mestimated yearly saving from three levers, 14.5 % of COPQ (not observed)Synthetic plant data, median of 2,000 simulations

What the result means

Largest lever
Preventive maintenance on the welding line every 170–180 h: MXN 1.03 M
Misleading volume
Lack of fusion is 5 % of scrapped parts but 16 % of the cost
Model vs baselines
Mean absolute error 0.65 pp vs 1.04 and 1.18 for two baselines
Delivery
SQL on PostgreSQL, Streamlit dashboard and Docker

The main chart

Pareto by parts against Pareto by cost
The defect that tops the parts Pareto is not the one that tops the cost Pareto.

How the decision was made

  1. Cleaning with every correction logged.
  2. Cost of poor quality and a double Pareto.
  3. Laney p′ charts to separate real signals from overdispersion.
  4. Binomial GLM validated out of sample and a savings simulation with uncertainty.

What it does not claim

  • Synthetic data with seeded effects, built to demonstrate the method.
  • Observational model: a before/after pilot is the definitive test.
  • Lever costs are assumptions.

Analysis notebook and full evidence in the repository.

Try it

Filter by line and shift, and move the maintenance interval to see the saving.

Open the live demo