How to cut your Python Docker build times in half with uv

March 4, 2024 update: This blog has been updated to reflect additions to uv as of 0.1.12, specifically the –system flag. See Addendum section for more information. When I heard that Charlie Marsh, the creator of Ruff, created a fast replacement for pip called uv, I dropped everything I was doing and added it to … Continue reading How to cut your Python Docker build times in half with uv

Should you ask data science job candidates this tricky math question?

The question Quantian1 on Twitter poses the following “junior data scientist” interview question: (You can check the replies for my answer!) This is a fun regression math / intuition question. In the spirit of appreciation for these types of interview questions, here are a few more. I leave solving these problems as an exercise to … Continue reading Should you ask data science job candidates this tricky math question?

Intuitive Explanation of Arithmetic, Geometric, & Harmonic Mean

If you Google for an explainer on the differences and use cases for the arithmetic mean vs geometric mean vs harmonic mean, I feel like everything you’ll find is pretty bad and won’t properly explain the intuition of what’s going on and why you’d ever do one or the other. In fact, you sometimes will … Continue reading Intuitive Explanation of Arithmetic, Geometric, & Harmonic Mean

Caveats and Limitations of A/B Testing at Growth Tech Companies

For non-tech industry folks, an “A/B test” is just a randomized controlled trial where you split users or other things into treatment and control groups, and then later compare key metrics across those groups and decide which one performed better, so you can learn whether the treatment or control group is preferable. For the context … Continue reading Caveats and Limitations of A/B Testing at Growth Tech Companies

Multiple Linear Regression in SQL with Only SUM() and AVG()

This post is inspired by someone dropping this in my mentions today: The technique the authors use is cute, but it’s not a true arbitrary multivariate regression. They cheat a little bit using dummy variables for the majority of their coefficients. I respect it, but it’s not an arbitrary regression. Fortunately, it is possible to … Continue reading Multiple Linear Regression in SQL with Only SUM() and AVG()

Advent of Code 2021 in Google Sheets: First 4 Days

You don’t need to be a “coder” to solve coding problems. If you know Microsoft Excel or Google Sheets, then you can solve these problems, too. There’s tons of overlap between coding and working in spreadsheets. Sign up for the 2021 Advent of Code here. Take a stab at these problems with Microsoft Excel or … Continue reading Advent of Code 2021 in Google Sheets: First 4 Days

Proximate Cause & Theories of Agency

I have deliberately avoided using this blog to engage in overt political discourse, but I’ve never barred myself from political metadiscourse. Political discourse is about our beliefs on governance; political metadiscourse is more about understanding how people arrive at those beliefs and how those beliefs are expressed. I’ve been posting on the internet for over … Continue reading Proximate Cause & Theories of Agency