Statistics
Bonferroni/Holm/Sidak correction API
Applies a family-wise multiple-comparison correction (Bonferroni, Holm step-down, or Sidak) to a set of p-values, returning adjusted p-values, the per-comparison alpha and which hypotheses are rejected. Answers 'How do I correct p-values for multiple testing?', 'Which results survive Holm/Bonferroni correction?'.
Price$0.06per request
MethodPOST
Route/v1/stats/multiple-comparison-correction
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
statisticsmultiple-comparisonsbonferroniholmsidakp-valuefamily-wisecorrection
API URL
Integration docshttps://x402.hexl.dev/v1/stats/multiple-comparison-correctionExample request
{
"pValues": [
0.01,
0.04,
0.03,
0.005
],
"method": "holm"
}Example response
{
"method": "holm",
"alpha": 0.05,
"m": 4,
"comparisonwiseAlpha": null,
"pValues": [
0.01,
0.04,
0.03,
0.005
],
"adjustedPValues": [
0.03,
0.06,
0.06,
0.02
],
"rejected": [
true,
false,
false,
true
],
"numRejected": 2,
"rating": "2/4 significant after holm",
"interpretation": "holm correction over 4 tests at alpha=0.05: 2 reject H0."
}Input schema
{
"type": "object",
"required": [
"pValues"
],
"properties": {
"pValues": {
"type": "array",
"items": {
"type": "number"
},
"examples": [
[
0.01,
0.04,
0.03,
0.005
]
]
},
"alpha": {
"type": "number",
"examples": [
0.05
]
},
"method": {
"type": "string",
"enum": [
"bonferroni",
"holm",
"sidak"
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}