{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "JN2YME6F4A"
    }
  ],
  "body": "\n## Example\n\nLet $\\lambda \u003e 0$ and $\\mu \u003e 0$.\nIn the M/M/1 queue of [[queueing theory|P64V0HTE78]], customers arrive as a Poisson process of rate $\\lambda$ and there is one server.\nService times are independent [[exponential|0E99F51GVB]] random variables of rate $\\mu$.\nThe number $Q(t)$ of customers in the system is a [[birth–death process|E8DAD7052E]] on $\\set{0, 1, 2, \\ldots}$.\nIts birth rates are $\\lambda_n = \\lambda$ for $n \\ge 0$ and its death rates are $\\mu_n = \\mu$ for $n \\ge 1$.\nThis holds because the exponential law has no memory.\nAt each moment, the time to the next arrival and the remaining service time are again exponential, of rates $\\lambda$ and $\\mu$.\n\nLet $\\rho = \\lambda / \\mu$.\nThe balance equations $\\pi_n \\lambda = \\pi_{n+1} \\mu$ give $\\pi_n = \\rho^n \\pi_0$.\nSo a [[stationary distribution|02KYGSCTCN]] exists if and only if $\\rho \u003c 1$, and then\n$$\\pi_n = (1 - \\rho) \\rho^n, \\qquad n \\ge 0,$$\na geometric law.\nThe mean number in the system is $L = \\sum_n n \\pi_n = \\rho / (1 - \\rho)$.\nBy [[Little's law|JN2YME6F4A]], the mean time in the system is $W = L / \\lambda = 1/(\\mu - \\lambda)$.\nIf $\\rho \\ge 1$ the queue has no stationary distribution: it is null recurrent for $\\rho = 1$ and transient for $\\rho \u003e 1$.\n\n## Explanations\n\n### L1 human\n\nOne clerk serves customers who arrive at random, at $\\lambda$ per hour on average, and serves $\\mu$ per hour on average when busy.\nIf $\\lambda = 3$ and $\\mu = 4$, the clerk is busy three quarters of the time, there are $3$ customers in the system on average, and each spends $1$ hour there on average.\nAs $\\lambda$ comes close to $\\mu$, the average line grows without bound.\n",
  "commit": "5fc425f97f1f6b11da5892c2948ef8c5d8805665",
  "front": {
    "instance_of": [
      "E8DAD7052E"
    ],
    "kind": "example",
    "msc": [
      "60K25",
      "60J27",
      "90B22"
    ],
    "name": "M/M/1 queue",
    "same_as": {
      "wikidata": "Q2736426",
      "wikipedia": "M/M/1 queue"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/M/M/1_queue"
      }
    ],
    "tag": "GTFRPF5J2K"
  },
  "kind": "example",
  "link": "https://math2.tamnd.com/node/GTFRPF5J2K/",
  "links": [
    {
      "field": "instance_of",
      "target": "E8DAD7052E"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/GTFRPF5J2K.md",
  "msc": [
    "60K25",
    "60J27",
    "90B22"
  ],
  "name": "M/M/1 queue",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/GTF/GTFRPF5J2K.md",
  "status": null,
  "tag": "GTFRPF5J2K",
  "uri": "m2://GTFRPF5J2K",
  "url": "https://math2.tamnd.com/wiki/m-m-1-queue/",
  "writing": {
    "tag": "GTFRPF5J2K",
    "kind": "example",
    "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
      }
    ]
  }
}
