Non-exhaustive cross-validation

Most of us are using simple Cross-validation to verify if our strategies are not overfitted and if they have a chance to survive. 



There are several other technics of Cross-validation:

k-fold cross-validation[edit]

In k-fold cross-validation, the original sample is randomly partitioned into k equal sized subsamples. Of the k subsamples, a single subsample is retained as the validation data for testing the model, and the remaining k − 1 subsamples are used as training data. The cross-validation process is then repeated k times, with each of the k subsamples used exactly once as the validation data. The k results can then be averaged to produce a single estimation. The advantage of this method over repeated random sub-sampling (see below) is that all observations are used for both training and validation, and each observation is used for validation exactly once. 10-fold cross-validation is commonly used,[9] but in general k remains an unfixed parameter.

For example, setting k = 2 results in 2-fold cross-validation. In 2-fold cross-validation, we randomly shuffle the dataset into two sets d0 and d1, so that both sets are equal size (this is usually implemented by shuffling the data array and then splitting it in two). We then train on d0 and validate on d1, followed by training on d1 and validating on d0.

When k = n (the number of observations), the k-fold cross-validation is exactly the leave-one-out cross-validation.

In stratified k-fold cross-validation, the folds are selected so that the mean response value is approximately equal in all the folds. In the case of binary classification, this means that each fold contains roughly the same proportions of the two types of class labels.

Holdout method[edit]

In the holdout method, we randomly assign data points to two sets d0 and d1, usually called the training set and the test set, respectively. The size of each of the sets is arbitrary although typically the test set is smaller than the training set. We then train (build a model) on d0 and test (evaluate its performance) on d1.

In typical cross-validation, results of multiple runs of model-testing are averaged together; in contrast, the holdout method, in isolation, involves a single run. It should be used with caution because without such averaging of multiple runs, one may achieve highly misleading results. One's indicator of predictive accuracy (F*), as noted below, will tend to be unstable since it will not be smoothed out by multiple iterations. Similarly, indicators of the specific role played by various predictor variables (e.g., values of regression coefficients) will tend to be unstable.

While the holdout method can be framed as "the simplest kind of cross-validation",[10] many sources instead classify holdout as a type of simple validation, rather than a simple or degenerate form of cross-validation.[2][11]

Repeated random sub-sampling validation[edit]

This method, also known as Monte Carlo cross-validation,[12] randomly splits the dataset into training and validation data. For each such split, the model is fit to the training data, and predictive accuracy is assessed using the validation data. The results are then averaged over the splits. The advantage of this method (over k-fold cross validation) is that the proportion of the training/validation split is not dependent on the number of iterations (folds). The disadvantage of this method is that some observations may never be selected in the validation subsample, whereas others may be selected more than once. In other words, validation subsets may overlap. This method also exhibits Monte Carlo variation, meaning that the results will vary if the analysis is repeated with different random splits.

As the number of random splits approaches infinity, the result of repeated random sub-sampling validation tends towards that of leave-p-out cross-validation.

In a stratified variant of this approach, the random samples are generated in such a way that the mean response value (i.e. the dependent variable in the regression) is equal in the training and testing sets. This is particularly useful if the responses are dichotomous with an unbalanced representation of the two response values in the data.

Attachments
No attachments
  • Votes +7
  • Project StrategyQuant X
  • Type Feature
  • Status Archived
  • Priority Normal
  • Assignee None

History

IH
#1

clonex / Ivan Hudec

28.01.2019 13:27

Task created

t
#2

tnickel

28.01.2019 23:49
Voted for this task.
t
#3

tnickel

28.01.2019 23:49

very interesting,

thanks

t
#4

tnickel

28.01.2019 23:49

very interesting,

thanks

KL
#5

kainc301

29.01.2019 03:48
Voted for this task.
IH
#6

clonex / Ivan Hudec

29.01.2019 13:47
Voted for this task.
Rr
#7

Partizanas

29.01.2019 17:14
Voted for this task.
IH
#8

clonex / Ivan Hudec

29.03.2019 10:24
keinc301 are u developer o you job is to organizing task for sq team?
DR
#9

mentaledge

02.04.2019 08:41
Voted for this task.
MF
#10

Mark Fric

02.05.2019 15:39

Milestone changed from Build 121 to Build 122

MF
#11

Mark Fric

14.06.2019 10:35

Milestone changed from Build 122 to None

b
#12

bentra

13.08.2019 20:56
Voted for this task.
MF
#13

Mark Fric

26.11.2020 10:50

Status changed from New to Archived

HH
#14

Hans

18.07.2022 22:10
Voted for this task.

Votes: +7

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please