Statistics & probability

Westfall Young stepdown maxT calculator from multivariate two-group observations

Each row contains one group indicator and all measured endpoints for that observation.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Each row contains one group indicator and all measured endpoints for that observation. Missing entries would destroy the common resampling design.

THE FORMULAp̃(j)=maxk≤j Pperm[maxℓ≥k |T*(ℓ)|≥|T(k)|], ordering observed |T| decreasing.

A worked example

There are C(8,4)=70 complete group assignments. The same assignment is applied to both columns. Identical endpoint columns must have identical adjusted p and incur no extra multiplicity compared with a single endpoint.

Good to know

8–80 independent rows with binary group label, at least4 each; 2–20 complete endpoints; pooled two-sample t, two-sided absolute maxT; 999–4999 seeded permutations and10 million endpoint-refits; exchangeability and subset-pivotality stated; no Welch/paired variant as another page.

Align endpoints across the same sampled rows

Each row contains one group indicator and all measured endpoints for that observation. Missing entries would destroy the common resampling design.

The two groups consist of independent observations. A paired trial or clustered sampling arrangement needs restricted resampling instead of unrestricted labels.

Raw and adjusted exact probabilitiesRaw and adjusted exact probabilitiesRaw 10.057143Adjusted 10.085714Raw 20.057143Adjusted 20.085714Synchronized 70-label null: raw 4/70, joint stepdown 6/70.
Scroll across to see the full diagram.
Synchronized 70-label null: raw 4/70, joint stepdown 6/70.

Compare this with the Closed testing true discovery lower bound calculator for selected hypotheses. Use synchronized sample-label permutations across measured endpoints, recompute all pooled t statistics and step down their subset maxima to estimate multiplicity-adjusted p values that retain endpoint dependence. Existing closure accepts p values only and cannot reconstruct the joint permutation null.

Preserve endpoint dependence during permutations

A single label assignment is shared by every endpoint. Correlated endpoint responses therefore remain correlated under each randomized group division.

Permuting each column independently would create a different joint null. That loses the dependence information this procedure is designed to retain. The default measures two correlated endpoints on eight independent rows, four per group. Both observed absolute pooled t statistics are approximately3.28633535. Complete enumeration gives raw two-sided probabilities4/70 and stepdown-adjusted probabilities6/70 for this tied observed ordering. The general page uses synchronized seeded label permutations, so its Monte Carlo fractions are approximate. Both endpoint columns must travel together with each permuted row; independently shuffling each column would destroy the cross-endpoint dependence the method is designed to preserve.

Step down through observed endpoint statistics

Order absolute pooled t statistics from largest to smallest. At each step compare the observed statistic with the maximum among the remaining permuted endpoints.

Apply a cumulative maximum to the ordered tail proportions. This preserves the required monotonicity of adjusted evidence as the testing sequence proceeds.

Work through the checked default example

There are C(8,4)=70 complete group assignments. The same assignment is applied to both columns. Identical endpoint columns must have identical adjusted p and incur no extra multiplicity compared with a single endpoint.

Both endpoint absolute t statistics are 3.28633535. Complete synchronized label randomization gives each endpoint raw probability4/70 and stepdown-adjusted probability6/70, approximately0.0857143. Order the observed absolute test statistics from largest to smallest. For each permutation, compute the maximum statistic among the hypotheses still under consideration at each step. Compare that subset maximum with the corresponding observed threshold, then enforce nondecreasing adjusted probabilities down the ordered list. This last monotonicity step prevents a less extreme observed endpoint from receiving an incoherently smaller stepdown probability. The same permutation bank also supplies raw empirical p-values, making the adjustment auditable against the unadjusted endpoint evidence rather than a transformation of unrelated imported p-values.

State the error-control assumptions

Exchangeable labels justify the randomization distribution. Strong family-wise interpretation also needs the relevant subset-pivotality conditions.

A method name cannot establish those conditions from a numeric table. The supported pooled t model and randomized design should be reported with the adjusted probabilities.

Compare raw and adjusted evidence together

Raw endpoint probabilities describe individual comparisons. Adjusted probabilities account for the declared endpoint family under synchronized resampling.

Adding unrelated endpoints can change adjusted evidence. Duplicating exactly the same endpoint should not create extra effective multiplicity in a maximum statistic. The pooled t statistic assumes a common variance reference within each endpoint, while row-label permutation requires exchangeability under the null. Strong familywise error interpretation additionally relies on the stated subset-pivotality condition. The page does not silently replace pooled t by Welch t or pair repeated observations. If a permutation creates zero pooled residual variance for an endpoint, the present bounded implementation rejects the unresolved statistic rather than hiding that sample. Complete measurements across endpoints are required; deleting a different set of rows for each endpoint would invalidate the shared row-permutation design.

Record the whole endpoint family

Specify the family before inspecting which endpoints look promising. Running separate selected families after seeing the outcomes weakens the interpretation.

A Monte Carlo tail has finite resolution determined by the number of permutations. An exact small allocation example provides a reproducible benchmark independent of random seeds. The group column identifies sampling units and is not an additional endpoint. All endpoint values in one row must come from the same unit. Duplicating a unit into several rows creates pseudoreplication that synchronized permutations cannot fix. If multiple endpoints have identical observed statistics, their stepdown ordering is deterministic, while the monotonicity adjustment preserves coherent adjusted probabilities.

A few questions, answered

Why use the same permutation for all endpoints?

It preserves the observed endpoint dependence within sampled observations.

Are adjusted p values FDR values?

No. The target is family-wise error under the stated assumptions, rather than expected false discovery proportion.

Why take a cumulative maximum?

Stepdown adjusted probabilities must remain monotone in the observed test ordering.

What happens with identical endpoint columns?

Their test statistics and adjusted probabilities should agree; duplicate copies do not increase a joint maximum.

Find your calculator

Start typing to explore the library.