Describir: Statistical quality control: a loss minimization approach