{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $x_1, \\dots, x_n$ be real numbers.\nThe *Walsh averages* are the $n(n+1)/2$ numbers $(x_i + x_j)/2$ for $1 \\le i \\le j \\le n$.\nThe *one-sample Hodges–Lehmann estimator* is the [[median|08W2CW8PKW]] of the Walsh averages:\n$$\\hat\\theta = \\operatorname{med}\\Big\\{ \\frac{x_i + x_j}{2} : 1 \\le i \\le j \\le n \\Big\\}.$$\nFor two samples $x_1, \\dots, x_m$ and $y_1, \\dots, y_n$, the *two-sample Hodges–Lehmann estimator* of the shift is $\\hat\\Delta = \\operatorname{med}\\set{y_j - x_i : 1 \\le i \\le m, \\ 1 \\le j \\le n}$.\n\n## Remarks\n\nIt is an [[estimator|0TTNRP5PFQ]] of the centre of symmetry $\\theta$ in the model of the [[Wilcoxon signed-rank test|38SETDT2HN]].\nThe estimate $\\hat\\theta$ is the value of $t$ for which the signed-rank statistic of $x_1 - t, \\dots, x_n - t$ is closest to its null mean $n(n+1)/4$.\nIts asymptotic breakdown point is $1 - 1/\\sqrt{2} \\approx 0.29$.\n\nExample: data $(1, 2, 9)$.\nThe Walsh averages are $1, 2, 9$ (for $i = j$) and $1.5, 5, 5.5$ (for $i \u003c j$); sorted, $1, 1.5, 2, 5, 5.5, 9$.\nTheir median is $(2 + 5)/2 = 3.5$.\n\nNon-example: the median of the averages $(x_i + x_j)/2$ over $i \u003c j$ only, without the terms $i = j$, is a different estimator; for $(1, 2, 9)$ it gives $5$.\nBoth versions appear in the literature, so the convention should be stated.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "T6KRQAQQ15",
    "kind": "definition",
    "msc": [
      "62G05",
      "62G35"
    ],
    "name": "Hodges–Lehmann estimator",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Hodges%E2%80%93Lehmann_estimator"
      }
    ],
    "tag": "ERXF29KNPC",
    "uses": [
      "08W2CW8PKW",
      "0TTNRP5PFQ"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/ERXF29KNPC/",
  "links": [
    {
      "field": "defines",
      "target": "T6KRQAQQ15"
    },
    {
      "field": "uses",
      "target": "08W2CW8PKW"
    },
    {
      "field": "uses",
      "target": "0TTNRP5PFQ"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/ERXF29KNPC.md",
  "msc": [
    "62G05",
    "62G35"
  ],
  "name": "Hodges–Lehmann estimator",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/ERX/ERXF29KNPC.md",
  "status": null,
  "tag": "ERXF29KNPC",
  "uri": "m2://ERXF29KNPC",
  "url": "https://tamnd.github.io/math2/wiki/hodges-lehmann-estimator-definition/",
  "writing": {
    "tag": "ERXF29KNPC",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
