language:
- en
tags:
- sports
- pl
size_categories:
- 10K<n<100K
ποΈ EPL Match Statistics (2000β2024) β Exploratory Data Analysis
Author: Ori Berger
Dataset: Premier League Match Data (Hugging Face)
π Overview
This project performs an Exploratory Data Analysis (EDA) on 9,380 English Premier League matches from the 2000/01 to 2024/25 seasons.
The dataset includes match-level statistics such as goals, shots, corners, fouls, and cards for both home and away teams.
π― Objective
To analyze which in-game statistics most strongly influence match outcomes (FullTimeResult = H/D/A)
and to identify performance patterns that explain winning behavior in football.
π§Ή Data Cleaning
- Verified that no duplicate matches exist.
- Checked for missing values (minimal and left unchanged).
- Parsed match dates and standardized team names (e.g., βMan Utdβ β βManchester Unitedβ).
- Converted result columns (
FullTimeResult,HalfTimeResult) to categorical data types.
π¨ Outlier Handling
- Outliers found in shots, corners, and fouls were analyzed using z-scores (|z| β₯ 3).
- These values were kept since they represent authentic extreme matches (e.g., red cards or large wins).
π Descriptive Statistics
- Average goals per match: 2.72
- Average home goals: 1.57 | Average away goals: 1.15
- Home advantage: 46% wins, 25% draws, 29% losses.
- Strong correlation: goals β shots on target (
r β 0.78).
π Research Questions & Key Insights
1οΈβ£ Does playing at home significantly affect match outcomes?
β Yes β home teams win nearly half their games, confirming a clear home advantage.
2οΈβ£ How are shots and shots on target related to goals?
β Strong positive correlation β more shots on target strongly increase goal likelihood.
3οΈβ£ Do corners reflect attacking dominance?
β Winning teams average ~2.5 more corners than losing teams.
4οΈβ£ Do yellow cards or fouls influence match results?
β Losing teams receive slightly more yellow cards on average, but correlation is weak.
5οΈβ£ How do goal trends evolve over time?
β Average goals per match remain steady (~2.7) across the last two decades.
π Visualizations
- Histogram: Distribution of total goals per match.
- Scatter plot: Shots on target vs goals scored.
- Bar charts: Averages by match result (shots, corners, cards).
- Line plot: Average goals per season (2000β2024).
Each plot is clearly labeled with titles, axes, and legends.
π§ Conclusions
- Home advantage is a consistent and statistically significant trend.
- Shots on target are the strongest predictor of winning matches.
- Corners serve as a reliable proxy for attacking dominance.
- Disciplinary actions (cards) have limited predictive value.
- Overall, the EPL remains a balanced and high-scoring league over time.
π§© Files Included
epl_final.csvβ datasetassignment_ori_berger.ipynbβ notebook with full SQL + Python analysisREADME.mdβ summary of results and insights- 'Loom Video'- https://www.loom.com/share/0fadb98589fe473b9222205e6db8b8da




