{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "1Y31ZXTRTV"
    },
    {
      "field": "uses",
      "target": "AYTEC1KET8"
    },
    {
      "field": "uses",
      "target": "GR4FN6XNWP"
    },
    {
      "field": "specializes",
      "target": "JN1PJ5AJJS"
    },
    {
      "field": "specializes",
      "target": "STHTW16717"
    },
    {
      "field": "specializes",
      "target": "XCR3V8SJ01"
    },
    {
      "field": "defines",
      "target": "THH4GJFYQN"
    }
  ],
  "body": "\n## Summary\n\nA generalized linear model relates the mean of a response to a linear combination of regressors through a link function.\nThe response distribution is taken from an [[exponential family|EP9VPZ0S6G]].\nIt unifies [[linear regression|41FVC4P5JB]], [[logistic regression|JN1PJ5AJJS]], [[Poisson regression|STHTW16717]] and the [[probit model|XCR3V8SJ01]] in one framework, with one fitting method and one theory of inference.\nThe framework was introduced by John Nelder and Robert Wedderburn in 1972.\nIts coefficients are estimated by [[maximum likelihood|0FREPFKNS7]], usually with iteratively reweighted least squares.\n\n## Explanations\n\n### L1 human\n\nOrdinary regression predicts a number that can be any real value, with normal noise.\nMany responses are not like that: a yes/no answer, a count, a waiting time.\nA generalized linear model keeps the simple linear formula $x^T \\beta$, but passes it through a link function that fits the range of the mean.\nIt also uses a noise distribution that suits the data.\nFor counts, for example, the logarithm of the mean is linear in the regressors and the counts are Poisson.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "62J12"
    ],
    "name": "Generalized linear model",
    "same_as": {
      "wikidata": "Q1501882",
      "wikipedia": "Generalized linear model"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Generalized_linear_model"
      }
    ],
    "tag": "K6C48KMRKC"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/K6C48KMRKC/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/K6C48KMRKC.md",
  "msc": [
    "62J12"
  ],
  "name": "Generalized linear model",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/K6C/K6C48KMRKC.md",
  "status": null,
  "tag": "K6C48KMRKC",
  "uri": "m2://K6C48KMRKC",
  "url": "https://tamnd.github.io/math2/wiki/generalized-linear-model/",
  "writing": {
    "tag": "K6C48KMRKC",
    "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
      }
    ]
  }
}
