The Fixture Congestion Effect
Abstract
Does playing too often actually hurt? This study answers it using 301,353
finished matches drawn from the Soccers football database. The hypothesis was
that short rest hurts — the data says barely, if at all. 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, fixtures, mars, sqlite
Table of contents
Introduction
Modern football grinds teams through midweek European nights and domestic fixtures back-to-back. Does playing too often actually hurt? This notebook measures rest days between matches for every team across 301,353 finished matches and asks:
- Do teams earn fewer points when playing every ~3 days?
- Does short rest mean conceding more goals?
- Are teams juggling multiple competitions hit harder?
Rest = days between a team's consecutive matches (any competition). "Multi-competition" = the team played a match in a different league within the previous 14 days.
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 301353 rows × 11 cols | schema: ["id", "country", "league", "season", "date", "hid", "aid", "home", "away", "hg", "ag"]
// 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 301353 matches
Rest-day buckets and multi-competition flags
Dates are ISO strings — we convert to serial days, sort each team's fixtures chronologically, and bucket rest periods. A team's recent fixtures window (last ~20 matches) detects cross-competition congestion.
use std::collections::HashMap;
use std::collections::VecDeque;
// civil date -> serial day (Howard Hinnant's algorithm)
fn days_from_civil(y: i64, m: i64, d: i64) -> i64 {
let y = if m <= 2 { y - 1 } else { y };
let era = if y >= 0 { y } else { y - 399 } / 400;
let yoe = y - era * 400;
let mp = (m + 9) % 12;
let doy = (153 * mp + 2) / 5 + d - 1;
let doe = yoe * 365 + yoe / 4 - yoe / 100 + doy;
era * 146097 + doe - 719468
}
fn date_to_days(s: &str) -> i64 {
let b = s.as_bytes();
let y: i64 = s[0..4].parse().unwrap_or(1970);
let m: i64 = s[5..7].parse().unwrap_or(1);
let d: i64 = s[8..10].parse().unwrap_or(1);
let _ = b;
days_from_civil(y, m, d)
}
// per-team match list: (day, league, points, gf, ga)
struct TM9 { day: i64, league: String, pts: f64, gf: i64, ga: i64 }
let mut by_team: HashMap<i64, Vec<TM9>> = HashMap::new();
let mut names: HashMap<i64, String> = HashMap::new();
for i in 0..n {
if league_v[i].to_lowercase().contains("friend") { continue; }
let day = date_to_days(&date_v[i]);
let (hg, ag) = (hg_v[i], ag_v[i]);
let (hp, ap) = if hg > ag { (3.0, 0.0) } else if hg == ag { (1.0, 1.0) } else { (0.0, 3.0) };
names.entry(hid_v[i]).or_insert_with(|| home_v[i].clone());
names.entry(aid_v[i]).or_insert_with(|| away_v[i].clone());
by_team.entry(hid_v[i]).or_default().push(TM9 { day, league: league_v[i].clone(), pts: hp, gf: hg, ga: ag });
by_team.entry(aid_v[i]).or_default().push(TM9 { day, league: league_v[i].clone(), pts: ap, gf: ag, ga: hg });
}
for v in by_team.values_mut() {
v.sort_by_key(|m| m.day);
}
// rest buckets: <=3, 4, 5-6, 7-9, 10-14, 15+
// stats: [matches, pts_sum, wins, gf, ga]
let mut buckets: HashMap<&'static str, (u64, f64, u64, i64, i64)> = HashMap::new();
let mut multi: (u64, f64, u64, i64) = (0, 0.0, 0, 0); // multi-comp: m, pts, ga
let mut single: (u64, f64, u64, i64) = (0, 0.0, 0, 0);
for (_tid, matches) in &by_team {
let mut window: VecDeque<&TM9> = VecDeque::new();
for (idx, m) in matches.iter().enumerate() {
if idx == 0 { window.push_back(m); continue; }
let rest = m.day - matches[idx - 1].day;
let label = if rest <= 3 { "≤3 days" } else if rest == 4 { "4 days" } else if rest <= 6 { "5–6 days" } else if rest <= 9 { "7–9 days" } else if rest <= 14 { "10–14 days" } else { "15+ days" };
let b = buckets.entry(label).or_insert((0, 0.0, 0, 0, 0));
b.0 += 1; b.1 += m.pts; b.3 += m.gf; b.4 += m.ga;
if m.pts == 3.0 { b.2 += 1; }
// multi-competition: different league within previous 14 days
let is_multi = window.iter().any(|p| p.league != m.league && m.day - p.day <= 14);
if is_multi {
multi.0 += 1; multi.1 += m.pts; multi.3 += m.ga;
} else {
single.0 += 1; single.1 += m.pts; single.3 += m.ga;
}
while window.len() > 20 { window.pop_front(); }
window.push_back(m);
}
}
let order_labels = ["≤3 days", "4 days", "5–6 days", "7–9 days", "10–14 days", "15+ days"];
let mut rows: Vec<Vec<String>> = Vec::new();
for l in order_labels {
if let Some((m, pts, w, gf, ga)) = buckets.get(l) {
rows.push(vec![
l.to_string(),
m.to_string(),
format!("{:.2}", pts / *m as f64),
format!("{:.1}%", *w as f64 / *m as f64 * 100.0),
format!("{:.2}", *gf as f64 / *m as f64),
format!("{:.2}", *ga as f64 / *m as f64),
]);
}
}
mars_table(&["rest", "matches", "pts/game", "win%", "GF/game", "GA/game"], &rows);
println!("multi-competition matches: {} | pts/game {:.2} | GA/game {:.2}", multi.0, multi.1 / multi.0.max(1) as f64, multi.3 as f64 / multi.0.max(1) as f64);
println!("single-competition matches: {} | pts/game {:.2} | GA/game {:.2}", single.0, single.1 / single.0.max(1) as f64, single.3 as f64 / single.0.max(1) as f64);
multi-competition matches: 5178 | pts/game 1.35 | GA/game 1.33
single-competition matches: 595957 | pts/game 1.37 | GA/game 1.32
| rest | matches | pts/game | win% | GF/game | GA/game |
|---|---|---|---|---|---|
| ≤3 days | 68682 | 1.38 | 37.2% | 1.31 | 1.29 |
| 4 days | 58438 | 1.36 | 36.6% | 1.30 | 1.31 |
| 5–6 days | 95701 | 1.36 | 36.5% | 1.31 | 1.31 |
| 7–9 days | 279793 | 1.36 | 36.6% | 1.33 | 1.33 |
| 10–14 days | 55898 | 1.38 | 37.2% | 1.35 | 1.33 |
| 15+ days | 42623 | 1.36 | 36.4% | 1.32 | 1.33 |
use plotters::prelude::*;
let labels9 = vec!["≤3d", "4d", "5-6d", "7-9d", "10-14d", "15d+"];
let mut pts9: Vec<f64> = Vec::new();
for l in ["≤3 days", "4 days", "5–6 days", "7–9 days", "10–14 days", "15+ days"] {
if let Some((m, pts, _w, _gf, _ga)) = buckets.get(l) {
pts9.push(pts / *m as f64);
} else { pts9.push(0.0); }
}
let ymax9 = pts9.iter().cloned().fold(0.5_f64, f64::max) * 1.2;
let figure = plotters::evcxr::evcxr_figure((720, 400), |root| {
root.fill(&WHITE)?;
let mut chart = ChartBuilder::on(&root)
.caption("Points per game by rest days between matches", ("sans-serif", 20))
.margin(10)
.x_label_area_size(30)
.y_label_area_size(45)
.build_cartesian_2d(-0.5_f64..5.5, 0.5_f64..ymax9)?;
chart.configure_mesh().x_labels(6).x_label_formatter(&|x: &f64| labels9[*x as usize].to_string()).draw()?;
chart.draw_series((0..6).map(|i| {
let color = if i == 0 { RED } else { BLUE };
Rectangle::new([(i as f64 - 0.3, 0.5), (i as f64 + 0.3, pts9[i])], color.filled())
}))?;
Ok(())
});
figure.evcxr_display();
Discussion
The hypothesis was that short rest hurts — the data says barely, if at all:
| Rest | Matches | Pts/game | Win% | GA/game |
|---|---|---|---|---|
| ≤3 days | 68,682 | 1.38 | 37.2% | 1.29 |
| 4 days | 58,438 | 1.36 | 36.6% | 1.31 |
| 5–6 days | 95,701 | 1.36 | 36.5% | 1.31 |
| 7–9 days | 279,793 | 1.36 | 36.6% | 1.33 |
| 10–14 days | 55,898 | 1.38 | 37.2% | 1.33 |
| 15+ days | 42,623 | 1.36 | 36.4% | 1.33 |
Teams playing every ≤3 days actually post the joint-highest points game (1.38) — though this is partly selection bias: elite sides play in more competitions and more often, and they're better. Goals conceded are remarkably flat (~1.3/game) across every rest bucket.
Multi-competition check: matches where a team played a different league within 14 days average 1.35 pts/game vs 1.37 for single-competition fixtures — a real but tiny (~1.5%) dip, within noise for most teams.
Honest verdict: fixture congestion is real for players' bodies, but at the team-results level elite squads are deep enough that the effect is statistically marginal across 300k matches.
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 hypothesis was that short rest hurts — the data says barely, if at all. Together these results answer the research question posed in the Introduction and quantify the pattern across 301,353 finished matches. The notebook provides a fully reproducible pipeline from raw CSV extracts to published figures.