A comprehensive SQL-powered analytics project exploring team performance, referee statistics, and match patterns in the English Premier League for the 2024-25 season, enhanced with Power BI visualizations for deeper insights.
This project analyzes EPL match data to extract meaningful insights about team performance, referee tendencies, and seasonal trends. The analysis covers everything from basic team statistics to advanced metrics like conversion rates, shot accuracy, and comeback patterns. Interactive visualizations in Power BI bring these insights to life.
- Database: MySQL
- Data Source: EPL 2024-25 season match data (CSV)
- Analysis Tool: SQL queries for comprehensive analytics
- Visualization: Power BI for dashboards and graphical insights
- Goal Conversion Rates β Efficiency in converting shots to goals
- Shot Accuracy β Shots on target vs total shots
- Home vs Away Performance β Win/draw/loss records by venue
- Clean Sheets β Defensive performance analysis
- Points Table β Current league standings
- Highest Scoring Matches β Games with most goals
- Biggest Win Margins β Largest goal differences
- Comeback Matches β Teams winning after trailing at halftime
- Scoring Patterns β First-half vs second-half goals
- Referee Performance β Cards and fouls per match
- Monthly Trends β Variation in card counts over time
- Team Discipline β Fouls-to-cards ratio analysis
- Average Goals β Per match, home vs away
- Shooting Statistics β Total shots, shots faced
- Team Comparisons β Goals scored/conceded averages
The EPL-2024_25-Data_Analysis.ipynb notebook performs the following steps:
- Load Data: Reads
season-2425.csvinto a pandas DataFrame. - Calculate League Table: Computes points, goal difference (GD), and league positions.
- Aggregate Team Stats:
- Total Clean Sheets per team
- Total Cards per team (Yellow + Red)
- Merge Data: Combines league table and aggregated stats into a single
team_statsDataFrame. - Run Statistical Tests:
- Pearson correlation: Clean Sheets vs League Position
- Pearson correlation: Total Cards vs League Position
- Paired t-test: Home vs Away Goals
- Output:
- Displays top 5 teams with all stats
- Prints statistical test results with correlation coefficients and p-values
The notebook can be run interactively in Google Colab or locally via Jupyter.
- MySQL Database
- EPL match data (CSV)
- Power BI Desktop (for visualizations)
- Google Colab
EPL Queries.sqlβ Complete set of analytical queriesseason-2425.csvβ Raw match data for the season- Power BI
.pbixfile β Interactive dashboards and visualizations - Various Excel/CSV outputs β Query results for different analyses
EPL-2024_25-Data_Analysis.ipynb- Statistical Analysis of Performance Metrics
The project reveals:
- Team efficiency metrics (conversion rates, shot accuracy)
- Home vs away performance differentials
- Referee consistency and disciplinary patterns
- Seasonal trends in goals and cards
- Defensive and offensive team rankings
In the next phase of this project, I plan to expand the analysis beyond the English Premier League by scraping and integrating data from other top European leagues such as:
- La Liga (Spain)
- Serie A (Italy)
- Bundesliga (Germany)
- Ligue 1 (France)
This will enable a cross-league comparison of performance metrics, including:
- Goal conversion rates and shooting efficiency
- Defensive solidity and clean sheet ratios
- Disciplinary patterns and referee trends
- Home vs away performance contrasts
Additionally, I will enhance the existing data model by:
- Adding new variables such as expected goals (xG), possession percentage, passing accuracy, and player-level metrics
- Writing new SQL queries to generate advanced insights, trend analyses, and predictive statistics
- Updating Power BI dashboards to include comparative visualizations between leagues, teams, and player performances
These improvements aim to transform the project into a comprehensive, multi-league football analytics platform, offering a richer understanding of tactical differences, league competitiveness, and performance dynamics across Europe.