a blogaboutatom

Data Science Mostly Isn't

May 1, 2023

A classic use for data science at a technology company is a feature A/B test which tries to improve revenue or engagement metrics on the product.

It goes like this:

  1. Ask a question: can we drive more users to pay for our product by changing, say, the color of the sign-up button?
  2. Formulate a hypothesis: what if we make it a big grey button? A big red button? A big flashing red button?
  3. Do an experiment: implement each of the variants and randomly assign some visitors to each one, measuring the signup rate under each hypothesis.
  4. Analyse the results: perform a mathematical ritual which determines if the changes made a “statistically significant” difference in sign-up rates. Interpret this to mean that the resulting sign-up rate is not simply due to random variation, and identify whether the winning variant actually caused more sign-ups to happen.
  5. Conclude things: if one of the variants clearly emerged as a winner, commit to that result and remove the others from code. Don’t forget to also mass-email folks and show off the results of your experiment and claim credit for driving X% signups / revenue / whatever. Good on you, promotions all around. Stick it on your resume.

We might call this the Data Science Scientific Method. It certainly looks like we did some “Science”. After all, isn’t this how Science worked on those triptychs?

As everyone knows, Science is good— it’s the only way to be right, to avoid bias, guesswork, and blind spots. In fact, everyone at the company also knows that everyone else knows that Science is good, so there’s no need to even discuss it. Just carry on with doing the Science, being right, and making money. It’s working, too, so you know it’s right: this Science is getting good results, converting customers, winning promotions and whatnot, and making lots of money. Everyone is very pleased to be part of this big rational machine that’s smarter than any of the individuals it comprises.

Two problems:

  1. That’s not what science is, like at all.
  2. That big rational machine is somehow dumber than a single person.

You know what data science “experiment” I’ve never seen anyone do? Test the question “can one person, using their intuition and maybe asking around a bit, make better decisions than our whole data science organization?”. ‘Cause if so, then maybe you should just give that person all the decision-making power and do whatever they say for a while. You’ll save a lot of money on compute alone.

Or, do better science. Science is, indeed, about being right. Just because you did a thing that you called Science, and which everyone thinks is Science at a New-York-Times-reader level of understanding, doesn’t mean you’re right. The fact that you made money successfully doesn’t even make you right! At best you were provably right at the small question of “which of these colors of button gets more clicks over the next little while”; probably not at the bigger question of “what’s the optimal way to make more money” and definitely not on the even-bigger question of “what’s the best thing to do for the business to succeed.”

What Science Is

Let’s get this out of the way. This is not science:

  1. Ask a question
  2. Formulate a hypothesis
  3. Do an experiment
  4. Analyse the results
  5. Conclude things

Science is not a formulaic process anyway, but if it was it would have to be a process that by construction converges on better understanding over time. Here’s a better list of steps:

  1. Learn, Observe, and Study
  2. Conceive of a model of the world that makes sense from what you know. If it’s not obvious you might need to check it.
  3. Ask a question (that your model has something interesting to say about…)
  4. Formulate a hypothesis (about what answer your model would give if it were correct that other models would not give)
  5. Do an experiment
  6. Analyse the results
  7. Conclude things (about the accuracy of your model)
  8. Update your confidence in your model based on the result. Go back to step (2) until it’s good.
  9. Go and do things in the world using your model now that you know it’s good.

If you don’t formulate a model as you go, or use your experiments to test and improve that model, you’re not really doing anything that deserves to be called Science. You’re just doing… experiments, in a loop, without ever learning anything? You’re certainy not improving on your model over time.

As I see it, corporate data science isn’t ‘science’, because it isn’t really about building models or being right in the first place. Its real job is to make decisions. Or more precisely, to launder decisions: to make the decision-making process so benign and agreeable that nobody risks blame, for making mistakes or missing opportunities. You want me to understand how users’ minds work and then pick what color the button should be? But what if I’m… wrong? Better to let an experiment decide for us— nobody ever got fired for making the button whichever color people clicked on the most for two weeks last June.

Science is—has to be—the process of studying things in a way that necessarily becomes more correct over time. Asymptotically it should figure out the true workings of whatever slice of reality you’re looking at. This always involves building up theories of how reality works, and typically should require validating those theories with experiments to see how good they are, although, strictly speaking, that’s only useful inasmuch it gets you closer to correctness; you can get away without it sometimes.

In business, the theories are answers to the question “how should we run our company?”. That is, “what should all these people do?”. That experiment to see what color the button should be? It assumes, but never checks, that the answer to that question is this: “we should run experiments like this one all day and then do whatever they say into the future” You could also do some science on that hypothesis, if you wanted, but don’t bother; it’s pretty obviously wrong. We have plenty of evidence already: everywhere you look, data-science-driven companies are doing fantastically dumb things, and everybody who works at them knows it (and will happily tell you, with pained resignation!). And yet these companies carry on with their foolishness anyway—because their collective understanding is that they’re supposed to stay carefully on that sacred, data-driven path.

In the end it’s an absence of…

Leadership. Like so:

How do you do better than a bunch of one-off experiments that pretend to be scientific? For starters, write down and aggregate all the results of your little experiments in a way that can be used for future decisions, and then use that knowledge to, you know, make future decisions— in lieu of further experimentation. If every “no thanks I don’t want to buy your shit” button should be grey and invisible to press the psychological buttons that make you more money, and if doing so passes your own ethics (treating your customers with respect is, perhaps, not relevant here…), you don’t really need to test the next one. You already know! It will work!

“That sounds nice,” you think, and yet… a few quarters later… somehow you’re back where you were, doing that same experiment again, testing variants of buttons and user flows and whatever, even though it’s obvious how to make improvements without testing them. Why?

Well, it turns out there’s another reason people do this “science”, and it’s probably the main reason: it’s that they need to be able to take credit. If you knew the button color would help the business and your job was just a regular job where your responsibility is to do a good job at something, you’d just change the color to the color it should be and that would be it. But if you need to argue about getting a promotion, you need to attribute that revenue to something you did, because your annual review is gonna say “drove X% revenue growth via a series of changes” and if you don’t know how much you drove you can’t put it in there. Even if, and this is the painful part, the thing you did was obvious and the experiment was a total waste of time and money.

Maybe the only people who are in a position to put a stop to this are the people doing the evaluating. They should be smarter, smart enough to see that the experiments were a waste of time, smart enough to enough to see that “doing good work” isn’t the same as “getting good measurable results” and is in fact probably the opposite of it (because good work most often consists of what you build or grow or polish with volition and grit, and those are all (a) easy to see but (b) hard to quantify).

But as long as the evaluators don’t believe this is their job, we’re stuck. Even if they did they’re probably accountable to someone else who wants everything in numbers too, and they’re beholden to some rubric for evaluation, and anyway there’s no culture, none whatsoever, of evaluating things on their merits, in fact they’ll get ridiculed and reprimanded if they do that. What about their boss? Same thing. And the buck stops… the buck stops at… the shareholders? An amorphous machine that feeds only on numbers, and criminally-aggregated, fake, massaged, manipulated, a-whole-team-of-people-worked-on-this-narrative numbers at that, and they all know it and keep playing anyway. Good lord.

Incidentally, this train of thought, if you keep following it, leads to a weird subterranean viewing chamber where you gaze into the obsidian boulder and see reflected in it one of those dark truths of modern capitalism which underpin all society: that everything, products and performance reviews and promotions, design and engineering and marketing and the rest, are all doing this fake thing they call “science”, in lieu of making any kind of decisions whatsoever. Everybody everywhere has… offloaded… all responsibility… for everything… to math.

Once you see through the fog it is all clearly a farce. Is this person a good manager? No idea! Did they help people grow, or do more than the bare minimum at every step, or build something that will last? Can’t remember! Does it matter how good their management was? Who cares, what we want to know is, did they do measurable things to benefit the company? Heck yes, and we proved it—with science! Definitely promotion material. Annual bonus secured.

But aren’t people fallible?

Don’t get me wrong: if these same people one day started “making decisions”, with everything else unchanged, it would be disastrous. People can be really, really fallible. These people got their decision-making power without having to prove themselves by making lots of smaller decisions first. It was rarely a requirement to be any good at leadership at all.

If anything, the modern cargo-cult data-science age is probably a reaction to the last age, a time when tyrannical executives roamed the earth, doing whatever insanely dumb shit they wanted, checked only by the whims of their also-tyrannical superiors. Words like “systematic bias” or “logical fallacies” hadn’t been disseminated yet, so there wasn’t even language to explain why they were so wrong. And they had those positions not because they were the best at what they did, not because they earned it with hard work, but because they were, like, the right type of well-groomed white man who looks good in a sportcoat. I’ve heard it’s still like that in many parts of the world. But, you know, not in modern corporate America—we’re better than that. We use data now.

In a way, handing decision-making over to what is essentially an algorithm is a way of taking power away from powerful people and getting them to somehow go along with it. Which doesn’t sound so bad, really. If anything it’s the theme of the last century of progressivism.

Yet the result is, in a way, shameful. The organization is still clueless, only now it can’t as easily blame anyone for its clueless floundering. This arrangement can actually afford the people in power more protection: they’re less culpable for the consequences of their actions, because they don’t take actions. They still fail… but everything was decided by the data science. In fact everybody, in power or not, can say this: we just did what the data told us; we did everything right! Especially in tech, where money and therefore validation just blows in your door if you leave it open, these organizations can’t even tell how dumb they’re being. It all seems to be working! They’re still getting conversions; people are clicking on the ads; the stock price is good. When in fact the actual test of your hypothesis about how to run a business happens on far too slow a scale to get any feedback— decades, I guess. However long it takes a company to rot at its core, wither for a while, and finally go bankrupt. As long as the economy is good and the industry is ascendant, everybody gets plenty rich from mediocrity.

Well, fine. I, for one, don’t enjoy being part of this money-grubbing idiot machine at all. It’s no fun to spend your one life’s effort on stupid work. And even if you somehow avoid this fake science in your job, every product you use has already been ruined by it anyway (look no further than “every recommendation algorithm”). You would have to go live by yourself in the woods to get away from being affected by decisions that are obviously bad to everyone but looked good enough in the metrics. (Don’t even get me started on things that are actually good ways to make money but are totally evil you’d be ashamed telling your kids about. “The data told me to do it!” I bet it did, bucko.)

But hey. Maybe it’s a good thing that we’re already getting used to the idea of offloading all responsibility onto a machine we built to rule us. That might turn out to be propitious. :thinking-face: