The Analysis of sampling errors