Text this: The application of mathematical statistics to chemical analysis