Tip Sheet #68: World Cup Special


Hi Tip-Sheeters,

The World Cup starts today!!!

I live in Kansas City, USA and we're one of the host cities for the World Cup games this year.

We're also hosting the training camps for the Netherlands, England, and Argentina so it's going to be an exciting month.

If you visit the airport, you'll see we are ready for the festivities to begin!

So this week I'm sharing a variety of World Cup and soccer / voetbal / fútbol / football links related to data and analytics.

I'll be rooting for the red, white, and blue -- give a quick reply and tell me what team you're following. (Remember this helps avoid spam filtering.)

Help your company upskill on APIs
Next week (June 16) I'll be speaking on a virtual panel with APIDays.

Sign up to watch live or catch the recording (be sure to +1 the tickets on the registration page): How Leading Companies Upskill Teams on APIs

World Cup articles, models, dashboards

Here are some data-focused views of the world cup:

Soccer analytics, otherwise known as the search for xG

Beyond world cup, Soccer Analytics is a huge pastime and professional pursuit. Here's just a taste:

  • When you talk soccer analytics, you have to start with one metric: xG or expected goals. A true analytics-minded footballer will tell you that you don't evaluate a team's or player's future on actual wins or goals -- after all reality is messy. The real predictor is xG, what should have happened based on their behavior or ability. Everyone's got their on xG model (not unlike how every serious Kansas City cook has their own recipe for BBQ sauce). Here's an alternative model from Marc Lamberts, a Dutch data expert and soccer analytics fan: Expected Shot Danger: building an alternative to xG.
  • Hudl Statsbomb is an og leader in Soccer analytics. They offer a lot of Python tools, including their Statsbombpy library I wrote about in my book.
  • There have been quite a few books about the analytics revolution of professional soccer. Don't worrCheck out a solid list here: football analytics books.
  • I'm a big fan of Fantasy American Football -- I spend way to much time and brain cycles on this hobby. Why not check out some fantasy soccer? The big boy in the market is Fantasy Premier League, but other Big Five leagues have their own.

⚽ Hope you reach all your goals this week. ⚽

Keep coding,

Ryan Day

👉 https://tips.handsonapibook.com/ -- no spam, just a short email every week or so.

Unsubscribe | Update your profile | 600 1st Ave, Ste 330 PMB 92768, Seattle, WA 98104-2246

Ryan Day

Every week or two I share tips for hands-on skills related to data science, APIs, and AI. From the author of Hands-on APIs for AI and Data Science:Python Development with FastAPI from O'Reilly Publishing

Read more from Ryan Day

Hi Tip-Sheeters, This week has an everything-old-is-new-again flavor: we're looking at building command line interfaces (CLIs) for APIs. You remember those old things: the somewhat cryptic tools you run in a linux prompt or from your Mac's terminal. Well they're having a moment in the AI and API space because they're a useful way for agents to call your APIs. And we're going to build one for the Air Travel API. Read to the end to see an LLM use the CLI in an agent harness. Back from Summer...

Ricardo Heredia Joya

Hi Tip-Sheeters, This week I'm sharing highlights of virtual chat I had with Ricardo Heredia Joya, a Madrid data scientist with a background as a medical doctor. He is active in the Football analytics community, and shares his thoughts and tips in the Underdoc substack. (If you're enjoying the Tip Sheet I'm sure you'll get a lot from Ricardo's newsletter.) You are your best asset, so never stop learning. - Ricardo Heredia Joya Q1: Thanks for having a virtual chat with the Tip Sheet...

Hi Tip-Sheeters, I've been looking forward to this week's newsletter for a while -- The One Where I Deploy to FastAPI Cloud (fans of TV's Friends may appreciate the title). Since I began using FastAPI, some of the best improvements I have seen have been in the "fastapi" command line interface program. CLIs have become pretty important in their own right lately so if you're interested in the code for the FastAPI CLI you can see it here: https://github.com/fastapilabs. The CLI is built with...