Refining My Horse Racing AI: Removing Cheats and Surprising Insights
Discover how I tweaked my horse racing prediction AI by removing misleading data points and what I learned in the process.
In my quest to enhance my horse racing prediction AI, I've recently undertaken a significant revision. The system, built with the help of Claude, an AI assistant, aims to accurately predict racing outcomes based on historical data. As I evolve this tool, I’ve focused on eliminating certain data points that skewed performance results, leading to some interesting findings.
Understanding the AI's Purpose
This horse racing prediction AI is designed to calculate a score for each horse's likelihood to win based on past performance, with predictions finalized at 9:30 AM, well ahead of race time. The AI serves as an experimental platform for my betting strategy, allowing for backtesting to assess how effective these predictions would have been against real results from previous races.
The Methodology: Focus on Timeliness
One key principle I’ve implemented is ensuring that only information available prior to the 9:30 AM cutoff is utilized. Any data released after this point might provide an unfair advantage in historical testing, similar to a student peeking at answers on an exam. It’s crucial that this system reflects only what a player could realistically know.
Identifying and Removing 'Cheats'
During the process, I identified two major variables that were misleading. The first involved horse weight metrics. Originally, my AI included fluctuations in horse weight, a statistic that is officially disclosed shortly before race time. Using this data pointedly contravenes my foundational rule, so I opted to strip it from the model.
Comparative results from analysis of 6,111 races offered compelling evidence of minimal impact:
- Including horse weight: Return rate: 85.7%, Hit rate: 66.3%
- Excluding horse weight: Return rate: 86.0%, Hit rate: 67.4%
This adjustment showed slight improvement, challenging my initial assumption that weight was a strong predictor. It also illuminated a pivotal truth: earlier versions of my AI might have painted an overly optimistic picture of accuracy.
The Problem with Pedigree Data
The second variable I reconsidered was the racehorse’s pedigree data, specifically the lineage and recent racing experience of the horses. I noticed a bias where pedigree indicators seemed to correlate with horses that recently raced, an unfair advantage that skewed results. Thus, until I have a comprehensive collection of pedigree information across all historical races, I decided to exclude these metrics from my current model.
Weather Data: A False Hope?
In an attempt to enhance my predictions, I also explored adding weather conditions into the mix. My initial tests evaluated the impact of past rainfall and forecasts for upcoming races, particularly focusing on how horses perform on wet tracks. The version that included weather data exhibited a return rate at 87.2%, suggesting a potential benefit.
However, when isolating data specifically for rainy race days, prediction accuracy dipped slightly, hinting that the overall improvement was likely an anomaly. It is also plausible that by the morning of the race, track conditions were reflected in betting odds already, thus diminishing the predictive power of this data.
Lessons Learned
This experience underscored the importance of continually vetting every data point for its applicability and timing. Even as performance metrics appear to improve, one must consider the context in which these improvements occur. Key takeaways include:
- Always verify if data was accessible at the time of prediction.
- Determine whether apparent increases in prediction effectiveness translate to real-world scenarios.
- Understand that historical performance numbers are not necessarily indicative of future results.
Ultimately, while the current figures may lack the allure of dramatically high success rates, they build a sturdy foundation for trustworthy predictions when it matters most. As I continue to refine this AI, the commitment to accuracy remains paramount, ensuring that the journey is just as insightful as the outcomes.