Statistic one sample code