Epl_Stats_EDA / README.md
Orib24's picture
Update README.md
e9d0d45 verified
metadata
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.

image

image

image

image

image


🧠 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