{
  "aliases": [
    "lp-metric"
  ],
  "backlinks": [
    {
      "field": "uses",
      "target": "0KNJWEVSMG"
    }
  ],
  "body": "\n## Example\n\nLet $n \\ge 1$ be an integer and let $p \\ge 1$ be a real number.\nFor $x = (x_1, \\ldots, x_n)$ and $y = (y_1, \\ldots, y_n)$ in $\\mathbb{R}^n$, let\n$$d_p(x, y) = \\left( \\sum_{i=1}^{n} |x_i - y_i|^p \\right)^{1/p}.$$\nThen $d_p$ is a [[metric|063W5JMY85]] on $\\mathbb{R}^n$.\n\n## Remarks\n\nThe triangle inequality for $d_p$ is the Minkowski inequality.\nFor $p = 1$ it is the [[taxicab metric|07CJNE6ZAQ]], and for $p = 2$ it is the [[Euclidean metric|0E1MMCAY5B]].\nFor $0 \u003c p \u003c 1$, the same formula does not give a metric when $n \\ge 2$: the triangle inequality fails.\nThe metric $d_p$ comes from the [[p-norm|0KNJWEVSMG]]: $d_p(x, y) = \\|x - y\\|_p$.\n\n## Explanations\n\n### L1 human\n\nThe p-metrics form a family of ways to combine the differences of the coordinates into one distance.\nA larger $p$ gives more weight to the largest difference, and for very large $p$ the distance is close to the [[sup metric|0VTAXQEWQD]].\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "aliases": [
      "lp-metric"
    ],
    "instance_of": [
      "0VKD1TP7F3"
    ],
    "kind": "example",
    "msc": [
      "46B20"
    ],
    "name": "p-metric on R^n",
    "sources": [
      {
        "locator": "The p-norm in finite dimensions",
        "url": "https://en.wikipedia.org/wiki/Lp_space"
      }
    ],
    "tag": "0TFDZN6AXP"
  },
  "kind": "example",
  "link": "https://math2.tamnd.com/node/0TFDZN6AXP/",
  "links": [
    {
      "field": "instance_of",
      "target": "0VKD1TP7F3"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0TFDZN6AXP.md",
  "msc": [
    "46B20"
  ],
  "name": "p-metric on R^n",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0TF/0TFDZN6AXP.md",
  "status": null,
  "tag": "0TFDZN6AXP",
  "uri": "m2://0TFDZN6AXP",
  "url": "https://math2.tamnd.com/wiki/p-metric-on-r-n/",
  "writing": {
    "tag": "0TFDZN6AXP",
    "kind": "example",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
