Data sampling refers to statistical methods for selecting observations from the domain with the objective of estimating a population parameter. Whereas data resampling refers to methods for economically using a collected dataset to improve the estimate of the population parameter and help to quantify of the estimate.Both data sampling and data resampling are methods that are required in a predictive modeling problem.
Observations made in a domain represent samples of some broader idealized and unknown population of all possible observation that could be made in the domain.
Sampling consists of selecting some part of the population to observe so that one may estimate something about the whole population.
Some aspects to consider prior to collecting a data sample include:
Statistical sampling is a large field of study, but in applied machine learning , there may be three types of sampling that you are likely to use: simple random sampling, systematic sampling, and stratified sampling.
Two main types of errors include selection bias and sampling error.
Selection Bias: Caused when the method of drawing observations skews the sample in some way.
Sampling Error: Caused due to the random nature of drawing observations skewing the sample in some way.
Statistical resampling methods are procedures that describe how to economically use available data to estimate a population parameter.Resampling methods are very easy to use.requiring little mathematical knowledege.They are methods that are easy to understand and implement compared to specialized statistical methods that may require deep technical skill in order to select and interpret.
Two commonly used resampling methods that you may encounter are k-fold cross-validation the bootstrap.
The k-fold cross-validation method specifically lends itself to use in the evaluation of predictive models that are repeatedly trained on one subset of the data and evaluated on a second held-out subset of the data.
Generally, resampling techniques for estimating model performance operate similarly: a subset of samples are used to fit a model and the remaining samples are used to estimate the efficacy of the model. This process is repeated multiple times and the results are aggregated and summarized. The differences in techniques usually center around the method in which subsamples are chosen.
The bootstrap method can be used for the same purpose, but is a more general and simpler method intended for estimating a population parameter.