Catalog/stat-mann-whitney-u

Statistics

Mann-Whitney U test API

Runs the Mann-Whitney U (Wilcoxon rank-sum) test for two independent samples with tie- and continuity-corrected normal approximation, returning U, z and p — a non-parametric alternative to the two-sample t-test. Answers 'Do two groups differ when the data isn't normal?', 'What is the Mann-Whitney U and p-value?'.

Price$0.08per request
MethodPOST
Route/v1/stats/mann-whitney-u
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
statisticsmann-whitneyrank-sumnonparametrictwo-samplewilcoxoninferencep-value
API URLhttps://x402.hexl.dev/v1/stats/mann-whitney-u
Integration docs
Example request
{
  "group1": [
    1,
    2,
    3,
    4,
    5
  ],
  "group2": [
    6,
    7,
    8,
    9,
    10
  ]
}
Example response
{
  "U": 0,
  "U1": 0,
  "U2": 25,
  "n1": 5,
  "n2": 5,
  "zApprox": -2.506718,
  "pValue": 0.012186,
  "alpha": 0.05,
  "method": "normal approximation (tie & continuity corrected)",
  "rejectNull": true,
  "rating": "significant",
  "interpretation": "Mann-Whitney U=0, z≈-2.507, p≈0.0122; distributions differ at alpha=0.05."
}
Input schema
{
  "type": "object",
  "required": [
    "group1",
    "group2"
  ],
  "properties": {
    "group1": {
      "type": "array",
      "items": {
        "type": "number"
      },
      "examples": [
        [
          1,
          2,
          3,
          4,
          5
        ]
      ]
    },
    "group2": {
      "type": "array",
      "items": {
        "type": "number"
      },
      "examples": [
        [
          6,
          7,
          8,
          9,
          10
        ]
      ]
    },
    "alpha": {
      "type": "number",
      "examples": [
        0.05
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}