{
  "aliases": null,
  "backlinks": [
    {
      "field": "defines",
      "target": "1R358D2T7J"
    }
  ],
  "body": "\n## Summary\n\nThe log-rank test is a nonparametric [[hypothesis test|087P03NEND]] that compares the survival distributions of two or more groups from right-[[censored|MY8ZZP84NP]] data.\nAt each event time it compares the observed number of events in a group with an expected number.\nThe expected number is computed as if all groups had the same [[hazard function|Y959NKQ3XW]].\nSumming these differences and standardising gives a statistic that is approximately standard normal under the null hypothesis.\nIt is the standard test for comparing [[Kaplan–Meier|B7AJ8RWZRC]] curves, and it is most efficient when the hazards of the groups are proportional.\n\n## Explanations\n\n### L1 human\n\nTwo groups of patients get different treatments, and we record when each patient has a relapse.\nEach time someone relapses, we look at how many patients of each group were still at risk.\nFrom this we compute how many of these relapses we would expect in group 1 if the treatments were equally good.\nThe test adds up \"observed minus expected\" over all relapse times.\nA large total, compared with its natural spread, suggests that the treatments really differ.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "62N03",
      "62G10",
      "62P10"
    ],
    "name": "Log-rank test",
    "same_as": {
      "wikidata": "Q6089397",
      "wikipedia": "Logrank test"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Logrank_test"
      }
    ],
    "tag": "F6CT1YXZ0G"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/F6CT1YXZ0G/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/F6CT1YXZ0G.md",
  "msc": [
    "62N03",
    "62G10",
    "62P10"
  ],
  "name": "Log-rank test",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/F6C/F6CT1YXZ0G.md",
  "status": null,
  "tag": "F6CT1YXZ0G",
  "uri": "m2://F6CT1YXZ0G",
  "url": "https://tamnd.github.io/math2/wiki/log-rank-test/",
  "writing": {
    "tag": "F6CT1YXZ0G",
    "kind": "concept",
    "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
      }
    ]
  }
}
