Calculation of standard error and probability