{
  "id": 346321,
  "title": "Does the last/largest 'Trackus_Index' signify the end of the race?",
  "url": "/competitions/big-data-derby-2022/discussion/346321",
  "author_name": "",
  "post_date": "2022-08-18T22:26:00.177260400Z",
  "votes": 11,
  "comment_count": 14,
  "views": 0,
  "content": "<p>Without final results in the data, we will have to derive it based on the spatial tracking data.<br>\nCan we assume that the last/largest 'Trackus_Index' value signifies when the first horse has crossed the finish line. Or is it when the last horse has crossed?<br>\nFor instance, on July 27, 2019 at Saratoga, Race Number 3…<br>\nbased on just a visual representation of the tracking data…<br>\n…on the last/largest 'Trackus_Index' of 253, it appears that horse #7 is in the lead, followed by #2 and then #9.<br>\nIs this an accurate or approximate finish?</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1461105%2Fd58cbf146f049ef9d4d8f9f619f526f0%2FScreen%20Shot%202022-08-18%20at%203.25.30%20PM.png?generation=1660861548013492&amp;alt=media\" alt=\"\"></p>",
  "messages": [
    {
      "id": "1905285",
      "postDate": "08/18/2022 22:26:00",
      "content": "<p>Without final results in the data, we will have to derive it based on the spatial tracking data.<br>\nCan we assume that the last/largest 'Trackus_Index' value signifies when the first horse has crossed the finish line. Or is it when the last horse has crossed?<br>\nFor instance, on July 27, 2019 at Saratoga, Race Number 3…<br>\nbased on just a visual representation of the tracking data…<br>\n…on the last/largest 'Trackus_Index' of 253, it appears that horse #7 is in the lead, followed by #2 and then #9.<br>\nIs this an accurate or approximate finish?</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1461105%2Fd58cbf146f049ef9d4d8f9f619f526f0%2FScreen%20Shot%202022-08-18%20at%203.25.30%20PM.png?generation=1660861548013492&amp;alt=media\" alt=\"\"></p>",
      "rawMarkdown": "Without final results in the data, we will have to derive it based on the spatial tracking data.\nCan we assume that the last/largest 'Trackus_Index' value signifies when the first horse has crossed the finish line. Or is it when the last horse has crossed?\nFor instance, on July 27, 2019 at Saratoga, Race Number 3...\nbased on just a visual representation of the tracking data...\n...on the last/largest 'Trackus_Index' of 253, it appears that horse #7 is in the lead, followed by #2 and then #9.\nIs this an accurate or approximate finish?\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1461105%2Fd58cbf146f049ef9d4d8f9f619f526f0%2FScreen%20Shot%202022-08-18%20at%203.25.30%20PM.png?generation=1660861548013492&alt=media)",
      "votes": null
    },
    {
      "id": "1905366",
      "postDate": "08/19/2022 02:44:07",
      "content": "<p>I did similar study using 2019-01-01 Aqueduct Race 1 results. </p>\n<p>(1) I only checked one race result but when I plot lat/long just like you did above, the winner has the longest line. Since \"Trakus_index\" is signified as \"time\", whichever the horse goes the further at the last (largest) Trakus_index seemed to be the winner in my study. I just checked \"July 27, 2019 at Saratoga, Race Number 3\", I confirmed that the results are 7-2-9 as you saw.<br>\n(2) But I don't know if \"the last/largest 'Trackus_Index' value signifies when the first horse has crossed the finish line\" is correct or not. The description of the data said \"<strong>trakus_index - The common collection of point of the lat / long of the horse in the race passed as an integer. From what we can tell, it's collected every 0.25 seconds.</strong>\"  That means Trakus_Index of 253 = 63.25 seconds. But when I checked the winning time on one site, it said the winning time of this race is 1:02:09 which is less than 63.25 seconds. So maybe the finish line is earlier than at Trakus_index of 253? </p>",
      "rawMarkdown": "I did similar study using 2019-01-01 Aqueduct Race 1 results. \n\n(1) I only checked one race result but when I plot lat/long just like you did above, the winner has the longest line. Since \"Trakus_index\" is signified as \"time\", whichever the horse goes the further at the last (largest) Trakus_index seemed to be the winner in my study. I just checked \"July 27, 2019 at Saratoga, Race Number 3\", I confirmed that the results are 7-2-9 as you saw.\n(2) But I don't know if \"the last/largest 'Trackus_Index' value signifies when the first horse has crossed the finish line\" is correct or not. The description of the data said \"**trakus_index - The common collection of point of the lat / long of the horse in the race passed as an integer. From what we can tell, it's collected every 0.25 seconds.**\"  That means Trakus_Index of 253 = 63.25 seconds. But when I checked the winning time on one site, it said the winning time of this race is 1:02:09 which is less than 63.25 seconds. So maybe the finish line is earlier than at Trakus_index of 253?",
      "votes": null
    },
    {
      "id": "1905766",
      "postDate": "08/19/2022 09:26:00",
      "content": "<p>I did not get so far yet, but I would take the run_up_distance  + race_distance and that would be the endline. The winning time is shorter than the trackus_time because they only start timing the horses after the first one reached the run_up_distance.</p>",
      "rawMarkdown": "I did not get so far yet, but I would take the run_up_distance  + race_distance and that would be the endline. The winning time is shorter than the trackus_time because they only start timing the horses after the first one reached the run_up_distance.",
      "votes": null
    },
    {
      "id": "1907522",
      "postDate": "08/20/2022 21:12:53",
      "content": "<p>Probably trakus_index starts at the beginning and you have to take run_up_distance + race_distance ?</p>",
      "rawMarkdown": "Probably trakus_index starts at the beginning and you have to take run_up_distance + race_distance ?",
      "votes": null
    },
    {
      "id": "1908418",
      "postDate": "08/21/2022 16:47:45",
      "content": "<p>Thank you for the information!  I guess I didn't understand about run_up_distance until you provided the comment and started reading about it. I didn't know the race begins when the first horse reaches the run_up_distance.  That is very interesting because if there are two races with the same winning time, the horse which doesn't start well is faster.</p>\n<p>I assume that the trackus_time starts when the gate opens.  I am still 100% sure that the last/largest tracks_time is the time when the first horse crosses the line but I am hoping at least it is a very good approximation…</p>",
      "rawMarkdown": "Thank you for the information!  I guess I didn't understand about run_up_distance until you provided the comment and started reading about it. I didn't know the race begins when the first horse reaches the run_up_distance.  That is very interesting because if there are two races with the same winning time, the horse which doesn't start well is faster.\n\nI assume that the trackus_time starts when the gate opens.  I am still 100% sure that the last/largest tracks_time is the time when the first horse crosses the line but I am hoping at least it is a very good approximation...",
      "votes": null
    },
    {
      "id": "1908421",
      "postDate": "08/21/2022 16:53:38",
      "content": "<p>Thanks Todor!  I also read Adrian's comment above and I learned the timing of the race doesn't begin till the first horse cross the run_up_distance.  <br>\nI actually thought run_up_distance is the distance for horses to reach to the gate before start of the race.  I was very wrong.  </p>\n<p>As I wrote above, I am still not sure that the largest trackus_time is the time the first horse crosses the line but I am hoping it can at least tell an approximate finish. </p>",
      "rawMarkdown": "Thanks Todor!  I also read Adrian's comment above and I learned the timing of the race doesn't begin till the first horse cross the run_up_distance.  \nI actually thought run_up_distance is the distance for horses to reach to the gate before start of the race.  I was very wrong.  \n\nAs I wrote above, I am still not sure that the largest trackus_time is the time the first horse crosses the line but I am hoping it can at least tell an approximate finish.",
      "votes": null
    },
    {
      "id": "1908424",
      "postDate": "08/21/2022 16:58:12",
      "content": "<p>Sorry, didn't see I'm repeating the same answer … I'm new to the competition also and trying to figure out what to do ;) </p>",
      "rawMarkdown": "Sorry, didn't see I'm repeating the same answer ... I'm new to the competition also and trying to figure out what to do ;)",
      "votes": null
    },
    {
      "id": "1908526",
      "postDate": "08/21/2022 18:37:12",
      "content": "<p>You don't need to apologize and I also didn't mean that way anyway.  I'm also new and it is intimidating for me to jump in the discussions.  But I am already learning a lot about horse races and pretty exciting.  Best of luck to you!  😃</p>",
      "rawMarkdown": "You don't need to apologize and I also didn't mean that way anyway.  I'm also new and it is intimidating for me to jump in the discussions.  But I am already learning a lot about horse races and pretty exciting.  Best of luck to you!  😃",
      "votes": null
    },
    {
      "id": "1908653",
      "postDate": "08/21/2022 21:08:09",
      "content": "<p>Presumably they wouldn't stop the tracking when the <em>first</em> horse crosses the line, since there can be bets to place in top 3. Most of their own data seems to track at least the top 4 finishers.</p>",
      "rawMarkdown": "Presumably they wouldn't stop the tracking when the *first* horse crosses the line, since there can be bets to place in top 3. Most of their own data seems to track at least the top 4 finishers.",
      "votes": null
    },
    {
      "id": "1908733",
      "postDate": "08/22/2022 00:55:46",
      "content": "<p>Looking at the results of the first race and looking at Google Maps for the actual longitude/latitude, it doesn't seem to be easy to see the finishing line on Google Maps, but there's a podium at one point on the track which might be it? Regardless, in that case all of the final positions are <em>beyond</em> the finish line, so it's possible the tracking ended some time after the race was over.</p>",
      "rawMarkdown": "Looking at the results of the first race and looking at Google Maps for the actual longitude/latitude, it doesn't seem to be easy to see the finishing line on Google Maps, but there's a podium at one point on the track which might be it? Regardless, in that case all of the final positions are *beyond* the finish line, so it's possible the tracking ended some time after the race was over.",
      "votes": null
    },
    {
      "id": "1909271",
      "postDate": "08/22/2022 13:32:10",
      "content": "<p>I found several races where it is clear that some horses finished the race and stopped running (their speed is 0), while other horses are still running. For example, race number 2 on 2019-09-18 at Belmont which had 8 horses.<br>\nHorse number 5 is leading the race starting from trakus index 261, and is the first to finish 6000 meters and also the first to speed down to 0 m/s. My conclusion is that horse number 5 won the race, followed by horses numbered 3, 2, 1, 8, 7, 4 and finally horse number 6.<br>\nHowever, if you look at the horses positions at the last trakus_index (333), it appears that horse 6 is ahead of all other horses, followed by horses numbered 2, 3, 5, 8, 1, 7 and finally horse number 4.<br>\nIt is thus clear that the horses positions at the last trakus_index do not necessarily indicate their winning position.<br>\nI can't tell for sure where the finish line is, but I assume it is a not far from where the horses begin to slow down.<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6272010%2F75e6f0e0b58e89dab99bbfe781e55c3f%2Fdistance_vs_trakus_indes.png?generation=1661174899642119&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6272010%2F118643c7318c5f0ec52a6395ca4b3dfb%2Fspeed_vs_trakus_index.png?generation=1661174936973315&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6272010%2F7cacf94b69494688eeecbbc257f37782%2Flat_long.png?generation=1661175112221870&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6272010%2F89edc620a621e348b1c2ac17b3d7d232%2Frace_position.png?generation=1661174923992325&amp;alt=media\" alt=\"\"></p>",
      "rawMarkdown": "I found several races where it is clear that some horses finished the race and stopped running (their speed is 0), while other horses are still running. For example, race number 2 on 2019-09-18 at Belmont which had 8 horses.\nHorse number 5 is leading the race starting from trakus index 261, and is the first to finish 6000 meters and also the first to speed down to 0 m/s. My conclusion is that horse number 5 won the race, followed by horses numbered 3, 2, 1, 8, 7, 4 and finally horse number 6.\nHowever, if you look at the horses positions at the last trakus_index (333), it appears that horse 6 is ahead of all other horses, followed by horses numbered 2, 3, 5, 8, 1, 7 and finally horse number 4.\nIt is thus clear that the horses positions at the last trakus_index do not necessarily indicate their winning position.\nI can't tell for sure where the finish line is, but I assume it is a not far from where the horses begin to slow down.\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6272010%2F75e6f0e0b58e89dab99bbfe781e55c3f%2Fdistance_vs_trakus_indes.png?generation=1661174899642119&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6272010%2F118643c7318c5f0ec52a6395ca4b3dfb%2Fspeed_vs_trakus_index.png?generation=1661174936973315&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6272010%2F7cacf94b69494688eeecbbc257f37782%2Flat_long.png?generation=1661175112221870&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6272010%2F89edc620a621e348b1c2ac17b3d7d232%2Frace_position.png?generation=1661174923992325&alt=media)",
      "votes": null
    },
    {
      "id": "1909331",
      "postDate": "08/22/2022 14:39:44",
      "content": "<p>You can look on the NYRA website for historical results to see which horse won a race. Your order of winners is correct for the  race you named. It seems that trakus ends only some time after the race has ended, perhaps it is even stopped manually.</p>",
      "rawMarkdown": "You can look on the NYRA website for historical results to see which horse won a race. Your order of winners is correct for the  race you named. It seems that trakus ends only some time after the race has ended, perhaps it is even stopped manually.",
      "votes": null
    },
    {
      "id": "1909386",
      "postDate": "08/22/2022 15:22:35",
      "content": "<p>Per Trakus: <br>\n\"Horses are tracked during pre-race parade through the entire live race including the post-race cool down.<br>\nHorses are tracked on and off the racetrack surface(s).\"<br>\nI can't speak to where the provided coordinates begin or end relative to the race itself.</p>",
      "rawMarkdown": "Per Trakus: \n\"Horses are tracked during pre-race parade through the entire live race including the post-race cool down.\nHorses are tracked on and off the racetrack surface(s).\"\nI can't speak to where the provided coordinates begin or end relative to the race itself.",
      "votes": null
    },
    {
      "id": "1915919",
      "postDate": "08/27/2022 13:28:27",
      "content": "<p>Here is a notebook that will calculate determine the tracks index the horses crosses the finish line at Saratoga for one race show the finish order.</p>\n<p><a href=\"https://www.kaggle.com/code/mlconsult/updated-get-finish-postion-by-horse-coordinates\" target=\"_blank\">https://www.kaggle.com/code/mlconsult/updated-get-finish-postion-by-horse-coordinates</a></p>",
      "rawMarkdown": "Here is a notebook that will calculate determine the tracks index the horses crosses the finish line at Saratoga for one race show the finish order.\n\nhttps://www.kaggle.com/code/mlconsult/updated-get-finish-postion-by-horse-coordinates",
      "votes": null
    },
    {
      "id": "2023148",
      "postDate": "11/09/2022 15:06:14",
      "content": "<p>It seems, that the trakus device stops recording 20 trakus indexes (5 seconds) after the last horse reaches the finish line.</p>\n<p>In our model of the finish line (see our notebook Big Data Derby 2022: Statistical model, <a href=\"https://www.kaggle.com/code/adminpretaktovaniesk/big-data-derby-2022-statistical-model\" target=\"_blank\">https://www.kaggle.com/code/adminpretaktovaniesk/big-data-derby-2022-statistical-model</a>) we see that records end approximately 20 trakus indexes after the last horse crosses the finish line.</p>",
      "rawMarkdown": "It seems, that the trakus device stops recording 20 trakus indexes (5 seconds) after the last horse reaches the finish line.\n\nIn our model of the finish line (see our notebook Big Data Derby 2022: Statistical model, https://www.kaggle.com/code/adminpretaktovaniesk/big-data-derby-2022-statistical-model) we see that records end approximately 20 trakus indexes after the last horse crosses the finish line.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1905366,
      "author_name": "hkawanishi",
      "author_url": "",
      "post_date": "08/19/2022 02:44:07",
      "content": "<p>I did similar study using 2019-01-01 Aqueduct Race 1 results. </p>\n<p>(1) I only checked one race result but when I plot lat/long just like you did above, the winner has the longest line. Since \"Trakus_index\" is signified as \"time\", whichever the horse goes the further at the last (largest) Trakus_index seemed to be the winner in my study. I just checked \"July 27, 2019 at Saratoga, Race Number 3\", I confirmed that the results are 7-2-9 as you saw.<br>\n(2) But I don't know if \"the last/largest 'Trackus_Index' value signifies when the first horse has crossed the finish line\" is correct or not. The description of the data said \"<strong>trakus_index - The common collection of point of the lat / long of the horse in the race passed as an integer. From what we can tell, it's collected every 0.25 seconds.</strong>\"  That means Trakus_Index of 253 = 63.25 seconds. But when I checked the winning time on one site, it said the winning time of this race is 1:02:09 which is less than 63.25 seconds. So maybe the finish line is earlier than at Trakus_index of 253? </p>",
      "votes": null,
      "replies": [
        {
          "id": 1907522,
          "author_name": "tmishinev",
          "author_url": "",
          "post_date": "08/20/2022 21:12:53",
          "content": "<p>Probably trakus_index starts at the beginning and you have to take run_up_distance + race_distance ?</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1908421,
          "author_name": "hkawanishi",
          "author_url": "",
          "post_date": "08/21/2022 16:53:38",
          "content": "<p>Thanks Todor!  I also read Adrian's comment above and I learned the timing of the race doesn't begin till the first horse cross the run_up_distance.  <br>\nI actually thought run_up_distance is the distance for horses to reach to the gate before start of the race.  I was very wrong.  </p>\n<p>As I wrote above, I am still not sure that the largest trackus_time is the time the first horse crosses the line but I am hoping it can at least tell an approximate finish. </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1908424,
          "author_name": "tmishinev",
          "author_url": "",
          "post_date": "08/21/2022 16:58:12",
          "content": "<p>Sorry, didn't see I'm repeating the same answer … I'm new to the competition also and trying to figure out what to do ;) </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1908526,
          "author_name": "hkawanishi",
          "author_url": "",
          "post_date": "08/21/2022 18:37:12",
          "content": "<p>You don't need to apologize and I also didn't mean that way anyway.  I'm also new and it is intimidating for me to jump in the discussions.  But I am already learning a lot about horse races and pretty exciting.  Best of luck to you!  😃</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1908653,
          "author_name": "themarkgreen",
          "author_url": "",
          "post_date": "08/21/2022 21:08:09",
          "content": "<p>Presumably they wouldn't stop the tracking when the <em>first</em> horse crosses the line, since there can be bets to place in top 3. Most of their own data seems to track at least the top 4 finishers.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1908733,
          "author_name": "themarkgreen",
          "author_url": "",
          "post_date": "08/22/2022 00:55:46",
          "content": "<p>Looking at the results of the first race and looking at Google Maps for the actual longitude/latitude, it doesn't seem to be easy to see the finishing line on Google Maps, but there's a podium at one point on the track which might be it? Regardless, in that case all of the final positions are <em>beyond</em> the finish line, so it's possible the tracking ended some time after the race was over.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1905766,
      "author_name": "louisbunuel",
      "author_url": "",
      "post_date": "08/19/2022 09:26:00",
      "content": "<p>I did not get so far yet, but I would take the run_up_distance  + race_distance and that would be the endline. The winning time is shorter than the trackus_time because they only start timing the horses after the first one reached the run_up_distance.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1908418,
          "author_name": "hkawanishi",
          "author_url": "",
          "post_date": "08/21/2022 16:47:45",
          "content": "<p>Thank you for the information!  I guess I didn't understand about run_up_distance until you provided the comment and started reading about it. I didn't know the race begins when the first horse reaches the run_up_distance.  That is very interesting because if there are two races with the same winning time, the horse which doesn't start well is faster.</p>\n<p>I assume that the trackus_time starts when the gate opens.  I am still 100% sure that the last/largest tracks_time is the time when the first horse crosses the line but I am hoping at least it is a very good approximation…</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1909271,
      "author_name": "shapital",
      "author_url": "",
      "post_date": "08/22/2022 13:32:10",
      "content": "<p>I found several races where it is clear that some horses finished the race and stopped running (their speed is 0), while other horses are still running. For example, race number 2 on 2019-09-18 at Belmont which had 8 horses.<br>\nHorse number 5 is leading the race starting from trakus index 261, and is the first to finish 6000 meters and also the first to speed down to 0 m/s. My conclusion is that horse number 5 won the race, followed by horses numbered 3, 2, 1, 8, 7, 4 and finally horse number 6.<br>\nHowever, if you look at the horses positions at the last trakus_index (333), it appears that horse 6 is ahead of all other horses, followed by horses numbered 2, 3, 5, 8, 1, 7 and finally horse number 4.<br>\nIt is thus clear that the horses positions at the last trakus_index do not necessarily indicate their winning position.<br>\nI can't tell for sure where the finish line is, but I assume it is a not far from where the horses begin to slow down.<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6272010%2F75e6f0e0b58e89dab99bbfe781e55c3f%2Fdistance_vs_trakus_indes.png?generation=1661174899642119&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6272010%2F118643c7318c5f0ec52a6395ca4b3dfb%2Fspeed_vs_trakus_index.png?generation=1661174936973315&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6272010%2F7cacf94b69494688eeecbbc257f37782%2Flat_long.png?generation=1661175112221870&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6272010%2F89edc620a621e348b1c2ac17b3d7d232%2Frace_position.png?generation=1661174923992325&amp;alt=media\" alt=\"\"></p>",
      "votes": null,
      "replies": [
        {
          "id": 1909331,
          "author_name": "themarkgreen",
          "author_url": "",
          "post_date": "08/22/2022 14:39:44",
          "content": "<p>You can look on the NYRA website for historical results to see which horse won a race. Your order of winners is correct for the  race you named. It seems that trakus ends only some time after the race has ended, perhaps it is even stopped manually.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1909386,
          "author_name": "stevenr59",
          "author_url": "",
          "post_date": "08/22/2022 15:22:35",
          "content": "<p>Per Trakus: <br>\n\"Horses are tracked during pre-race parade through the entire live race including the post-race cool down.<br>\nHorses are tracked on and off the racetrack surface(s).\"<br>\nI can't speak to where the provided coordinates begin or end relative to the race itself.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1915919,
      "author_name": "mlconsult",
      "author_url": "",
      "post_date": "08/27/2022 13:28:27",
      "content": "<p>Here is a notebook that will calculate determine the tracks index the horses crosses the finish line at Saratoga for one race show the finish order.</p>\n<p><a href=\"https://www.kaggle.com/code/mlconsult/updated-get-finish-postion-by-horse-coordinates\" target=\"_blank\">https://www.kaggle.com/code/mlconsult/updated-get-finish-postion-by-horse-coordinates</a></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2023148,
      "author_name": "adminpretaktovaniesk",
      "author_url": "",
      "post_date": "11/09/2022 15:06:14",
      "content": "<p>It seems, that the trakus device stops recording 20 trakus indexes (5 seconds) after the last horse reaches the finish line.</p>\n<p>In our model of the finish line (see our notebook Big Data Derby 2022: Statistical model, <a href=\"https://www.kaggle.com/code/adminpretaktovaniesk/big-data-derby-2022-statistical-model\" target=\"_blank\">https://www.kaggle.com/code/adminpretaktovaniesk/big-data-derby-2022-statistical-model</a>) we see that records end approximately 20 trakus indexes after the last horse crosses the finish line.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1905285": "Without final results in the data, we will have to derive it based on the spatial tracking data.\nCan we assume that the last/largest 'Trackus_Index' value signifies when the first horse has crossed the finish line. Or is it when the last horse has crossed?\nFor instance, on July 27, 2019 at Saratoga, Race Number 3...\nbased on just a visual representation of the tracking data...\n...on the last/largest 'Trackus_Index' of 253, it appears that horse #7 is in the lead, followed by #2 and then #9.\nIs this an accurate or approximate finish?\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1461105%2Fd58cbf146f049ef9d4d8f9f619f526f0%2FScreen%20Shot%202022-08-18%20at%203.25.30%20PM.png?generation=1660861548013492&alt=media)",
    "1905366": "I did similar study using 2019-01-01 Aqueduct Race 1 results. \n\n(1) I only checked one race result but when I plot lat/long just like you did above, the winner has the longest line. Since \"Trakus_index\" is signified as \"time\", whichever the horse goes the further at the last (largest) Trakus_index seemed to be the winner in my study. I just checked \"July 27, 2019 at Saratoga, Race Number 3\", I confirmed that the results are 7-2-9 as you saw.\n(2) But I don't know if \"the last/largest 'Trackus_Index' value signifies when the first horse has crossed the finish line\" is correct or not. The description of the data said \"**trakus_index - The common collection of point of the lat / long of the horse in the race passed as an integer. From what we can tell, it's collected every 0.25 seconds.**\"  That means Trakus_Index of 253 = 63.25 seconds. But when I checked the winning time on one site, it said the winning time of this race is 1:02:09 which is less than 63.25 seconds. So maybe the finish line is earlier than at Trakus_index of 253?",
    "1905766": "I did not get so far yet, but I would take the run_up_distance  + race_distance and that would be the endline. The winning time is shorter than the trackus_time because they only start timing the horses after the first one reached the run_up_distance.",
    "1907522": "Probably trakus_index starts at the beginning and you have to take run_up_distance + race_distance ?",
    "1908418": "Thank you for the information!  I guess I didn't understand about run_up_distance until you provided the comment and started reading about it. I didn't know the race begins when the first horse reaches the run_up_distance.  That is very interesting because if there are two races with the same winning time, the horse which doesn't start well is faster.\n\nI assume that the trackus_time starts when the gate opens.  I am still 100% sure that the last/largest tracks_time is the time when the first horse crosses the line but I am hoping at least it is a very good approximation...",
    "1908421": "Thanks Todor!  I also read Adrian's comment above and I learned the timing of the race doesn't begin till the first horse cross the run_up_distance.  \nI actually thought run_up_distance is the distance for horses to reach to the gate before start of the race.  I was very wrong.  \n\nAs I wrote above, I am still not sure that the largest trackus_time is the time the first horse crosses the line but I am hoping it can at least tell an approximate finish.",
    "1908424": "Sorry, didn't see I'm repeating the same answer ... I'm new to the competition also and trying to figure out what to do ;)",
    "1908526": "You don't need to apologize and I also didn't mean that way anyway.  I'm also new and it is intimidating for me to jump in the discussions.  But I am already learning a lot about horse races and pretty exciting.  Best of luck to you!  😃",
    "1908653": "Presumably they wouldn't stop the tracking when the *first* horse crosses the line, since there can be bets to place in top 3. Most of their own data seems to track at least the top 4 finishers.",
    "1908733": "Looking at the results of the first race and looking at Google Maps for the actual longitude/latitude, it doesn't seem to be easy to see the finishing line on Google Maps, but there's a podium at one point on the track which might be it? Regardless, in that case all of the final positions are *beyond* the finish line, so it's possible the tracking ended some time after the race was over.",
    "1909271": "I found several races where it is clear that some horses finished the race and stopped running (their speed is 0), while other horses are still running. For example, race number 2 on 2019-09-18 at Belmont which had 8 horses.\nHorse number 5 is leading the race starting from trakus index 261, and is the first to finish 6000 meters and also the first to speed down to 0 m/s. My conclusion is that horse number 5 won the race, followed by horses numbered 3, 2, 1, 8, 7, 4 and finally horse number 6.\nHowever, if you look at the horses positions at the last trakus_index (333), it appears that horse 6 is ahead of all other horses, followed by horses numbered 2, 3, 5, 8, 1, 7 and finally horse number 4.\nIt is thus clear that the horses positions at the last trakus_index do not necessarily indicate their winning position.\nI can't tell for sure where the finish line is, but I assume it is a not far from where the horses begin to slow down.\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6272010%2F75e6f0e0b58e89dab99bbfe781e55c3f%2Fdistance_vs_trakus_indes.png?generation=1661174899642119&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6272010%2F118643c7318c5f0ec52a6395ca4b3dfb%2Fspeed_vs_trakus_index.png?generation=1661174936973315&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6272010%2F7cacf94b69494688eeecbbc257f37782%2Flat_long.png?generation=1661175112221870&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6272010%2F89edc620a621e348b1c2ac17b3d7d232%2Frace_position.png?generation=1661174923992325&alt=media)",
    "1909331": "You can look on the NYRA website for historical results to see which horse won a race. Your order of winners is correct for the  race you named. It seems that trakus ends only some time after the race has ended, perhaps it is even stopped manually.",
    "1909386": "Per Trakus: \n\"Horses are tracked during pre-race parade through the entire live race including the post-race cool down.\nHorses are tracked on and off the racetrack surface(s).\"\nI can't speak to where the provided coordinates begin or end relative to the race itself.",
    "1915919": "Here is a notebook that will calculate determine the tracks index the horses crosses the finish line at Saratoga for one race show the finish order.\n\nhttps://www.kaggle.com/code/mlconsult/updated-get-finish-postion-by-horse-coordinates",
    "2023148": "It seems, that the trakus device stops recording 20 trakus indexes (5 seconds) after the last horse reaches the finish line.\n\nIn our model of the finish line (see our notebook Big Data Derby 2022: Statistical model, https://www.kaggle.com/code/adminpretaktovaniesk/big-data-derby-2022-statistical-model) we see that records end approximately 20 trakus indexes after the last horse crosses the finish line."
  },
  "source": "meta"
}