# Cross-Validation Algorithm

(Redirected from Cross-Validation)

A cross-validation algorithm is a resampling-based predictor evaluation algorithm that ...

**AKA:**Rotation Estimation.**Context:**- input: threshold, [math]n[/math].
- pseudo-code:
- Segment the Learning Records into [math]n[/math] nearly equally sized sets (Folds) (
*F*)._{1}...F_{n} - Run [math]n[/math] Experiments, each using
*F*as a Test Set and the other n-1 Folds appended together to form the Train Set._{i} - Calculate Predictive Model Performance for some desired prediction performance metric (e.g. accuracy) achieved over the [math]n[/math] runs.

- Segment the Learning Records into [math]n[/math] nearly equally sized sets (Folds) (
- It can be implemented by a cross-validation system to solve a cross-validation task (which requires sampling without replacement to split evaluation data into similar sizes).
- It can range form being a k-Fold Cross-Validation Algorithm (such as 10-fold cross-validation algorithm) to being a Leave-K-Out Cross-Validation Algorithm (such as a leave-one-out cross-validation algorithm).
- It can range from being a Stratified Cross-Validation Algorithm to being an Unstratified Cross-Validation Algorithm.
- It can achieve different levels of Confidence in the Estimate based on the size of
*n*.

**Example(s):**- on Real-World Data (Kohavi, 1995))
- a .632+Bootstrap Validation Algorithm (Efron & Tibshirani, 1997)

**Counter-Example(s):****See:**Predicted Residual Sum of Squares, Model Validation, Accuracy, Partition of a Set, Statistical Sample, Variance Estimation, Hypothesis Testing, Type III Error, Type I and Type II Errors.

## References

### 2018

- (Wikipedia, 2018) ⇒ https://en.wikipedia.org/wiki/Cross-validation_(statistics) Retrieved:2018-2-20.
**Cross-validation**, sometimes called**rotation estimation**, is a model validation technique for assessing how the results of a statistical analysis will generalize to an independent data set. It is mainly used in settings where the goal is prediction, and one wants to estimate how accurately a predictive model will perform in practice. In a prediction problem, a model is usually given a dataset of*known data*on which training is run (*training dataset*), and a dataset of*unknown data*(or*first seen*data) against which the model is tested (called the validation dataset or*testing set*).^{[1]}The goal of cross validation is to define a dataset to "test" the model in the training phase (i.e., the*validation set*), in order to limit problems like overfitting , give an insight on how the model will generalize to an independent dataset (i.e., an unknown dataset, for instance from a real problem), etc. One round of cross-validation involves partitioning a sample of data into complementary subsets, performing the analysis on one subset (called the*training set*), and validating the analysis on the other subset (called the*validation set*or*testing set*). To reduce variability, in most methods multiple rounds of cross-validation are performed using different partitions, and the validation results are combined (e.g. averaged) over the rounds to estimate a final predictive model. One of the main reasons for using cross-validation instead of using the conventional validation (e.g. partitioning the data set into two sets of 70% for training and 30% for test) is that there is not enough data available to partition it into separate training and test sets without losing significant modelling or testing capability. In these cases, a fair way to properly estimate model prediction performance is to use cross-validation as a powerful general technique.In summary, cross-validation combines (averages) measures of fit (prediction error) to derive a more accurate estimate of model prediction performance.

^{[2]}

### 2011

- (Sammut & Webb, 2011) ⇒ Claude Sammut (editor), and Geoffrey I. Webb (editor). (2011). “Cross-Validation.” In: (Sammut & Webb, 2011) p.306
**Definition**: Cross-validation is a process for creating a distribution of pairs of training and test sets out of single data set. In cross validation the data are partitioned into [math]k[/math] subsets, [math]S_1,\cdots, S_k[/math] , each called a*fold*. The folds are usually of approximately the same size. The learning algorithm is then applied [math]k[/math] times, for [math]i=1[/math] to [math]k[/math], each time using the union of all subsets other than [math]S_i[/math] as the training set and using [math]S_i[/math] as the test set.

### 1998

- (Kohavi & Provost, 1998) ⇒ Ron Kohavi, and Foster Provost. (1998). “Glossary of Terms.” In: Machine Leanring 30(2-3).
- QUOTE: Cross-validation: A method for estimating the accuracy (or error) of an inducer by dividing the data into k mutually exclusive subsets (the “folds
*) of approximately equal size. The inducer is trained and tested k times. Each time it is trained on the data set minus a fold and tested on that fold. The accuracy estimate is the average accuracy for the k folds.*

- QUOTE: Cross-validation: A method for estimating the accuracy (or error) of an inducer by dividing the data into k mutually exclusive subsets (the “folds

### 1995

- (Kohavi, 1995) ⇒ Ron Kohavi. (1995). “A Study of Cross-Validation and Bootstrap for Accuracy Estimation and Model Selection.” In: Proceedings of the Fourteenth International Joint Conference on Artificial Intelligence (IJCAI 1995).
- QUOTE: We review accuracy estimation methods and compare the two most common methods:
**cross-validation**and bootstrap.

- QUOTE: We review accuracy estimation methods and compare the two most common methods:

### 1993

- (Geisser, 1993) ⇒ Seymour Geisser. (1993). “Predictive Inference.
*Chapman and Hall. ISBN 0412034719.***Cross-validation**: Divide the sample in half, use the second half to "validate" the first half and vice versa, yielding a second validation or comparison. The two may be combined into a single one.

### 1983

- (Efron & Gong, 1983) ⇒ Bradley Efron and Gail Gong. (1983). “A Leisurely Look at the Bootstrap, the Jackknife, and Cross-Validation.” In: The American Statistician, 37(1). http://www.jstor.org/stable/2685844
**Abstract:**This is an invited expository article for The American Statistician. It reviews the nonparametric estimation of statistical error, mainly the bias and standard error of an estimator, or the error rate of a prediction rule. The presentation is written at a relaxed mathematical level, omitting most proofs, regularity conditions, and technical details.