{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $G$ be a finite [[group|G5S1M9]].\nThe *commuting probability* of $G$ is\n$$\\mathrm{cp}(G) = \\frac{\\abs{\\set{(x, y) \\in G \\times G : xy = yx}}}{\\abs{G}^2}.$$\n\n## Remarks\n\nCounting the pairs by their first entry gives $\\mathrm{cp}(G) = \\frac{1}{\\abs{G}^2} \\sum_{x \\in G} \\abs{C_G(x)}$, where $C_G(x)$ is the [[centraliser|02YYV36BFM]] of $x$.\nSince the [[conjugacy class|0DEBXAJ5SA]] of $x$ has $\\abs{G}/\\abs{C_G(x)}$ elements, this sum gives $\\mathrm{cp}(G) = k(G)/\\abs{G}$, where $k(G)$ is the number of conjugacy classes of $G$.\nExample: $S_3$ has $3$ conjugacy classes, so $\\mathrm{cp}(S_3) = 3/6 = 1/2$.\nExample: the [[quaternion group|0NRJGW864D]] $Q_8$ has $5$ conjugacy classes, $\\{1\\}$, $\\{-1\\}$, $\\{\\pm i\\}$, $\\{\\pm j\\}$, $\\{\\pm k\\}$, so $\\mathrm{cp}(Q_8) = 5/8$.\nThe value $\\mathrm{cp}(G) = 1$ holds exactly when $G$ is [[abelian|082GHNPJ53]]; if $G$ is not abelian, then $\\mathrm{cp}(G) \\le 5/8$.\n\n## Explanations\n\n### L1 human\n\nThe commuting probability is the chance that two random elements of the group commute.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "defines": "4MBYAVB0PY",
    "kind": "definition",
    "msc": [
      "20D60",
      "20P05"
    ],
    "name": "Commuting probability",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Commuting_probability"
      }
    ],
    "tag": "9W6KMR96R9",
    "uses": [
      "0B85S2V2DR",
      "0DEBXAJ5SA",
      "02YYV36BFM"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/9W6KMR96R9/",
  "links": [
    {
      "field": "defines",
      "target": "4MBYAVB0PY"
    },
    {
      "field": "uses",
      "target": "0B85S2V2DR"
    },
    {
      "field": "uses",
      "target": "0DEBXAJ5SA"
    },
    {
      "field": "uses",
      "target": "02YYV36BFM"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/9W6KMR96R9.md",
  "msc": [
    "20D60",
    "20P05"
  ],
  "name": "Commuting probability",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/9W6/9W6KMR96R9.md",
  "status": null,
  "tag": "9W6KMR96R9",
  "uri": "m2://9W6KMR96R9",
  "url": "https://math2.tamnd.com/wiki/commuting-probability-definition/",
  "writing": {
    "tag": "9W6KMR96R9",
    "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
      }
    ]
  }
}
