{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $X$ be data with log-likelihood $\\ell(\\theta) = \\log L(\\theta \\mid X)$, differentiable in $\\theta$ in an open set $\\Theta \\subseteq \\R^k$, and let $\\theta_0 \\in \\Theta$.\nLet $U(\\theta) = \\nabla \\ell(\\theta)$ be the [[score|CP97GRVTQ0]] and let $I(\\theta)$ be the [[Fisher information|G1Z3WSTE8Q]] of $X$, assumed invertible at $\\theta_0$.\nThe *score statistic* for $H_0 \\colon \\theta = \\theta_0$ is\n$$S = U(\\theta_0)^{T} I(\\theta_0)^{-1} U(\\theta_0).$$\nThe *score test* at level $\\alpha$ rejects $H_0$ when $S$ exceeds the $1 - \\alpha$ quantile of the [[chi-squared distribution|0RFMMBHFTV]] with $k$ degrees of freedom.\n\n## Remarks\n\nUnder $H_0$ and the usual regularity conditions for i.i.d. samples, $S$ converges in distribution to $\\chi^2_k$, so the test has asymptotic level $\\alpha$.\nFor a composite $H_0$ with nuisance parameters, one evaluates the score and the information at the maximum likelihood estimate under $H_0$.\nExample: for $X$ binomial with parameters $n$ and $p$, one has $U(p) = (X - np)/(p(1 - p))$ and $I(p) = n/(p(1 - p))$.\nSo $S = (X - np_0)^2/(np_0(1 - p_0))$, the square of the usual z-statistic for a proportion.\nNon-example: the statistic $U(\\theta_0)^T U(\\theta_0)$, without the factor $I(\\theta_0)^{-1}$, does not have a $\\chi^2_k$ limit in general, so it is not the score statistic.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "Y5HMW0BDTP",
    "kind": "definition",
    "msc": [
      "62F03",
      "62F05"
    ],
    "name": "Score test",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Score_test"
      }
    ],
    "tag": "8085SD9EYY",
    "uses": [
      "CP97GRVTQ0",
      "G1Z3WSTE8Q",
      "087P03NEND",
      "0RFMMBHFTV"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/8085SD9EYY/",
  "links": [
    {
      "field": "defines",
      "target": "Y5HMW0BDTP"
    },
    {
      "field": "uses",
      "target": "CP97GRVTQ0"
    },
    {
      "field": "uses",
      "target": "G1Z3WSTE8Q"
    },
    {
      "field": "uses",
      "target": "087P03NEND"
    },
    {
      "field": "uses",
      "target": "0RFMMBHFTV"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/8085SD9EYY.md",
  "msc": [
    "62F03",
    "62F05"
  ],
  "name": "Score test",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/808/8085SD9EYY.md",
  "status": null,
  "tag": "8085SD9EYY",
  "uri": "m2://8085SD9EYY",
  "url": "https://tamnd.github.io/math2/wiki/score-test-definition/",
  "writing": {
    "tag": "8085SD9EYY",
    "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
      }
    ]
  }
}
