Plotting football with Python and Plotly

Some time ago I got a question from Tom Worville, at http://analyticsfc.co.uk/ if I could share how I create my plots. As I have mentioned before I use Plotly. In my opinion a superb visualization tool with a great api and a sound user policy. Being a Python programmer their eminent python library is of course extra appreciated.

Here is how I create a football pitch with Plotly. Meet footballpitchplot!

Continue reading Plotting football with Python and Plotly

The most efficient players in Allsvenskan

So, I thought I’d answer two questions in this blog post.

The first was a question from an article in Östersundsposten this week, asking who you think is the best player ever to have played in ÖFK.

The second was a question I got when I wrote about Lasse Vibe and his efficiency in terms of his ratio between expected goals and actual goals.

Now, the answer to the two questions turned out to be related and make one blog post.

Continue reading The most efficient players in Allsvenskan

Impact of Game State to my Expected Goals/ExpG model

So, I forgot one thing when I made my ExpG model and posted the results here. I guess this is what is so great about trying to contribute to a community and be open about what one is doing.  11tegen11 gave me some feedback and I got curious too. Game State, the current state of the game regarding score should make an impact, I mean who hasn’t seen a player missing out on some clear opportunities when the game already is decided? Tonight I added game state and this is what happened… Continue reading Impact of Game State to my Expected Goals/ExpG model