Analyzing ATG Race Archive
Analyzing ATG Race Archive Data
Given pasted lopparkiv data for one horse, immediately parse each row into this structure and compute the summary:
Datum | Bana | Lopp | Distans | Spår | Skor | Plac. | Vinst | Odds | Km-tid
Then output:
- Starts / wins / places (top 3) / disqualifications (d, str)
- Win % and place %
- Total prize money and average per start
- Form trend (last 5 starts vs. earlier)
- Verdict with 2-3 concrete observations
Date: YYMMDD format. 261115 = 2026-11-15.
Bana + lopp: Bergsåker-9 = Bergsåker, race 9.
Distans / spår code: Concatenated string such as 2140, 2640, 1640. Interpret the first 4 digits as distance (meters): 2140, 2640, 1640. Sprint ≈ 1640, medeldistans ≈ 2140, långdistans ≈ 2640. Treat any trailing digits as start-method/track info and flag uncertainty rather than guessing.
Plac. (placement):
| Value | Meaning |
|---|---|
1–12 | Finishing position |
d | Distanced (disqualified for gallop) |
str | Struken (scratched / withdrawn) |
0 | No placement / no prize |
Skor (shoes): a = barefoot behind, g = barefoot front, ag = barefoot all round, blank = shod. State this as a convention and verify if shoe-change analysis is critical.
Odds: Decimal odds (e.g. 52,31 = 52.31x). Low = market favorite, high = outsider.
Km-tid: Kilometer time, e.g. 14,7 = 1:14.7 per km. Lower is faster.
Vinst: Prize money in SEK for that start.
Progress:
- [ ] Step 1: Parse all rows; separate real starts from scratchings (str)
- [ ] Step 2: Compute core stats (starts, wins, places, DQs)
- [ ] Step 3: Split into recent form (last 5) vs. earlier
- [ ] Step 4: Break down by bana, distance, shoes, and driver
- [ ] Step 5: Odds vs. result: find value and market misjudgments
- [ ] Step 6: Write verdict + betting angle
Step 1: Clean the data
- Exclude
strrows from performance stats (horse never raced) but note them. - Count
das a start with a failed result (gallop/break). - Sort chronologically, newest first as in source.
Step 2: Core stats
- Starts = rows excluding
str - Win % = wins / starts
- Place % = top-3 / starts
- DQ rate =
d/ starts. Above ~20% signals an unreliability risk.
Step 3: Form trend
Compare last 5 starts to the previous block. Flag: improving, stable, declining, or erratic.
Step 4: Segment analysis
Group results by:
- Bana (some horses are track specialists)
- Distance class (1640 / 2140 / 2640)
- Shoes (a / g / ag / none)
- Driver (changes in driver often matter)
Only draw conclusions from segments with ≥3 starts; otherwise label as "small sample".
Step 5: Odds vs. outcome
- Wins at high odds = hidden form or luck; check whether it repeats.
- Losses at low odds = overbet; consider fading next time.
- Identify what odds range the horse tends to win at.
Step 6: Verdict
State a clear view: strong form / in form / inconsistent / avoid, with the reason and the conditions under which the horse is a good bet.
Input (excerpt):
260925 Umåker-4 2140 0 0 1500 Henrik Svensson 15,86 1 2 15,6 a
260806 Bollnäs-7 2140 1 35000 Henrik Svensson 26,26 2 1 3,5 a
250718 Bollnäs-8 2140 4 12500 Henrik Svensson 5,04 3 15,3
Output:
Sample: 3 starts → 1 win, 1 second, 1 third (100% top-3 in sample)
Prize: 48 000 kr total
Pattern: All starts at 2140 m. Wins/places at odds 5-26 → market
underestimates this horse on medeldistans.
Note: Small sample (3). Extend with full archive before betting.
- Always report sample size next to any percentage.
- Weight recent starts higher: a horse's form from 2 years ago matters less than the last 6 months.
- Cross-check the driver: if the same driver/trainer appears in every row, driver analysis adds nothing; focus on distance, track, shoes instead.
- Use the ATG filters (distans, bana, spelform) to isolate a comparable race type before drawing conclusions.
- Flag unknown codes (e.g. ambiguous distance/spår strings) instead of inventing a meaning.
- Present results in a compact table, then 2-4 bullet insights.
- Counting
str(scratched) as a loss. The horse didn't race. - Ignoring disqualifications. Frequent
dmakes a horse a risky win-bet even with fast times. - Comparing km-tid across different distances/tracks without adjusting. Compare like with like.
- Overfitting to tiny samples, e.g. "wins on Bergsåker" from 2 starts.
- Treating high odds as proof of poor form. Odds reflect public money, not ability.
- Giving betting guarantees. Frame output as analysis, not certainty. Remind users to play responsibly (Spela med måtta).