Calculate the test statistic for this sample.