Calculation of Sampling Error