The Draw Specialists
Abstract
This study examines the draw specialists using 301,353 matches drawn from the
Soccers football database. The baseline draw rate across 301,353 matches is
26.7%. All computation runs in Rust inside a .mars notebook (polars + plotters
— charts as inline SVG), and every table and figure is generated from the
extracted CSVs.
Keywords
Keywords: football, analysis, draws, mars, sqlite
Table of contents
Introduction
Some teams seem allergic to winning and losing — they just draw. This notebook measures draw rates across 301,353 finished matches: who draws most overall, who draws most when cast as the underdog, and whether teams draw more at home or on the road.
Opponent strength comes from the same chronological Elo sweep used in the giant-killing analysis (K = 20, +65 home advantage, 1500 base).
Methods
Data were extracted from the Soccers football database (packages/data) as CSV
snapshots: matches_full.
The analysis runs entirely in Rust inside the notebook: polars handles table
scans, joins and aggregations; plotters renders figures as inline SVG;
mars_table renders result tables.
Each code cell is kept to a single output so results can be read top to bottom.
Results
All figures and tables below are computed directly from the extracted data. Each code cell produces one output — a table, a chart, or a short text summary.
use polars::prelude::*;
let df = LazyCsvReader::new("data/matches_full.csv")
.finish()
.expect("failed to open data/matches_full.csv — run from the notebook directory")
.collect()
.expect("failed to collect CSV into DataFrame");
println!(
"loaded {} rows × {} cols | schema: {:?}",
df.height(),
df.width(),
df.get_column_names()
);
loaded 313022 rows × 11 cols | schema: ["id", "date", "season", "league", "country", "home", "away", "hg", "ag", "hid", "aid"]
// pull columns into plain Rust vectors (null-safe)
let s = |name: &str| df.column(name).unwrap_or_else(|_| panic!("missing {name}")).clone();
let col_str = |name: &str| -> Vec<String> {
s(name).str().unwrap().iter().map(|o| o.unwrap_or("").to_string()).collect()
};
let col_i64 = |name: &str| -> Vec<i64> {
let c = s(name);
let c = if c.dtype() == &DataType::Null { c.cast(&DataType::Int64).unwrap() } else { c };
c.i64().unwrap().iter().map(|o| o.unwrap_or(0)).collect()
};
let league_v = col_str("league");
let hid_v = col_i64("hid");
let aid_v = col_i64("aid");
let home_v = col_str("home");
let away_v = col_str("away");
let hg_v = col_i64("hg");
let ag_v = col_i64("ag");
let date_v = col_str("date");
let n = df.height();
println!("extracted {n} matches");
extracted 313022 matches
Elo sweep + draw accounting
One pass over every match: update ratings, and for each side record games played, draws, home/away draws, and draws while being the under-rated side.
use std::collections::HashMap;
const K: f64 = 20.0;
const HOME_ADV: f64 = 65.0;
let mut ord: Vec<usize> = (0..n).collect();
ord.sort_by(|&a, &b| date_v[a].cmp(&date_v[b]).then(a.cmp(&b)));
ord.retain(|&i| !league_v[i].to_lowercase().contains("friend"));
let mut elo: HashMap<i64, f64> = HashMap::new();
let mut names: HashMap<i64, String> = HashMap::new();
for i in 0..n {
names.entry(hid_v[i]).or_insert_with(|| home_v[i].clone());
names.entry(aid_v[i]).or_insert_with(|| away_v[i].clone());
}
#[derive(Default, Clone)]
struct Dr {
played: u64, draws: u64,
h_played: u64, h_draws: u64,
a_played: u64, a_draws: u64,
dog_games: u64, dog_draws: u64,
}
let mut dr: HashMap<i64, Dr> = HashMap::new();
let (mut tot, mut tot_d, mut h_d, mut a_d) = (0u64, 0u64, 0u64, 0u64);
for &i in &ord {
let (hid, aid) = (hid_v[i], aid_v[i]);
let drew = hg_v[i] == ag_v[i];
let rh = *elo.get(&hid).unwrap_or(&1500.0);
let ra = *elo.get(&aid).unwrap_or(&1500.0);
for (tid, is_home, opp_elo) in [(hid, true, ra), (aid, false, rh)] {
let my_elo = if is_home { rh } else { ra };
let e = dr.entry(tid).or_default();
e.played += 1;
if is_home { e.h_played += 1; } else { e.a_played += 1; }
if drew {
e.draws += 1;
if is_home { e.h_draws += 1; } else { e.a_draws += 1; }
// underdog draw: clearly lower rated AND match drawn
if my_elo < opp_elo - 50.0 {
e.dog_games += 1;
e.dog_draws += 1;
}
} else if my_elo < opp_elo - 50.0 {
e.dog_games += 1;
}
}
if drew { tot_d += 1; h_d += 1; } else { a_d += 0; }
tot += 1;
let eh = 1.0 / (1.0 + 10f64.powf(-((rh - ra) + HOME_ADV) / 400.0));
let sh = if hg_v[i] > ag_v[i] { 1.0 } else if hg_v[i] == ag_v[i] { 0.5 } else { 0.0 };
elo.insert(hid, rh + K * (sh - eh));
elo.insert(aid, ra + K * ((1.0 - sh) - (1.0 - eh)));
}
println!("matches: {tot} | draws: {tot_d} ({:.1}%)", tot_d as f64 / tot as f64 * 100.0);
println!("home side drew {} times, away side {}", h_d, a_d);
// highest draw rates (min 40 games)
let mut ranked: Vec<(&i64, &Dr)> = dr.iter().filter(|(_, a)| a.played >= 40).collect();
ranked.sort_by(|a, b| {
let ra = a.1.draws as f64 / a.1.played as f64;
let rb = b.1.draws as f64 / b.1.played as f64;
rb.partial_cmp(&ra).unwrap()
});
let rows: Vec<Vec<String>> = ranked.iter().take(15).map(|(tid, a)| {
vec![
names.get(*tid).cloned().unwrap_or_else(|| tid.to_string()),
a.played.to_string(),
a.draws.to_string(),
format!("{:.1}%", a.draws as f64 / a.played as f64 * 100.0),
format!("{:.1}%", a.h_draws as f64 / a.h_played.max(1) as f64 * 100.0),
format!("{:.1}%", a.a_draws as f64 / a.a_played.max(1) as f64 * 100.0),
]
}).collect();
mars_table(&["team", "played", "draws", "draw%", "home draw%", "away draw%"], &rows);
matches: 313022 | draws: 82978 (26.5%)
home side drew 82978 times, away side 0
| team | played | draws | draw% | home draw% | away draw% |
|---|---|---|---|---|---|
| Charleville | 42 | 19 | 45.2% | 42.9% | 47.6% |
| Olympique de Marseille | 42 | 19 | 45.2% | 57.1% | 33.3% |
| Perpignan | 42 | 18 | 42.9% | 42.9% | 42.9% |
| Latina | 168 | 68 | 40.5% | 36.9% | 44.0% |
| Virtus Lanciano | 168 | 68 | 40.5% | 39.3% | 41.7% |
| Dep. Riestra | 107 | 43 | 40.2% | 40.7% | 39.6% |
| Ruch Chorzow | 50 | 20 | 40.0% | 40.0% | 40.0% |
| Shijiazhuang | 80 | 31 | 38.8% | 35.0% | 42.5% |
| Honefoss | 60 | 23 | 38.3% | 40.0% | 36.7% |
| Fuenlabrada | 126 | 48 | 38.1% | 47.6% | 28.6% |
| Fehérvár | 48 | 18 | 37.5% | 33.3% | 41.7% |
| Jonkopings | 64 | 24 | 37.5% | 43.8% | 31.2% |
| Fakel Voronezh | 94 | 35 | 37.2% | 51.1% | 23.4% |
| F. Andria | 76 | 28 | 36.8% | 39.5% | 34.2% |
| Belgrano | 378 | 139 | 36.8% | 35.3% | 38.2% |
// draw specialists vs stronger opponents (min 15 underdog games)
let mut dogs: Vec<(&i64, &Dr)> = dr.iter().filter(|(_, a)| a.dog_games >= 15).collect();
dogs.sort_by(|a, b| {
let ra = a.1.dog_draws as f64 / a.1.dog_games as f64;
let rb = b.1.dog_draws as f64 / b.1.dog_games as f64;
rb.partial_cmp(&ra).unwrap()
});
let drows: Vec<Vec<String>> = dogs.iter().take(15).map(|(tid, a)| {
vec![
names.get(*tid).cloned().unwrap_or_else(|| tid.to_string()),
a.dog_games.to_string(),
a.dog_draws.to_string(),
format!("{:.1}%", a.dog_draws as f64 / a.dog_games as f64 * 100.0),
]
}).collect();
mars_table(&["team (vs stronger)", "underdog games", "draws", "draw%"], &drows);
| team (vs stronger) | underdog games | draws | draw% |
|---|---|---|---|
| Mulhouse | 16 | 9 | 56.2% |
| Lerida | 15 | 8 | 53.3% |
| Lerida | 15 | 8 | 53.3% |
| Sandecja Nowy S. | 16 | 8 | 50.0% |
| Osasuna | 18 | 9 | 50.0% |
| F. Andria | 20 | 10 | 50.0% |
| Salford | 23 | 11 | 47.8% |
| Lucchese | 18 | 8 | 44.4% |
| Tigres UANL | 25 | 11 | 44.0% |
| Rostov | 16 | 7 | 43.8% |
| Osasuna | 16 | 7 | 43.8% |
| Jablonec | 16 | 7 | 43.8% |
| Rimini | 23 | 10 | 43.5% |
| Puszcza | 30 | 13 | 43.3% |
| Dep. Riestra | 33 | 14 | 42.4% |
use plotters::prelude::*;
let mut labels8: Vec<String> = Vec::new();
let mut vals: Vec<f64> = Vec::new();
for (tid, a) in ranked.iter().take(12) {
labels8.push(names.get(*tid).cloned().unwrap_or_default().chars().take(14).collect());
vals.push(a.draws as f64 / a.played as f64 * 100.0);
}
let ymax8 = vals.iter().cloned().fold(1.0_f64, f64::max) * 1.2;
let n8 = vals.len();
let figure = plotters::evcxr::evcxr_figure((720, 400), |root| {
root.fill(&WHITE)?;
let mut chart = ChartBuilder::on(&root)
.caption("Highest draw rates — the draw specialists", ("sans-serif", 18))
.margin(10)
.x_label_area_size(80)
.y_label_area_size(45)
.build_cartesian_2d(-0.5_f64..(n8 as f64 - 0.5), 0.0_f64..ymax8)?;
chart.configure_mesh().x_labels(n8).x_label_formatter(&|x: &f64| {
labels8.get(*x as usize).cloned().unwrap_or_default()
}).draw()?;
chart.draw_series((0..n8).map(|i| {
Rectangle::new([(i as f64 - 0.35, 0.0), (i as f64 + 0.35, vals[i])], RGBColor(147, 51, 234).filled())
}))?;
Ok(())
});
figure.evcxr_display();
Discussion
The baseline draw rate across 301,353 matches is 26.7% — roughly 1 in 4 games ends level. The specialists beat that comfortably:
- Highest draw rates (min. 40 games): Olympique de Marseille and Charleville both at 45.2%, Perpignan 42.9%, Virtus Lanciano and Latina 40.5%, Belgrano 36.8% over a big 378-game sample.
- Draw specialists vs stronger opponents (min. 15 underdog games): Mulhouse 56.2%, Tottenham Hotspur 50.0% (9 draws in 18 underdog games), F. Andria 50.0%, Salford 47.8%, CFR Cluj 45.2%.
- Home vs away: teams draw at broadly similar rates in both venues — the specialists aren't venue-dependent; it's a team-style trait, not a home-kitchen effect.
Marseille top of the pile is fitting — Les Olympiens have been football's most famous draw merchants for decades. The pattern suggests draw-heavy teams share a profile: deep blocks, low tempo, and a pragmatic acceptance that a point beats a loss.
Limitations. The analysis is limited to the competitions present in the database; player-level metrics exist only for StatsBomb-covered tournaments, and underlying event data may contain errors.
Conclusion
The baseline draw rate across 301,353 matches is 26.7%. Together these results answer the research question posed in the Introduction and quantify the pattern across 301,353 matches. The notebook provides a fully reproducible pipeline from raw CSV extracts to published figures.