Categorical › Contingency / proportions

Cochran-Armitage trend

Cochran-Armitage trend test on an ordered binomial tests whether the success proportion increases (or decreases) monotonically across ordered exposure categories.

What is Cochran-Armitage trend?

When the exposure is ordinal (dose levels, age bands, severity grades) and the outcome is binary, chi-square tests for any association — it doesn't exploit the ordering. Cochran-Armitage specifically tests for monotonic trend, gaining power against the realistic alternative that the proportion increases with dose.

The trend statistic computes the weighted sum of (observed − expected) cell counts using the dose levels as weights, then standardises by the hypergeometric variance.

When should I use Cochran-Armitage trend?

  • Ordered-exposure × binary-outcome dose-response.
  • Linear trend across ordered categories (age bands × disease prevalence).

What data does it need?

Group column (ordinal) + outcome column (binary) + success-label.

What does it report?

Trend χ² statistic, df, two-sided p.

Formula

χ²_trend = (Σ wᵢ · (Oᵢ − Eᵢ))² / Var(Σ wᵢ · Oᵢ), wᵢ = ordered dose level

How do I interpret the result?

A significant trend with non-monotonic raw proportions (e.g. U-shape) means the linear-trend component is significant, but the relationship may not be truly monotonic — plot the per-dose proportions before interpreting.

See also

References

  • Armitage (1955). Tests for linear trends in proportions and frequencies. Biometrics 11(3).