Program for statistical analysis of sampled data