A test statistic is a quantity calculated from a sample whose value is the basis for deciding whether or not to reject the null hypothesis.