Thomas Tuchel's High Flying Blues?  Using R To Predict Chelsea in the UCL.
Image Credit: The Telegraph

Thomas Tuchel's High Flying Blues? Using R To Predict Chelsea in the UCL.

Okay, okay, Tuchel's Chelsea might not be the most entertaining, but they're certainly effective. 13 games undefeated, 2 goals conceded, dismantling a heavily fancied Atlético Madrid side en-route to the European Champions League last 8.

"I’m pretty sure nobody wants to play against us in the last eight. It will be a big step but there’s no need for us to be afraid."

With my last football post receiving such a good response, I will show you how to predict a match using the R programming language and a similar technique.

I've name-dropped the excellent FiveThirtyEight and their ratings previously and continue to do so here. It's a good check against the model. For my base data, I wrangled footy-stats.org data sets for each respective league, while weighting the domestic leagues relative to UEFA Country Coefficient (UCL results are weighted at 1). Sorry PSG...

The script is a little "wordy" to dissect, PM me if you're interested. The crux of the work is below though. Be sure to use the skellam library and the usual data.table and dplyr packages.

No alt text provided for this image
No alt text provided for this image

Modelling this for Chelsea and Porto (both legs), predicted goals for Match 1 and 2 are: A boring 1-0 nil victory?!

No alt text provided for this image
No alt text provided for this image

What about the other combinations?

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

And for Manchester City?

No alt text provided for this image
No alt text provided for this image

So, a last 4 knock out for Tuchel's Chelsea ended by the brilliance of Karim Benzema...

Currently available for contract roles using R and Python in the data analytics and science space across the UK. If you're interested in learning what this can bring to your business or client, contact me on [email protected] for more information.


Colin Berry

Freelance Data Engineer/Architect

3 年

Our model predicts Porto having an 18% chance of winning at home, with a higher probability for the draw and lower for a Chelsea victory. Good company with FiveThirtyEight.

  • 该图片无替代文字
回复

要查看或添加评论,请登录

Colin Berry的更多文章

  • Bottling It, Or Bad Math?

    Bottling It, Or Bad Math?

    The shift of the 2024 World Series to Yankee Stadium for Game 3 did nothing to impede the momentum of the Los Angeles…

    3 条评论
  • Machiavelli's Blade

    Machiavelli's Blade

    Let’s explore a fresh analysis of the Tory leadership contest, with a focus on Stages 2, 3, and 4, using mathematical…

  • Professor Lugo

    Professor Lugo

    In his first start as a Kansas City Royal, Seth Lugo delivered six scoreless innings. In his second outing, he pitched…

  • The Garrett Crochet Effect

    The Garrett Crochet Effect

    The "Garett Crochet Effect" is unmistakably influencing the upcoming clash between the White Sox and the Dodgers on…

  • London Calling to the Faraway Towns

    London Calling to the Faraway Towns

    The historic rivalry between the New York Mets and the Philadelphia Phillies has been filled with memorable moments and…

  • Things Can Only Get Slugger!

    Things Can Only Get Slugger!

    Juan Soto showcased his power at the plate, belting two home runs, including a crucial go-ahead shot in the ninth…

  • Yu Darvish: Unveiling the Pitching Maestro of the San Diego Padres

    Yu Darvish: Unveiling the Pitching Maestro of the San Diego Padres

    Yu Darvish, who hadn't allowed a run in 25 consecutive innings and had only surrendered two home runs all season—none…

  • Was Shohei Ohtani's $700 Million Deal Worth It for the LA Dodgers?

    Was Shohei Ohtani's $700 Million Deal Worth It for the LA Dodgers?

    The signing of Shohei Ohtani by the Los Angeles Dodgers for a historic $700 million contract has sparked immense…

    4 条评论
  • Game Theory and 'The Worst Team in Major League Baseball'

    Game Theory and 'The Worst Team in Major League Baseball'

    During a recent trip to Chicago, I had the opportunity to attend my first baseball game. As someone intrigued by the…

    3 条评论
  • The Curious Case of the Bull vs Bear Market: Hidden Markov Models in R

    The Curious Case of the Bull vs Bear Market: Hidden Markov Models in R

    As a grumpy, nearly 30 something, I'm old enough to remember the financial crisis, chin-stroking tweed-wearing…

社区洞察

其他会员也浏览了