DAHammond

@DAHammond

Joined on Apr 18, 2024

  • GitHub repository for this project Author LinkedIn As our Nile cruise drifted between Aswan and Luxor, the sun dipping low over the river’s shimmering surface, my travel companion unveiled a curious distraction: Beggar My Neighbour, a card game for two that hinges entirely on chance. The aim? To claim every card through a simple yet surprisingly gripping pay process. Our games stretched on, each round a test of patience as much as luck. This sparked a question in my mind—could the Python skills I’d honed at university unlock deeper insights into this game? What could we learn about its mechanics, and just how long might we expect these marathon matches to last? Beyond unraveling the game’s mysteries, I set myself a second mission: to keep my coding and data science skills sharp while experimenting with a new AI tool to guide the process. Having previously leaned on ChatGPT’s 3rd and 4th generation models, I decided to switch things up for this project, enlisting xAI’s Grok 3 as my coding companion. Its fresh perspective promised to add an intriguing layer to this analytical adventure. By its very design, Beggar My Neighbour leaves no room for skill—every game’s outcome is preordained by the shuffle of the deck. This meant my focus had to shift from predicting wins to dissecting the game’s inevitable flow. I set out to explore the number of moves and time it takes for a game to reach its conclusion, alongside tracking the frequency of dramatic comebacks and shifts in the lead. To wrap things up, I’d dive into the game’s edge cases—those rare outliers that defy the norm—before reflecting on my experience with Grok 3 and its role in bringing this project to life. History
     Like  Bookmark
  • GitHub repository for this project Author LinkedIn As part of the final assessment for the BEE2041 module, this post aims to gain a better understanding of the xG metric in football through the use of Premier League data from the 2022/23 season. Throughout this post, we will explore how accurate xG is as a metric and its correlation to goals scored both at an individual match level and over the entire season. We will conclude with insight on the question about whether xG is a good predictor for match outcomes and whether you would be able to guess the match results solely from looking at the xG metric. Introduction & Background What Is xG? Expected Goals (commonly known and denoted as xG), is an metric used in football to measure the probability that a shot will result in a goal. For example, an attempt on goal with a 0.2 xG will be expected to be scored once in every five attempts. In essence, xG is a proxy for quality of chances created in a game. xG has slowly risen over the past decade to be one of the leading metrics in football analysis and commentary. After having been proposed by Sam Green in April 2012, xG now regularly features in punditry, managers post match interviews and fans post match analysis. xG has successfully moved to enhance traditional metrics such as 'Shots' and 'Shots on Target'.
     Like  Bookmark