{
  "aliases": null,
  "backlinks": [
    {
      "field": "defines",
      "target": "M092V97ZET"
    }
  ],
  "body": "\n## Summary\n\nSpearman's rank correlation coefficient $\\rho_s$ is the Pearson [[correlation coefficient|0DNN9B6Q2F]] of the ranks of two variables.\nIt measures how well the relation between the variables is described by a monotone function, not only by a straight line.\nIt lies between $-1$ and $1$, and it equals $1$ exactly when one variable is a strictly increasing function of the other on the sample.\nIt is unchanged by any strictly increasing change of scale of either variable.\n\n## Explanations\n\n### L1 human\n\nReplace each value of $x$ by its place in the sorted list of $x$ values, and do the same for $y$.\nThen compute the ordinary correlation of these places.\nIf larger $x$ always goes with larger $y$, the places agree and the coefficient is $1$, even when the relation is curved.\nFor example, the points $(1, 1), (2, 4), (3, 9)$ lie on a parabola, not a line, yet their Spearman coefficient is $1$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "62H20",
      "62G10"
    ],
    "name": "Spearman's rank correlation coefficient",
    "same_as": {
      "wikidata": "Q1126730",
      "wikipedia": "Spearman's rank correlation coefficient"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Spearman%27s_rank_correlation_coefficient"
      }
    ],
    "tag": "DJFYTQJ3SH"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/DJFYTQJ3SH/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/DJFYTQJ3SH.md",
  "msc": [
    "62H20",
    "62G10"
  ],
  "name": "Spearman's rank correlation coefficient",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/DJF/DJFYTQJ3SH.md",
  "status": null,
  "tag": "DJFYTQJ3SH",
  "uri": "m2://DJFYTQJ3SH",
  "url": "https://tamnd.github.io/math2/wiki/spearmans-rank-correlation-coefficient/",
  "writing": {
    "tag": "DJFYTQJ3SH",
    "kind": "concept",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
