{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "04P7D63W8P"
    }
  ],
  "body": "\n## Definition\n\nLet $(\\Omega, \\mathcal{F}, P)$ be a [[probability space|0ZYBZ34RT2]].\nAn [[event|00SQGJNRTB]] $E \\in \\mathcal{F}$ happens almost surely if $P(E) = 1$.\nMore generally, a property of outcomes holds almost surely (a.s.) if an event of probability $0$ contains all outcomes where it fails.\n\n## Remarks\n\nThe property need not hold for all outcomes. In this sense, \"almost surely\" is weaker than \"surely\".\nTwo random variables $X$ and $Y$ are equal almost surely if $P(X = Y) = 1$. They then have the same law.\nA countable intersection of events that happen almost surely also happens almost surely.\nIt is the probability form of \"almost everywhere\" in measure theory.\n\n## Explanations\n\n### L1 human\n\nIf you choose a uniform random number in $[0, 1]$, it is almost surely irrational. Rational outcomes are possible, but together they have probability $0$.\nIf you toss a fair coin forever, you get heads at least once almost surely.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0ST21PGDAP",
    "kind": "definition",
    "msc": [
      "60A05"
    ],
    "name": "Almost surely",
    "sources": [
      {
        "locator": "Formal definition",
        "url": "https://en.wikipedia.org/wiki/Almost_surely"
      }
    ],
    "tag": "0R46A1XY60",
    "uses": [
      "0ZYBZ34RT2",
      "00SQGJNRTB"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0R46A1XY60/",
  "links": [
    {
      "field": "defines",
      "target": "0ST21PGDAP"
    },
    {
      "field": "uses",
      "target": "0ZYBZ34RT2"
    },
    {
      "field": "uses",
      "target": "00SQGJNRTB"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0R46A1XY60.md",
  "msc": [
    "60A05"
  ],
  "name": "Almost surely",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0R4/0R46A1XY60.md",
  "status": null,
  "tag": "0R46A1XY60",
  "uri": "m2://0R46A1XY60",
  "url": "https://math2.tamnd.com/wiki/almost-surely-definition/",
  "writing": {
    "tag": "0R46A1XY60",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge instance_of in",
        "note": "one example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
