A test statistic is a statistic computed from sample data whose observed value is used in a statistical
test. If the data are , ...,
, it can be written
.
The null distribution of determines its critical values.
Together with the observed value of
, it also determines the P-value.
Values beyond a critical value provide evidence
against the null hypothesis.