Cross-validation
Cross-validation is a technique for assessing how well a predictive model generalizes to unseen data, rather than merely fitting the training set perfectly. By partitioning data into complementary subsets—training on some while testing on others—practitioners can estimate real-world Performance without needing a separate, held-out dataset.
The method guards against Overfitting, where a model memorizes noise rather than learning underlying patterns. Common approaches include k-fold cross-validation (dividing data into k chunks, training k times with different folds held out) and leave-one-out cross-validation (the extreme case where each sample is tested individually).
Cross-validation is foundational in Machine learning, Computational biology, and any Hypothesis-testing domain where Prediction matters. It works hand-in-hand with tools like confusion matrices to evaluate acceptable error rates and with analysis techniques to understand model behavior.
The approach embodies a crucial scientific principle: that trustworthiness requires external validation, not just internal consistency. By rotating which data subset serves as the test bed, cross-validation extracts maximum insight from finite observations.
Related
Machine learning, Overfitting, Statistical model, Parameter tuning, Bias-variance tradeoff