Thresholds in Mathematics and Statistics