What is a standardized test statistic?

By Jude Wallis · Published

A standardized test statistic counts how many standard errors your sample result sits from the value the null hypothesis claims: statistic minus null value, divided by the standard error of the statistic. Every z and t statistic in AP Statistics is that one formula with a different denominator.

AP Statistics: Unit 3 (topics 3.5 Setting Up a Test for a Population Proportion, 3.7 Carrying Out a Test for a Population Proportion). The same standardized form runs through both inference units of the Fall 2026 course: proportions in topics 3.5 to 3.7 and 3.12 to 3.13, means in topics 4.4 to 4.5 and 4.9 to 4.10. Chi-square for homogeneity and independence, topics 3.14 and 3.15, uses the squared-and-summed version instead.

The one formula behind every test statistic

standardized test statistic=statisticnull valuestandard error of the statistic\text{standardized test statistic} = \frac{\text{statistic} - \text{null value}}{\text{standard error of the statistic}}

Say the three pieces out loud, because each one has a job.

  • The statistic is what your sample gave you: p^\hat{p} ("p-hat"), xˉ\bar{x} ("x-bar"), or a difference like xˉ1xˉ2\bar{x}_1 - \bar{x}_2.
  • The null value is the number the null hypothesis claims for the matching parameter: p0p_0, μ0\mu_0, or 0 when the null says two groups are the same.
  • The standard error is the typical distance between the statistic and the parameter, from one random sample to the next.

What comes out is a count, in units of standard errors. A standardized test statistic of 2.3 says your sample landed 2.3 standard errors away from where the null hypothesis said it should land. That number, not the raw difference, is what becomes a p-value, because it is the version of the difference whose distribution is known.

Why standardizing is the whole idea

You met this move in Unit 1 as the z-score:

z=xμσz = \frac{x - \mu}{\sigma}

Subtract the center, divide by the spread, and you get a location that no longer depends on units. Metres, dollars and test points all come out as "how many standard deviations from the middle."

A test statistic performs the identical operation one level up, on the sampling distribution instead of on the data. The individual value xx becomes the statistic. The population mean μ\mu becomes the value the null hypothesis claims for the parameter. And σ\sigma, the spread of individual values, becomes the standard error, the spread of the statistic across repeated samples.

That swap is the reason every procedure shares a shape. Raw differences are not comparable: a 0.03 gap in a proportion and a 12-point gap in a mean cannot be ranked against each other. Measured in standard errors, they can, and a single normal or tt curve turns either one into a probability. If you keep the difference between a standard deviation and a standard error straight, the rest of inference is bookkeeping.

What changes: the denominator

The numerator is always the same idea, so the work of learning inference is learning the denominator. Here is every one you need in this course.

ProcedureStatisticNull valueStandard error in the denominator
One proportion, zzp^\hat{p}p0p_0p0(1p0)n\sqrt{\frac{p_0(1 - p_0)}{n}}
Two proportions, zzp^1p^2\hat{p}_1 - \hat{p}_20p^c(1p^c)(1n1+1n2)\sqrt{\hat{p}_c(1 - \hat{p}_c)\left(\frac{1}{n_1} + \frac{1}{n_2}\right)}
One mean, ttxˉ\bar{x}μ0\mu_0sn\frac{s}{\sqrt{n}}
Paired mean, ttxˉd\bar{x}_d0sdn\frac{s_d}{\sqrt{n}}
Two means, ttxˉ1xˉ2\bar{x}_1 - \bar{x}_20s12n1+s22n2\sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}

One pattern explains the letter on the front. A proportion has a single parameter pp that controls both its center and its spread, so once the null names p0p_0 the standard error is a known number and the statistic is a zz. A mean has two independent parameters, μ\mu and σ\sigma, and the null names only μ\mu. You have to estimate σ\sigma with the sample standard deviation ss, and that estimate carries its own error, so the statistic is a tt. The full comparison is in t-test vs z-test.

What changes: the curve you compare it against

A standardized value is meaningless until you say which curve reads it. A zz goes to the standard normal curve. A tt goes to a tt curve with a stated number of degrees of freedom. The same number gives different answers.

Curvedfdftwo-sided p-value for a statistic of 2.00
standard normal, zznone0.0455
tt90.0766
tt240.0569
tt490.0511
tt990.0482
tt9990.0458

A statistic of exactly 2.00 is significant at 0.05 read as a zz and not significant read as a tt with 9 degrees of freedom. The tt curves have heavier tails, which is the price of estimating σ\sigma from the data, and the tails thin out as dfdf grows until tt is indistinguishable from zz. That is why the df=1000df = 1000 row of the t-table sits within 0.005 of the zz^* row printed beneath it, 1.962 against 1.960 at 95% confidence.

So a complete answer names three things, not one: the statistic, the curve, and the degrees of freedom. "t=2.00t = 2.00" is half an answer. "t=2.00t = 2.00 with df=9df = 9" is the whole one.

Where chi-square fits, honestly

The chi-square statistic does not fit the template literally, and pretending otherwise causes real confusion. It is

χ2=(ObservedExpected)2Expected\chi^2 = \sum \frac{(\text{Observed} - \text{Expected})^2}{\text{Expected}}

Each term is the same idea, squared. OEO - E is an observed count minus the count the null hypothesis predicts, which is a numerator of exactly the standard shape, and dividing by EE scales it, because for a count of that size E\sqrt{E} is roughly its standard deviation. So χ2\chi^2 is a sum of squared standardized gaps rather than one signed gap.

Two consequences follow from the squaring, and both are tested. Squaring throws away direction, so a chi-square test has no one-sided or two-sided version and its p-value is always the right tail. And because you sum over cells, the degrees of freedom count cells rather than sample size: (rows1)(columns1)(\text{rows} - 1)(\text{columns} - 1) for a two-way table.

The connection is exact in the smallest case. Run a two-proportion z-test on 45 successes out of 150 against 30 out of 150 and you get z=2.00z = 2.00. Run a chi-square test for homogeneity on the same 2 by 2 table and you get χ2=4.000\chi^2 = 4.000, which is 2.0022.00^2, with df=1df = 1 and the identical p-value of 0.0455. On a 2 by 2 table the two tests are the same test written twice. Details in chi-square tests explained.

The null value can appear in the denominator too

This is the detail that separates a test from an interval, and it is the most common place to lose an answer.

For a one-proportion test, the standard error is built from p0p_0, not from p^\hat{p}. Everything in a test is computed as though the null hypothesis were true, and the null names the proportion, so it also names the spread: p0(1p0)/n\sqrt{p_0(1-p_0)/n}. For a one-proportion interval there is no null hypothesis in the room, so the only estimate available is p^\hat{p}, and the standard error is p^(1p^)/n\sqrt{\hat{p}(1-\hat{p})/n}.

For a two-proportion test, the null says p1=p2p_1 = p_2, so under the null there is one common proportion and both samples estimate it. Pool them:

p^c=X1+X2n1+n2\hat{p}_c = \frac{X_1 + X_2}{n_1 + n_2}

and use p^c\hat{p}_c in the standard error. For a two-proportion interval there is nothing to pool toward, so each sample supplies its own. On the 45-out-of-150 against 30-out-of-150 data, the pooled standard error is 0.050000 and the unpooled one is 0.049666: close, but they are answering different questions and the exam expects the right one in each place. See one-proportion vs two-proportion z-test.

Means have no equivalent split, because the null hypothesis about μ\mu says nothing about σ\sigma. A tt statistic and a tt interval use the same s/ns/\sqrt{n}.

Mistakes that cost points

  • Dividing by the standard deviation instead of the standard error. ss describes the spread of the data; s/ns/\sqrt{n} describes the spread of xˉ\bar{x}. Using ss makes the statistic n\sqrt{n} times too small and can bury a real effect.
  • Using p^\hat{p} in the standard error of a one-proportion test. Use p0p_0. Save p^\hat{p} for the interval.
  • Forgetting to pool for a two-proportion test. The null claims the proportions are equal, so the test uses one combined estimate.
  • Reporting a statistic without its degrees of freedom. A tt with no dfdf cannot be turned into a p-value by the reader or by the scorer.
  • Reading a tt statistic off the z-table. It gives a p-value that is too small, which can turn a non-significant result into a significant one.
  • Confusing the statistic with the p-value. z=2.00z = 2.00 is a distance in standard errors. 0.04550.0455 is a probability. They are never interchangeable.

One statistic of 2.00, two different curves

A random sample of 100 people gives 60 successes. Test H0:p=0.50H_0: p = 0.50 against Ha:p0.50H_a: p \neq 0.50 at α=0.05\alpha = 0.05. Then suppose a separate study produced a tt statistic of exactly 2.00 with df=9df = 9. Compare the two p-values.

  1. Compute the statistic: p^=60/100=0.60\hat{p} = 60/100 = 0.60.

  2. Build the standard error from the null value, because a test assumes H0H_0 is true: 0.50(0.50)100=0.0025=0.05\sqrt{\frac{0.50(0.50)}{100}} = \sqrt{0.0025} = 0.05.

  3. Standardize: z=0.600.500.05=2.00z = \frac{0.60 - 0.50}{0.05} = 2.00. The sample proportion sits 2 standard errors above the claimed value.

  4. Compare against the standard normal curve: 2P(Z2.00)=0.04552P(Z \geq 2.00) = 0.0455. Since 0.0455<0.050.0455 < 0.05, reject H0H_0.

  5. Now take the same value, 2.00, to a tt curve with df=9df = 9. The two-sided p-value is 0.0766.

  6. Since 0.0766>0.050.0766 > 0.05, that study would fail to reject at the same significance level.

z=2.00z = 2.00 with a two-sided p-value of 0.0455, so you reject H0H_0. The identical statistic read against a tt curve with df=9df = 9 gives 0.0766, so it would not be significant. The numerator and denominator are only part of the answer: the curve you compare against, and its degrees of freedom, decide the rest.

Two proportions: pooled for the test, unpooled for the interval

Group 1 has 45 successes in 150 trials, group 2 has 30 successes in 150. Test H0:p1=p2H_0: p_1 = p_2 against Ha:p1p2H_a: p_1 \neq p_2 at α=0.05\alpha = 0.05, then build a 95% confidence interval for p1p2p_1 - p_2. Finally run a chi-square test for homogeneity on the same 2 by 2 table and compare.

  1. Statistics: p^1=45/150=0.30\hat{p}_1 = 45/150 = 0.30 and p^2=30/150=0.20\hat{p}_2 = 30/150 = 0.20, so the observed difference is 0.10. The null value is 0.

  2. The null claims the two proportions are equal, so pool: p^c=45+30150+150=75300=0.25\hat{p}_c = \frac{45 + 30}{150 + 150} = \frac{75}{300} = 0.25.

  3. Pooled standard error: 0.25(0.75)(1150+1150)=0.1875×0.013333=0.0025=0.050000\sqrt{0.25(0.75)\left(\frac{1}{150} + \frac{1}{150}\right)} = \sqrt{0.1875 \times 0.013333} = \sqrt{0.0025} = 0.050000.

  4. Standardize: z=0.1000.05=2.00z = \frac{0.10 - 0}{0.05} = 2.00, two-sided p-value =0.0455<0.05= 0.0455 < 0.05, so reject H0H_0.

  5. For the interval there is no null value, so do not pool: 0.30(0.70)150+0.20(0.80)150=0.001400+0.001067=0.002467=0.049666\sqrt{\frac{0.30(0.70)}{150} + \frac{0.20(0.80)}{150}} = \sqrt{0.001400 + 0.001067} = \sqrt{0.002467} = 0.049666.

  6. Margin of error: 1.96×0.049666=0.0973441.96 \times 0.049666 = 0.097344, so the interval is 0.10±0.0973440.10 \pm 0.097344, or 0.0027 to 0.1973.

  7. Now the chi-square version. The table has row totals 150 and 150, column totals 75 and 225, grand total 300, so every expected count is 150×75300=37.5\frac{150 \times 75}{300} = 37.5 or 150×225300=112.5\frac{150 \times 225}{300} = 112.5.

  8. Add the four terms: (4537.5)237.5+(105112.5)2112.5+(3037.5)237.5+(120112.5)2112.5=1.5+0.5+1.5+0.5=4.000\frac{(45-37.5)^2}{37.5} + \frac{(105-112.5)^2}{112.5} + \frac{(30-37.5)^2}{37.5} + \frac{(120-112.5)^2}{112.5} = 1.5 + 0.5 + 1.5 + 0.5 = 4.000.

  9. With df=(21)(21)=1df = (2-1)(2-1) = 1, the right-tail p-value for χ2=4.000\chi^2 = 4.000 is 0.0455, and 4.000=2.0024.000 = 2.00^2.

z=2.00z = 2.00 with p=0.0455p = 0.0455, so reject H0H_0. The 95% interval for p1p2p_1 - p_2 is 0.0027 to 0.1973, built from a slightly different standard error (0.049666 rather than 0.050000) because an interval has no null value to pool toward. The chi-square test on the same table gives χ2=4.000\chi^2 = 4.000 with df=1df = 1 and the same p-value, 0.0455, since χ2=z2\chi^2 = z^2 on a 2 by 2 table.

Frequently asked questions

What is the difference between a test statistic and a standardized test statistic?

In practice they are used interchangeably for zz and tt. Strictly, a test statistic is any number computed from the data to measure evidence against the null hypothesis, and standardized names the particular form used here: statistic minus null value, over standard error. The chi-square statistic is a test statistic that does not take that literal form.

Why does the denominator use the standard error rather than the standard deviation?

Because the numerator is about a statistic, not about one observation. xˉ\bar{x} varies less from sample to sample than an individual value does, and s/ns/\sqrt{n} is that smaller spread. Dividing by ss instead would compare the gap to the wrong ruler and make every test statistic about n\sqrt{n} times too small.

Is the chi-square statistic a standardized test statistic?

Not in the literal form. It squares each observed-minus-expected gap, scales it by the expected count, and adds the terms up, so it measures a squared distance rather than a signed one. That is why its p-value is always the right tail. On a 2 by 2 table it equals the square of the two-proportion zz and gives the same p-value.

Why does a one-proportion test use p0p_0 in the standard error but an interval uses p^\hat{p}?

A test computes everything as though the null hypothesis were true, and for a proportion the null value fixes the spread as well as the center, so p0p_0 belongs in the standard error. An interval starts from no claim at all, so the only estimate of the spread available is the one the data supply, p^\hat{p}.

Does every AP inference procedure use this formula?

Every zz and tt procedure does, for one proportion, two proportions, one mean, paired means and two means. Chi-square for homogeneity and independence, topics 3.14 and 3.15 in the Fall 2026 course, uses the squared-and-summed form instead.