A table comparing several robot-model outputs can produce several small p-values at once. Applying a separate threshold to every row changes the combined error question. A procedure that controls the probability of any false rejection answers a different question from one that controls the expected false fraction among the rejections.

The distinction is mathematical rather than a verdict about a particular robot. The p-values below are invented inputs to an explicitly declared multiple-testing exercise. They are not measurements, experimental findings, or evidence that any model improved.

Declare the family before inspecting outcomes

Fix a family of m null hypotheses. A rejection is a decision against a null. Let R count all rejections and V count rejected nulls that are actually true. The unknown truth of each null is fixed in the repeated-sampling interpretation used here.

Familywise error rate, FWER, is P(V≥1). False discovery rate, FDR, is E[V/max(R,1)]. The denominator convention makes the false-discovery proportion zero when nothing is rejected. Both definitions average over repeated samples, but they average different quantities.

Assume valid p-values: under each true null, P(p≤t)≤t for thresholds t between zero and one. This condition is not established merely by putting numbers between zero and one. Selectively reporting favorable tests or constructing invalid individual p-values can break the model before a multiple-testing adjustment begins.

Calculate a familywise comparison

Bonferroni rejects a row when its p-value is at most α/m. For each true null, validity bounds its erroneous-rejection probability by α/m. Adding those probabilities bounds the probability of their union by m_0 α/m≤α, where m_0 is the number of true nulls. This argument does not require independence.

For context, if twenty independent true-null p-values were exactly uniform and each used an unadjusted 0.05 cutoff, the probability of at least one rejection would be 1−0.95^20, approximately 0.641514. The expected number would be one. Those are different summaries of the same stipulated experiment.

R's p.adjust documentation distinguishes familywise and false-discovery procedures. SciPy's false_discovery_control notes state BH conditions and the bound q m_0/m. The examples and probability calculations here are independently selected.

Apply the BH step-up rule

Use m=5 and target q=0.05. Sort the invented p-values into ascending order: 0.003, 0.018, 0.040, 0.200, 0.600. Maintain their original hypothesis identifiers so sorting does not detach a decision from its row.

The Benjamini–Hochberg thresholds i q/m for ranks i=1 through 5 are 0.01, 0.02, 0.03, 0.04, and 0.05. Find the largest rank k whose p-value is at most its corresponding threshold. Here rank two qualifies and ranks three through five do not. Therefore k=2 and the first two nulls are rejected.

If no rank qualifies, reject none. If a largest qualifying rank exists, reject every rank through it. This is a step-up rule, not an instruction to accept or reject each sorted row independently against its own threshold.

For the same five inputs, Bonferroni at α=0.05 uses 0.01 for every row and rejects only the first. This numerical difference does not establish a universal superiority ranking. The two procedures target different error criteria under different sufficient assumptions.

See why stopping at the first failure is wrong

Take a second original sorted vector: 0.011, 0.019, 0.029, 0.800, 0.900. Its first row exceeds the rank-one threshold 0.01. Nevertheless, rank three satisfies 0.029≤0.03 and is the largest qualifying rank. BH therefore rejects the first three rows.

Stopping immediately at the first failed comparison would reject nothing, which is not the BH rule. The example also shows why the rejection set must be derived from the largest qualifying rank rather than a collection of isolated rowwise comparisons.

Adjusted values encode the same rule

For sorted inputs p_(i), define a_i=min(1,min over j≥i of m p_(j)/j). The backward cumulative minimum makes adjusted values nondecreasing across ranks. Restore the original row ordering afterward.

For the first vector, the raw scaled values are 0.015, 0.045, approximately 0.066667, 0.25, and 0.6. They already increase, so these are also the adjusted values. Comparing them with 0.05 gives the same first-two rejection set.

For the second vector, the first three raw scaled values are 0.055, 0.0475, and approximately 0.048333. The cumulative-minimum step changes the first adjusted value to 0.0475. The first three adjusted values therefore all qualify. An adjusted p-value is not a posterior probability that its null is true.

Keep the guarantee attached to its assumptions

For valid null p-values under independence, or the appropriate positive regression dependence condition, BH controls FDR at no more than q m_0/m, hence no more than q. Generic positive pairwise correlation is not a substitute for stating the required dependence condition.

For arbitrary dependence, the Benjamini–Yekutieli modification uses q/H_m in the step-up thresholds, where H_m is the sum of reciprocals from one through m. Here H_5=137/60, so the effective level is 3/137, approximately 0.021898. Applying those stricter thresholds to the first vector rejects only its first row.

An expectation is not a per-table fraction promise

Consider an abstract repeated-outcome ledger with equal probabilities for (V,R)=(1,1) and (0,9). Its FDR is one-half, while E[V]/E[R]=0.5/5=0.1. This is an illustration of the definitions, not a claimed BH sampling distribution. Taking an expectation after dividing cannot generally be replaced by dividing two expectations.

Likewise, controlling FDR at 0.05 does not promise that every observed table has at most five percent false rejections. If all nulls are true, V=R whenever anything is rejected, so FDR equals FWER in that special case. A reproducible comparison record should retain its declared family, valid test model, dependence assumptions, error target, sorted decisions, and original row identities.

Sources checked October 24, 2026:

R stats, p.adjust, development manual as accessed:

https://stat.ethz.ch/R-manual/R-devel/library/stats/html/p.adjust.html

SciPy 1.18.0 documentation, false_discovery_control:

https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.false_discovery_control.html

Concept illustration: A small desktop robot beside a laptop showing a generic workflow provides robotics context for this analytical model. The image does not depict the article's numerical example, a verified experiment, a product specification, or deployment evidence.