Text this: Mathematical methods of statistical quality control