WRITE · TRACE · UNDERSTAND
Adjust a family of discoveries without losing original order
Implement bh_adjust(pvalues) returning BH adjusted values in original order, capped at 1.
Read lesson: Adjust a family of discoveries without losing original order →
Your experiment
Implement bh_adjust(pvalues) returning BH adjusted values in original order, capped at 1. Accept empty input. Reject nonfinite values or values outside [0,1].
Python runs in your browser. Your draft stays on this device.
What to look for
BH controls a false-discovery rate under conditions such as independent or suitable positively dependent tests. It does not establish a causal effect or replace a predeclared experiment and a meaningful effect-size threshold.
Watch your code work
Ready to experimentWrite a solution or load the worked answer, then choose Trace & check.
Step through arrays, variables and training curves produced by your own Python.
