Skip to content
Glacius
StatisticsConcept reference

Test statistics

A supplied test statistic turns observations and a null reference into a numerical discrepancy.

On this page 8 sections
  1. Overview
  2. Understand the idea
  3. Let d mean estimate minus null
  4. A signed rule preserves direction
  5. The statistic’s reference distribution depends on the null model and assumptions
  6. Key takeaway
  7. Sources & further reading
  8. Concept connections

01Understand the idea#

A test statistic measures how far the sample result departs from a null model in a standardized way. Its definition determines what counts as more extreme evidence. Calculating the statistic is distinct from finding the tail probability associated with it.

A test statistic is a rule that summarizes discrepancy from a null claim. Use the supplied formula. A standardized discrepancy divides an estimate-minus-null difference by a positive standard error.

T=estimatenullSET=\frac{\text{estimate}-\text{null}}{\mathrm{SE}}

For estimate 17, null 11 and SE 3, subtract first: 17−11=6. Then divide: T=6/3=2. This is two standard-error units above the null.

With sample estimate 12, null value 10, and standard error 1, a signed statistic (1210)/1(12-10)/1 equals 2. If the estimate were 8, it would be 2-2. A two-sided test may regard both as equally extreme, while a right-sided test treats their directions differently.

Check your reasoning

Rule: T=(estimate-null)/SE. Estimate=5, null=11, SE=2. T?

Show answer and explanation
-3

Difference -6; T=-3.

02Let d mean estimate minus null#

Let d mean estimate minus null. Compare each difference using its own SE. X gives 6/3=2; Y gives 4/1=4. Y has the larger standardized discrepancy.

Case X has discrepancy 6 and SE 3, so it spans two SE units. Case Y has discrepancy 4 and SE 1, so it spans four. Each row is explicitly standardized by its own SE; equal segment lengths represent one SE, not equal raw measurement distances.Case X has discrepancy 6 and SE 3, so it spans two SE units. Case Y has discrepancy 4 and SE 1, so it spans four. Each row is explicitly standardized by its own SE; equal segment lengths represent one SE, not equal raw measurement distances.
Figure 1Case X has discrepancy 6 and SE 3, so it spans two SE units. Case Y has discrepancy 4 and SE 1, so it spans four. Each row is explicitly standardized by its own SE; equal segment lengths represent one SE, not equal raw measurement distances.
Link to this figure ↗Download SVGDownload PNG
Check your reasoning

Rule T=d/SE; d=estimate-null. X: d=9, SE=3. Y: d=4, SE=1. (TX,TY); larger |T|?

  1. A(9, 4); X.
  2. B(3, 4); Y.
  3. C(3, 4/3); X.
Show answer and explanation
(3, 4); Y.

TX=3, TY=4; compare magnitudes.

03A signed rule preserves direction#

A signed rule preserves direction. Estimate 8, null 12 and SE 2 give T=−2. If the supplied rule uses an absolute difference instead, its result is 2. At estimate=null, either rule gives 0. These numbers alone do not supply a p-value.

Check your reasoning

Rule: T=(estimate-null)/SE. Estimate=7, null=1, SE=2. “T=6: omit SE.” Repair T.

  1. A6
  2. B-3
  3. C3
Show answer and explanation
3

Difference 6; T=3.

04The statistic’s reference distribution depends on the null model and assumptions#

The statistic’s reference distribution depends on the null model and assumptions. A large raw difference may be unremarkable when its sampling uncertainty is large. Identify the target, null value, scale, and tail direction before interpreting an observed statistic.

Key takeaway

Follow the supplied formula: subtract in order, divide by the stated positive scale, and take absolute value only when required.

  • Compute the supplied test statistic.

Sources & further reading

  1. [1]
    Pishro-Nik, 8.4.2 General Setting and DefinitionsPishro-Nik, Introduction to Probability · Book

Reference this concept

Link to this page, a section, or an individual figure.

Glacius. “Test statistics.” Math behind ML. /learn/s-test-statistic