Stochastics and Quality Control