Exploring MLB Statcast's New Bat Tracking Data


For the 2024 season, Major League Baseball (MLB) upgraded the Statcast cameras in each stadium so that path, extension, and velocity data can be captured for every swing. This data is now available in the Statcast portal, and it’s so cool that I couldn’t help but mess around with it!

To be honest, I haven’t had the time to put together a really thoughtful analysis of the data and how it interacts with batted ball metrics, pitch locations, game situations, etc. - but I have started visualizing the bat tracking data at an individual and team level, and found that it’s still pretty cool as a standalone dataset!

Read More

Will the Seine be Safe for Olympic Swimmers This Summer? The Parisian Government is Planning on it, Despite Mounting Data to the Contrary


A few months ago, I spent a week in Paris with my mom and sister, visiting museums and exploring the city. One of the more exciting things we stumbled upon was the 2024 Summer Olympics countdown timer in the Place de la Concorde, which signaled 7 months until opening ceremonies - pretty cool to see!

As we read about the government’s plans to host events throughout the city, we discovered that they intend to use the Seine to host swimming events - a proposal our group found to be completely laughable. If you’ve seen the river in person, you’ll know exactly what I mean - it’s wide, full of current, and notorious for being the final landing place for the city’s sewer runoff - so it’s no surprise that swimming has been illegal since 1923.

Read More

Published! How I Finished Off My 'Planes Overhead' App and Got It Published to the Tidbyt App Store


Last February, I began writing an app for my Tidbyt smart display. This April, at long last, I finally published it!

If you recall my initial post on the topic, I had planned to create a flight arrivals/departures board for my home airport, LAX. However, difficulties with metered API access (most data sources had low daily API caps of 50-200 uses) and schedule caching pushed me towards a “simpler” question to solve - can I identify planes flying overhead?

Read More

Dave Martinez and the Washington Nationals are Burning up the Basepaths to Start the 2024 MLB Season


Last year, the Washington Nationals finished 12th in baseball in stolen bases. This year, they’re 1st. What’s changed? In a word: Davey.

If we look at all managers coaching the same teams in 2023 and 2024, we find that Martinez has changed his approach the most, with his club more than twice as likely to attempt steals of second base. Changes in personnel are surely a factor, but it’s nevertheless remarkable to see an MLB manager change his approach so significantly on a year-over-year basis. I certainly thought it was a noticeable (and notable!) trend to open the season - wanted to write a quick post here to share!

Read More

Home Prices Remain High Despite Elevated Mortgage Rates, Creating an Affordability Crisis for Homebuyers


While not the primary focus of this website, the US housing market is nevertheless a notable interest of mine and something that I will post updates on from time to time.

Last summer, I wrote a piece hypothesizing that the large share of current mortgages being held with now-unattainably low rates would interact with the still-expensive price of homes to limit liquidity in the housing market by 1) “trapping” current homeowners in their current mortgages (“golden handcuffs”), reducing supply and 2) suppressing demand from buyers who cannot afford to buy homes which remain expensive, but have much higher borrowing costs.

Read More

Making Large CSVs Queryable via REST: A Case Study Using DBHub.io to Create a Serverless API for Aircraft Data


A few weeks ago, I posted some work-in-progress code that I’ve been putting together to identify planes flying overhead. One thing that I’ve really wanted to include in that data output, but which is not natively returned by the OpenSky States API, is the model of the plane flying overhead.

This post shows the unorthodox way that I’ve managed to make model information programmatically available, so that we can quickly query for any given plane callsign and retrieve its typecode. Let’s talk it through!

Read More

What do NFL Players Really Think About Their Teams? Visualizing NFLPA Team Report Cards for the 2023-2024 Season


This morning, the NFL Players Association (NFLPA) released their latest set of Team Report cards, following last year’s inaugural data. These report cards include grades by 1,706 players, scoring their own teams on a variety of player experience dimensions from A+ to F-.

This year, we saw Head Coach and Owner grades added on top of the eight areas from last year:

  • Treatment of Families
  • Food/Cafeteria
  • Nutritionist/Dietician
  • Locker Room
  • Training Room
  • Training Staff
  • Weight Room
  • Strength Coaches
  • Team Travel

When this data came out last year, I found the presentation a bit lacking - the NFLPA just dumped the data into an ugly, unwieldy table! As such, I found it an easy and valuable exercise to build two sets of artifacts to better communicate the report cards: first, a league-wide heatmap of grades, and second, division-by-division circumplex charts. Feel free to take a peek at that post to see the data and how I put those charts together.

Read More

Examining the More-than-Meets-the-Eye Relationship Between Exit Velocity and WAR for MLB Hitters


Looking at Statcast’s leaderboard of the hardest-hitting players in baseball makes it all seem so easy: simply acquire the guys who smash the ball the hardest, and then profit!

It looks almost foolproof - only Kyle Schwarber and Giancarlo Stanton put up below-average WAR figures from this group of 15 hitters, and most of the obvious best hitters in the league (Judge, Acuña, Ohtani, Seager, Alvarez, Soto) are prominently featured:

MLB Statcast Top Players by Average Exit Velocity in 2023

Read More

Identifying Planes Flying Overhead with Python and the OpenSky REST API


One of the many things I enjoy about living in Santa Monica is that it sits directly underneath the Western/Northern approach to LAX. Every 4 minutes, or so, a plane will fly directly overhead, having come across from Malibu, before continuing inland towards Downtown Los Angeles. There, it will execute a big sweeping turn that aligns it with the incoming traffic from the east, which it will zipper into for the final descent westward towards the sea.

Read More

Studying the NBA's Surge in High Scoring Individual Games


The past month of NBA basketball has been marked by a staggering amount of individual offensive brilliance, with Luka Doncic and Joel Embiid both going for 70 points, and Karl-Anthony Towns, Devin Booker, and Steph Curry all hitting the 60 point mark.

Prompted by this unique explosion of point scoring, I wanted to take a quick look at the history of high-scoring individual games, show how the recent events are really just the exclamation point on top of a long-term trend, and demonstrate how changes in the league’s offensive landscape have created a landscape more conducive to these outbursts.

Read More