How to use this calculator
Test for a linear score trend in independent binomial proportions across ordered groups, using user-specified spacing between groups.
- Enter Success counts by ordered group, Trials by group, Prespecified numeric group scores. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Cochran Armitage ordered proportion trend test explained
This score test asks whether binomial success proportions show a linear trend across ordered groups. The assigned scores define both the ordering and the spacing of that trend; equal ranks and actual dose values can therefore test different contrasts.
Inputs, symbols, and units
s— Success counts by ordered group- Whole successes in each ordered independent group. Every count is bounded by its corresponding trials. Use comma-separated values in the stated order.
n— Trials by group- Positive whole trial totals by group, including successes and failures. Use comma-separated values in the stated order.
w— Prespecified numeric group scores- Prespecified numerical trend scores, for example actual doses. Their spacing defines the tested linear contrast. Use comma-separated values in the stated order.
Formula and method
U=Σwj(sj−njp̄); V=p̄(1−p̄)Σnj(wj−w̄)²; z=U/√V.
The pooled success fraction supplies the null rate for the score statistic. A positive z points toward higher proportions at higher scores; the displayed p-value is the two-sided standard-normal reference, without a continuity correction. This is an asymptotic test for independent groups, not a general test for every nonmonotone pattern.
A worked scenario
Success counts by ordered group = 4,9,15,22; Trials by group = 30,30,30,30; Prespecified numeric group scores = 0,1,2,3.
- Cochran Armitage score z: 4.96847203
- Two-sided normal reference p-value: 6.74825325e-07
- Pooled success proportion: 0.41666667
Successes increase from four to twenty-two over equally spaced scores zero through three. Doubling every score preserves z; changing only one spacing can change the contrast.
Assumptions and edge cases
At least three independent groups with positive trial counts, varying scores, and both outcomes observed. Asymptotic normal calibration; no fixed-total finite-population multiplier or continuity correction. Nonlinear patterns may escape a linear trend contrast.
Reading the outputs
Positive z indicates increasing success with increasing score. The two-sided p-value detects a trend in either direction.
Frequently asked questions
Can I use actual dose instead of ranks?
Yes, if those scores express the planned linear trend and are chosen before testing.
Is this an omnibus comparison?
No. A nonmonotone difference can yield little linear trend despite unequal proportions.
Why might a package differ slightly?
Some implementations condition on total successes or apply a finite-population or continuity correction.
How do I use the Cochran Armitage ordered proportion trend test calculator?
Enter Success counts by ordered group, Trials by group, Prespecified numeric group scores. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Cochran Armitage ordered proportion trend test?
Success counts by ordered group = 4,9,15,22; Trials by group = 30,30,30,30; Prespecified numeric group scores = 0,1,2,3. Cochran Armitage score z: 4.96847203 Two-sided normal reference p-value: 6.74825325e-07 Pooled success proportion: 0.41666667 Successes increase from four to twenty-two over equally spaced scores zero through three. Doubling every score preserves z; changing only one spacing can change the contrast.
Method reference: SciPy statistical function reference.
Read our calculation methodology.