EPL First Weekend
EPL First Weekend
A quick post with some statistics from the first weekend of matches in the EPL. Of course at this stage it is not very sensible to draw any conclusions.
%matplotlib inline
import league_analysis
epl = league_analysis.year_201516.epl_league
Matches
Here are the matches:
league_analysis.display_matches(epl, '08/08/15', '10/08/15')
Interesting week. Swansea really dominated Chelsea in shots and shots on target at Stamford Bridge, probably a result of Chelsea losing their goal keeper to a red card.
Two of the new boys Bournemouth and Norwich both managed to out-shoot their opponents, but they had fewer shots on target and that proved telling as both lost. Watford can be assured that their draw with Everton was well-deserved.
Graphs
For no particular reason now graphing the shots and shots on target differences against the goals difference. First the difference in total shots vs the difference in goals.
def get_shots_diff(match):
if match.FTR == 'H' or match.FTR == 'D':
return match.HS - match.AS
else:
return match.AS - match.HS
def get_goals_diff(match):
return abs(match.FTHG - match.FTAG)
league_analysis.scatter_match_stats(epl.matches, xlabel='Shots Diff', ylabel='Goals Diff',
title='Shots Difference vs Goals Difference',
get_x_stat=get_shots_diff, get_y_stat=get_goals_diff)
Note that it makes a slight difference what we do with drawn matches. Here we are plotting the shots difference from the point of view of the home team (for no particular reason). So all three draws have a negative shot ratio. In any case we are mostly all over the place here. The Arsenal and Norwich losses are preventing any kind of positive relationship. One thing though, on this basis, Leicester deserve to be top of the league, the only luck they have had is being drawn against Sunderland so far.
Now we graph the shots on target vs the difference in goals.
def get_sot_diff(match):
if match.FTR == 'H' or match.FTR == 'D':
return match.HST - match.AST
else:
return match.AST - match.HST
league_analysis.scatter_match_stats(epl.matches, xlabel='SOT Diff', ylabel='Goals Diff',
title='Shots on Target Difference vs Goals Difference',
get_x_stat=get_sot_diff, get_y_stat=get_goals_diff)
Now we have what looks like a more positive trend line. Of course one weekend is not enough data to make any kind of trend line worthwhile, this is just for fun. On this measure though Tottenham were more unfortunate than Arsenal.
As I say, these things do not tell us anything, but it's fun to look at whilst we wait for the next round of matches.
Comments
Comments powered by Disqus