Showing posts with label Simulation. Show all posts
Showing posts with label Simulation. Show all posts

Monday, June 15, 2020

Arsenal at Manchester City Preview

Is it just me or is it extremely weird to have Arsenal playing just a couple days from now?

I guess in the sense that typically after the summer off-season, there is a certain cadence to how things go and that leads to a huge build up to the first match of the season. This over 100 day break is unprecedented in the middle of the season and soccer has easily been among the least important things.

I suppose that some of the regular things that happen in the summer are starting to get going. There is a major transfer rumor about Thomas Partey (which is quite controversial right now and because I am a content producer I should weigh in on that) and then there is the contract sagas for Pierre-Emerick Aubameyang and Bukayo Saka starting to move in to concerning areas.

The last thing that is nagging me is how in the hell do you account for a three month break when you write about things from a stats perspective? My best guess is that you have to be even less certain about things than you would (or should) have been before the break.

Enough preamble I guess let's get into the Arsenal at Manchester City Preview.


This shouldn't be surprising but Manchester City are a better team than Arsenal and even though they won't be winning the Premier League are easily one of (if not) the best team in Europe.

I don't expect that this will be a particularly even battle between the two teams but it will be a very interesting test of how Mikel Arteta sees his team and how they should take on matches like this. It will be interesting where on the two kind of extremes he chooses to go towards with the Arsene Wenger style of playing to his team's strength vs the Unai Emery style of looking to neutralize the opponents strength.

I think that because of where this falls on the schedule of things that we might see a higher return to playing more towards the Emery style with more time to train for a specific opponent in mind compared to the weekly league grind where there just isn't that much time to put in specific game plans.

Thursday, September 7, 2017

Premier League Week 4 Projections

After a long international break it is time to get back to club football. As an Arsenal fan and American it has been a pretty crappy couple of weeks with the results but according to the odds it looks like things should hopefully get better.

Without any further rambling here are the odds for week 4 of the Premier League:
After several weeks with lots of heavy favorites, this week only Arsenal breaks the 50% odds barrier, As a pessimist this also likely means that of the big teams Arsenal will have their result go against them.

The Manchester City vs Liverpool match up looks really good and even with a 4:30 am kick off I will probably still do my best to wake up to watch it. I have City as the favorite but with Liverpool's track record and how they just dominated Arsenal it could definitely be closer than the odds suggest.

A new thing that I tweeted out this week is the relative strength rankings for each team that feeds into these projections.
This week we have a 1 vs 3 match up and a 4 vs 7 match up which might end up as one of the better weekends for top teams going against each other.

On the title projection front, things have narrowed down to a few favorites with the rest of the big teams falling back:

Click to Enlarge
Manchester City is still the title favorite but Manchester United and Liverpool have both moved to over 20% for the title odds.* Arsenal's season might be collapsing but I still have them as the 4th highest title odds so maybe things aren't as bad as it seems after two losses.

Another new thing I tweeted out today was the team performance compared to the expected points based on odds and based on expected goals:
This is pretty interesting, I wouldn't expect Huddersfield to keep up this performance but the points that they have already banked are very valuable and can't be take away. Also even with the only perfect record, Manchester United haven't over performed by a crazy amount, Jose might be doing his second year magic.
-
This article was written with the aid of StrataData, which is the property of Stratagem Technologies. StrataData powers the StrataBet Sports Trading Platform, in addition to StrataBet Premium Recommendations.

*Note: If teams tie on points this assigns both to that position, I have not added a goal differential to break ties. Here is a further explanation for how these projections work.

Wednesday, September 6, 2017

Explaining My Simulation Methodology

I have been meaning to get around to this for a while now and with a break in fixtures for international team games this seems like a good time to go over my simulation methodology.

 

Basics:

The model is built on this logic: that a soccer match result is determined by goals, goals are determined by the number of shots and the quality of those shots. So I have built the model and 1) trying to estimate the number of shots each team will have and 2) a rough idea of where these shots will be taken and the quality of the shots.

For simplicity I group shots into three location buckets, Danger Zone (6 yard box + Middle of 18 yard box), Wide Box (wide areas of the box) and Outside the Box.

I also estimate the number of headers that will occur in the game and I assume that all headers will be from the danger zone (about 95% of headers occur in this area) all other areas are shots from feet.

Lastly I estimate the number of Big Chances each team will have per game. For simplicity I also assume that all of these will occur in the danger zone (about 75% of big chances occur in the danger zone).

 

Determining Values:

To arrive at the values for each I have taken data from the last two seasons plus the current season. I then weight the data to get to a single value. The current weighting is 1 for 2016-17, 0.5 for 2015-16 and Games Played/19 so for this week there have been 3 matches so the weighting is 0.16 and this will go up every week.

You could certainly pick different weights for this but my thinking is that I would use last season as the baseline for each team, two years ago as half as important because there can be quite a bit of turn over in a squad in that time but still it can provide information and then a sliding scale for the current season that would put it on equal terms at the halfway point with the previous season and then have the largest weighting.

I use this weighting on the data for both offensive and defensive statistics as well as overall and home and away.

These values then feed into the simulation model to determine the number and quality of shots for each team.

Using Arsenal vs Bournemouth as an example:

Arsenal have 6.42 Danger zone shots for overall, 7.41 at home while Bournemouth allow 5.59 overall and allow 3.61 Danger Zone shots on the road. Averaging all of these I have Arsenal with a raw value of 5.69 Danger Zone shots. Taking out the expected headers and Big Chances (same methodology as above) Arsenal are left with 1.58 regular danger zone shots from feet. The decimal portion of the shot is then compared to a random number and if the decimal is higher than the random number the shots total is rounded up.

Doing this for all the different shot categories Arsenal are estimated to have 15.03 (1.58 DZ, 4.37 WB, 4.97 OB, 2.3 headers, 1.81 BC) shots but that can vary between 12 and 17 shots, compared to 10.65 (0.98 DZ, 2.29 WB, 4.32 OB, 1.78 headers, 1.27 BC) shots but can vary between 8 and 13 shots for Bournemouth.

Once the number of shots are determined each one is assigned an xG value. Danger Zone shots are 0.17 xG, Wide Box 0.06 xG, Outside the box 0.024 xG, headers 0.08xG and big chances 0.45 xG.

 

Simulating the match:

These values are assigned to each shot and compared to a random number. Again to our example:

Arsenal
Shot Type Value Random Result
DZ 0.17 0.610036 0
DZ 0.17 0.172277 0
WB 0.06 0.303131 0
WB 0.06 0.267087 0
WB 0.06 0.068808 0
WB 0.06 0.6799 0
OB 0.024 0.715029 0
OB 0.024 0.012071 1
OB 0.024 0.577135 0
OB 0.024 0.657269 0
OB 0.024 0.936911 0
H 0.08 0.356094 0
H 0.08 0.022968 1
BC 0.45 0.657358 0
BC 0.45 0.545432 0

Based on these results Arsenal would have scored 2 goals in this simulation.

This is done for both teams and the goals scored are compared and the result is recorded and then the simulation is run (with the decimals again compared to a new set of random numbers to simulate a bit of randomness that happens) again another 9,999 times. The odds that I present are the count of each result divided by the number of simulations.

Again to the example of Arsenal vs Bournemouth, Arsenal won 5,327 of the simulations, there was a draw 2,190 times and Bournemouth won 2,483 times. So the odds for the match would be presented as 53.3% for Arsenal, 21.9% Draw, 24.8% Bournemouth.

 

Simulating the Season:

For each of the remaining matches in the season the odds are determined using the above method and a similar exercise is performed to simulate the season. I use this to give odds for each team winning the league or finishing top 4 and other targets.

To help illustrate I will again use the Arsenal vs Bournemouth example. For this a random number is generated. I got 0.5058 as my random number and that is compared to odds of home win: 0 to 0.533, draw: greater than 0.533 to less than 0.753 and Away win: 0.752 to 1. With this random number Arsenal have been simulated as the winner.

This is done for each match and the number of wins, draws and losses are recorded as well as the points and where each team finished in the table. This is done another 9,999 times to simulate the season 10,000 times and then the results are presented as the simulated odds.

The latest simulation makes Manchester City the title favorites winning the title in 32.7% of simulations.

 

Team Strength:

Earlier today on twitter I posted something new and that is related to my simulation work. I called it team strength rankings.
Here is how that is derived.

Each team's overall shot spread is multiplied by the assigned values (basically it is a simplified xG value per game) and then compared to league average. Using Arsenal as an example, they have an estimated 1.8 xG per game overall compared to 1.3 for League Average. I then took the team value divided by league average times 100 to give the value in the tweet where 100 is league average and every point above or below represents 1% above or below the league average.

For the overall ranking it is the average of the offense and defense with that compared to league average to determine overall rank.

This is a new thing for me so this might need tweeking as I continue on.

Please let me know if things need further clarification or if I missed anything.

Friday, August 25, 2017

Premier League Week 3 Projections

Week three of the Premier League is here and even though the transfer market is at the forefront with the window closing there are games to be played and projections to be made.

This week there are even more close match ups and just one game with a team expected to win over 50% of the time.

For Arsenal things could really meltdown for the fans with going to Anfield as underdogs. A second loss in a row plus the expected inactivity on the in goings in the transfer market could see things turn absolutely toxic among the fan base.

Lastly here is the latest full season projections:
Click to enlarge
The title race has tightened up with Manchester City drawing against Everton last weekend combined with Manchester United's second 4-0 win and Liverpool also winning. Arsenal's loss at Stoke saw them drop from second title favorites to the sweet comfort of 4th.

The race for top 4 is incredibly tight, with ten teams with at least a 10% chance of being a part of that group. Chelsea have seen their odds drop the most since the start of the season going from 46.8% pre-season to 38% this week while Manchester United have improved their odds the most going from 45.9% to 61%.

In the relegation battle, there are seven teams with at least a 15% chance of going down. Newcastle have moved to joint worst odds with Brighton after two losses to start the season. Newcastle has seen their relegation odds increase 23% since the preseason projection going from 32% to 55%. If Newcastle can't get at least a point against West Ham at home the season might be in jeopardy of being over for them.
-
This article was written with the aid of StrataData, which is the property of Stratagem Technologies. StrataData powers the StrataBet Sports Trading Platform, in addition to StrataBet Premium Recommendations.

Friday, August 18, 2017

Premier League Week 2 Projections

Week two of the Premier League is here and I have a fresh batch of projections.
This week there are many more close match ups and just a pair of odds where teams would be expected to win over 50% of the time compared to four last week (not including two matches at over 49%). 

The marquee match of Tottenham vs Chelsea shows Spurs as the clear favorites and that doesn't even take into account the players that will be out for Chelsea. It will be interesting if Antonio Conte can pull some magic out of the hat in that match. The midfield that he picks sure will be interesting. 

For Arsenal they are away at Stoke and have pretty favorable odds. My gut would not put things that high up but this week Arsenal should hopefully have more senior players available to play at center back and hopefully Alexis back to at a minimum the bench. I also hope the Oliver Giroud continues as a sub, he is so good at that and really changes the game against tired defenses but really messes with the offensive flow as a starter.

Lastly here is the latest full season projections:
Click to enlarge
Manchester City saw their title odds improve 5% after the results of last weekend to be the biggest gainer, while Chelsea lost nearly 4% with their shocking defeat against Burnley. Arsenal have slipped their way into the second highest average points spot but there is such a narrow grouping among the top teams that will probably switch quite a bit as the early season plays out.

In the relegation fight, Burnley were huge movers going from 45% relegation to 30% relegation with a win against the defending Champions with Huddersfield getting a 9% bump with their opening win. Crystal Palace were the big dropper of the week and could be in serious trouble with starting the first two matches with 0 points and real danger lurking with a trip to Anfield.

Also the rest of the big leagues will be kicking off this weekend. For those that follow my stats I want to give an update on my updating schedule. I usually update the Premier League first on Monday morning Pacific Time and then get the rest of Europe as team permits and that some times stretches into the week. I try to get all the stats updated by the time that games kickoff for Fridays but I will try to have it done earlier than that.
-
This article was written with the aid of StrataData, which is the property of Stratagem Technologies. StrataData powers the StrataBet Sports Trading Platform, in addition to StrataBet Premium Recommendations.

Wednesday, August 16, 2017

Napoli vs Nice First Leg Champions League Playoffs Simulation

After the thrilling Hoffenheim vs Liverpool playoff matchup yesterday, today we have the second of the big match up in the playoffs to get to the group stage of the Champions League in Napoli vs Nice.

My simulation model (which I think I will go into depth on as tomorrow's post) thinks that Napoli is a big favorite to win this match. I should also point out that Nice's stats are really pretty mediocre and that they rate on stats as a midtable French team but last season they really overperformed and finished in third.

The Nice coach Lucien Favre has a bit of a track record in doing this for the teams that he coaches.



Tuesday, August 15, 2017

Hoffenheim vs Liverpool First Leg Champions League Playoff Simulation-Updated with Full Time Stats

 

Liverpool kick off their Champions League campaign with one of the harder draws of the round. As a neutral observer I am excited for this match.

Liverpool should be favorites even without Phil Coutinho in this match but it could still be a close affair when the match switches to Anfield. Liverpool also have a very good chance, I put it at 90% of getting at least 1 all important away goal tonight.

I look forward to having the Champions League back.
--Update 8/16/17--
Here are the full time xG stats and the xG chain from the match

-
This article was written with the aid of StrataData, which is the property of Stratagem Technologies. StrataData powers the StrataBet Sports Trading Platform, in addition to StrataBet Premium Recommendations.

Thursday, August 10, 2017

Premier League Table Simulation- PreSeason



The start of the season is upon us, there is optimism in the air and maybe some dread and anxiety over transfer business not being completed.

With that comes trying to figure out where everyone will finish in the final table. Like many other analysts out there I'll try my hand at projecting the final positions based on a statistical model and simulations. I still have it on my to do list to go more into depth on how explaining my model but here is how I project things to go this year:

Click to enlarge
Manchester City are my favorites like most others, with Liverpool the first of the following pack. After those two the teams are all essentially on the same levels. This bunching of talent could make for an actual title race this season which would be a fun change.

After the big six teams you get Southampton and Everton (who the model doesn't rate nearly as high) followed by a whole bunch of meh teams who all could end up in the relegation battle with the newly promoted teams. Somewhat surprisingly Burnley rates as the 2nd worst team with a 42.7% chance of being relegated.

A quick tangent on the projections, like almost all projection models this one moves teams towards the mean and really flattens the spread of points compared to what will really happen. For example here is the table after one simulation instead of running 10,000.


Team Points Goal Dif
Tottenham Hotspur 77 31
Arsenal 72 32
Liverpool 71 27
Manchester City 70 26
Southampton 70 24
Chelsea 69 22
Stoke City 55 6
Newcastle United 54 -4
Everton 53 1
Swansea City 53 -2
Manchester United 49 9
Crystal Palace 49 -1
Leicester City 46 -16
Brighton & Hove Albion 45 -20
West Ham United 44 -16
Bournemouth 43 -9
Burnley 38 -26
Watford 35 -31
West Bromwich Albion 34 -26
Huddersfield Town 33 -27

It's quite a bit different and looks a lot more like what you would expect from a season expect for being able to win the league with 77 points. I'd to have loved to see Jose Mourinho's meltdown and subsequent firing after his Manchester United finished in 11th place.

Back to the larger sampling of the simulations here is the Title, Top 4 and Relegation odds for the season:
Here is another way to look at the teams, looking at the spread of outcomes with the box and whisker plot.
Click to enlarge
Surprisingly Arsenal have the 3rd highest median points total but they have one of the smallest point spreads among the top 6 teams. I would imagine that this comes from their focus on producing quality shots at the expense of high volume while the other teams all to various extents look to have more shots.

For example, I have Arsenal breaking the 80 point barrier in just 1.5% of simulations compared to 2% for Chelsea, 3% for Tottenham, 3.6% for Liverpool, 10% for Manchester City and 2.5% for Manchester United.

It should be an interesting season and I will do my best to try to run this simulation every week or so to be able to see how things progress as the season goes.
-
This article was written with the aid of StrataData, which is the property of Stratagem Technologies. StrataData powers the StrataBet Sports Trading Platform, in addition to StrataBet Premium Recommendations.