Standardized test statistic

By Jude Wallis · Updated

The standardized test statistic is the statistic minus the parameter value the null hypothesis claims, divided by the standard error of the statistic.

One line generates every zz and tt statistic in the course: take the statistic your sample produced, subtract the value H0H_0 claims for the matching parameter, and divide by the standard error of that statistic. That is the AP formula sheet line, statistic minus parameter over standard error, with the parameter pinned to its null value. What comes out is a count of standard errors, never a probability.

Test H0:p=0.50H_0: p = 0.50 with 60 successes in 100 trials. Then p^\hat{p} (p-hat) is 0.60, the standard error under the null is 0.50(0.50)/100=0.05\sqrt{0.50(0.50)/100} = 0.05, and z=(0.600.50)/0.05=2.00z = (0.60 - 0.50)/0.05 = 2.00. Said aloud: the sample landed two standard errors above where H0H_0 said it would. For a mean the letter changes, because the spread has to be estimated too: xˉ=52\bar{x} = 52 (x-bar) against H0:μ=50H_0: \mu = 50 with s=8s = 8 and n=25n = 25 gives 8/25=1.68/\sqrt{25} = 1.6 and t=2/1.6=1.25t = 2/1.6 = 1.25 on 24 degrees of freedom.

The wrong version is "divide by the standard deviation." That turns t=1.25t = 1.25 into 2/8=0.252/8 = 0.25, and its two-sided p-value from 0.223 into 0.805. ss describes how spread out the data are; s/ns/\sqrt{n} describes how spread out xˉ\bar{x} is from sample to sample, and only the second is the right ruler for a statistic. The slip shrinks the statistic by a factor of n\sqrt{n}, so it buries effects rather than inventing them.

The denominator is also where a test and an interval part company. A one-proportion test builds its standard error from the null value, 0.50(0.50)/100=0.05\sqrt{0.50(0.50)/100} = 0.05 above, because everything in a test is computed as though H0H_0 were true. The matching interval has no null hypothesis in the room and uses p^\hat{p}: 0.60(0.40)/100=0.049\sqrt{0.60(0.40)/100} = 0.049. Means have no such split, since a null about μ\mu (mu) says nothing about σ\sigma (sigma).

A standardized value is unreadable until you name the curve: 2.00 has a two-sided p-value of 0.0455 on the standard normal and 0.0569 on a tt curve with 24 degrees of freedom. Report the degrees of freedom, or the reader cannot finish.

Where this comes up

More hypothesis testing terms, or browse the full statistics glossary.