Statistics
Benjamini-Hochberg FDR API
Controls the false-discovery rate via the Benjamini-Hochberg step-up procedure, returning the critical p-value, monotone BH-adjusted q-values and which discoveries are kept. Answers 'Which p-values survive FDR control?', 'What is the BH critical threshold and adjusted q-values?'.
Price$0.06per request
MethodPOST
Route/v1/stats/benjamini-hochberg-fdr
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
statisticsfdrbenjamini-hochbergfalse-discoverymultiple-testingq-valuep-valuecorrection
API URL
Integration docshttps://x402.hexl.dev/v1/stats/benjamini-hochberg-fdrExample request
{
"pValues": [
0.001,
0.008,
0.039,
0.041,
0.9
],
"fdr": 0.05
}Example response
{
"fdr": 0.05,
"m": 5,
"numRejected": 2,
"criticalPValue": 0.008,
"pValues": [
0.001,
0.008,
0.039,
0.041,
0.9
],
"adjustedQValues": [
0.005,
0.02,
0.05125,
0.05125,
0.9
],
"rejected": [
true,
true,
false,
false,
false
],
"rating": "2/5 discoveries at FDR=0.05",
"interpretation": "Benjamini-Hochberg at FDR=0.05: reject the 2 hypotheses with p ≤ 0.008."
}Input schema
{
"type": "object",
"required": [
"pValues"
],
"properties": {
"pValues": {
"type": "array",
"items": {
"type": "number"
},
"examples": [
[
0.001,
0.008,
0.039,
0.041,
0.9
]
]
},
"fdr": {
"type": "number",
"examples": [
0.05
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}