Sample Splitting and Threshold Estimation