Test statistic
How far do the data depart from what the null hypothesis leads one to expect? The test statistic condenses this into one number, such as t, z, F or χ². Its distribution under H₀ gives the p value.
Example: Difference of means 4.0, standard error 1.6: t = 4.0 / 1.6 = 2.5. With 38 degrees of freedom, p = 0.017.
Caution: The same data give a different test statistic for each test. Only the matching distribution yields the matching p value.