{
  "id": 238631,
  "title": "Which distance calculation goes into the evaluation metric?",
  "url": "/competitions/google-smartphone-decimeter-challenge/discussion/238631",
  "author_name": "",
  "post_date": "2021-05-12T21:19:20.965776700Z",
  "votes": 14,
  "comment_count": 6,
  "views": 0,
  "content": "<p>The eval page says  \"the horizontal distance (in meters) is computed between the predicted lat/lng and the ground truth lat/lng\". How is horizontal distance computed?</p>",
  "messages": [
    {
      "id": "1304768",
      "postDate": "05/12/2021 21:19:20",
      "content": "<p>The eval page says  \"the horizontal distance (in meters) is computed between the predicted lat/lng and the ground truth lat/lng\". How is horizontal distance computed?</p>",
      "rawMarkdown": "The eval page says  \"the horizontal distance (in meters) is computed between the predicted lat/lng and the ground truth lat/lng\". How is horizontal distance computed?",
      "votes": null
    },
    {
      "id": "1304775",
      "postDate": "05/12/2021 21:29:29",
      "content": "<p>I'd have to double check, but I believe it's the <a href=\"https://en.wikipedia.org/wiki/Great-circle_distance\" target=\"_blank\">great circle distance</a>. All plausible methods give very similar results for gaps this small anyway.</p>",
      "rawMarkdown": "I'd have to double check, but I believe it's the [great circle distance](https://en.wikipedia.org/wiki/Great-circle_distance). All plausible methods give very similar results for gaps this small anyway.",
      "votes": null
    },
    {
      "id": "1304777",
      "postDate": "05/12/2021 21:36:59",
      "content": "<p>Cool. It might be helpful to know which formula is used for great circle and what constants are used in the formula. Like you say, the difference might not affect the score.</p>",
      "rawMarkdown": "Cool. It might be helpful to know which formula is used for great circle and what constants are used in the formula. Like you say, the difference might not affect the score.",
      "votes": null
    },
    {
      "id": "1304786",
      "postDate": "05/12/2021 21:57:35",
      "content": "<p><a href=\"https://www.kaggle.com/jpmiller\" target=\"_blank\">@jpmiller</a> The official metric uses the haversine method of computing the great circle distance, with <code>RadiusEarthInMeters = 6367000</code></p>",
      "rawMarkdown": "jpmiller The official metric uses the haversine method of computing the great circle distance, with `RadiusEarthInMeters = 6367000`",
      "votes": null
    },
    {
      "id": "1304788",
      "postDate": "05/12/2021 21:59:11",
      "content": "<p>I can dig into that if we get to a point where it can be shown to matter, but I don't think we're there yet.</p>",
      "rawMarkdown": "I can dig into that if we get to a point where it can be shown to matter, but I don't think we're there yet.",
      "votes": null
    },
    {
      "id": "1306042",
      "postDate": "05/13/2021 15:34:29",
      "content": "<p>It does not appear to matter, either for the competition or in absolute terms. I compared two points where the lat and long differ at the 5th decimal point, which is typical for the baseline values.<br>\n<code>(37.42828, -122.07254), (37.42827, -122.07253)</code></p>\n<p>Haversine as described above shows a distance of <code>1.41902m</code>. Vincenty, which is considered to be more accurate, shows <code>1.41957m</code>. So, sub-mm differences only in this range.</p>\n<p>Thanks for looking into it!</p>",
      "rawMarkdown": "It does not appear to matter, either for the competition or in absolute terms. I compared two points where the lat and long differ at the 5th decimal point, which is typical for the baseline values.\n`(37.42828, -122.07254), (37.42827, -122.07253)`\n\nHaversine as described above shows a distance of `1.41902m`. Vincenty, which is considered to be more accurate, shows `1.41957m`. So, sub-mm differences only in this range.\n\nThanks for looking into it!",
      "votes": null
    },
    {
      "id": "1306562",
      "postDate": "05/13/2021 21:59:01",
      "content": "<p><a href=\"https://www.kaggle.com/jpmiller\" target=\"_blank\">@jpmiller</a> thanks for reporting this:)</p>",
      "rawMarkdown": "jpmiller thanks for reporting this:)",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1304775,
      "author_name": "sohier",
      "author_url": "",
      "post_date": "05/12/2021 21:29:29",
      "content": "<p>I'd have to double check, but I believe it's the <a href=\"https://en.wikipedia.org/wiki/Great-circle_distance\" target=\"_blank\">great circle distance</a>. All plausible methods give very similar results for gaps this small anyway.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1304777,
          "author_name": "jpmiller",
          "author_url": "",
          "post_date": "05/12/2021 21:36:59",
          "content": "<p>Cool. It might be helpful to know which formula is used for great circle and what constants are used in the formula. Like you say, the difference might not affect the score.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1304786,
          "author_name": "wcukierski",
          "author_url": "",
          "post_date": "05/12/2021 21:57:35",
          "content": "<p><a href=\"https://www.kaggle.com/jpmiller\" target=\"_blank\">@jpmiller</a> The official metric uses the haversine method of computing the great circle distance, with <code>RadiusEarthInMeters = 6367000</code></p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1304788,
          "author_name": "sohier",
          "author_url": "",
          "post_date": "05/12/2021 21:59:11",
          "content": "<p>I can dig into that if we get to a point where it can be shown to matter, but I don't think we're there yet.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1306042,
          "author_name": "jpmiller",
          "author_url": "",
          "post_date": "05/13/2021 15:34:29",
          "content": "<p>It does not appear to matter, either for the competition or in absolute terms. I compared two points where the lat and long differ at the 5th decimal point, which is typical for the baseline values.<br>\n<code>(37.42828, -122.07254), (37.42827, -122.07253)</code></p>\n<p>Haversine as described above shows a distance of <code>1.41902m</code>. Vincenty, which is considered to be more accurate, shows <code>1.41957m</code>. So, sub-mm differences only in this range.</p>\n<p>Thanks for looking into it!</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1306562,
          "author_name": "emaerthin",
          "author_url": "",
          "post_date": "05/13/2021 21:59:01",
          "content": "<p><a href=\"https://www.kaggle.com/jpmiller\" target=\"_blank\">@jpmiller</a> thanks for reporting this:)</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1304768": "The eval page says  \"the horizontal distance (in meters) is computed between the predicted lat/lng and the ground truth lat/lng\". How is horizontal distance computed?",
    "1304775": "I'd have to double check, but I believe it's the [great circle distance](https://en.wikipedia.org/wiki/Great-circle_distance). All plausible methods give very similar results for gaps this small anyway.",
    "1304777": "Cool. It might be helpful to know which formula is used for great circle and what constants are used in the formula. Like you say, the difference might not affect the score.",
    "1304786": "jpmiller The official metric uses the haversine method of computing the great circle distance, with `RadiusEarthInMeters = 6367000`",
    "1304788": "I can dig into that if we get to a point where it can be shown to matter, but I don't think we're there yet.",
    "1306042": "It does not appear to matter, either for the competition or in absolute terms. I compared two points where the lat and long differ at the 5th decimal point, which is typical for the baseline values.\n`(37.42828, -122.07254), (37.42827, -122.07253)`\n\nHaversine as described above shows a distance of `1.41902m`. Vincenty, which is considered to be more accurate, shows `1.41957m`. So, sub-mm differences only in this range.\n\nThanks for looking into it!",
    "1306562": "jpmiller thanks for reporting this:)"
  },
  "source": "meta"
}