Skip to main content
Scientific Principles

Are You There, God? It’s Me, Bayesian Inference

This text challenges the assumption that more data always leads to better predictions, using examples like weather forecasting (chaos theory) and the Netflix Prize to illustrate inherent limits in inference, especially for human behavior.

THE IDEA

ARE YOU THERE, GOD? IT’S ME, BAYESIAN INFERENCE

The age of Big Data is frightening to a lot of people, and it’s frightening in part because of the implicit promise that algorithms, sufficiently supplied with data, are better at inference than we are. Superhuman powers are scary: beings that can change their shape are scary, beings that rise from the dead are scary, and beings that can make inferences that we cannot are scary. It was scary when a statistical model deployed by the Guest Marketing Analytics team at Target correctly inferred based on purchasing data that one of its customers—sorry, guests—a teenage girl in Minnesota, was pregnant, based on an arcane formula involving elevated rates of buying unscented lotion, mineral supplements, and cotton balls. Target started sending her coupons for baby gear, much to the consternation of her father, who, with his puny human inferential power, was still in the dark. Spooky to contemplate, living in a world where Google and Facebook and your phone, and, geez, even Target, know more about you than your parents do.

But it’s possible we ought to spend less time worrying about eerily superpowered algorithms and more time worrying about crappy ones.

For one thing, crappy might be as good as it gets. Yes, the algorithms that drive the businesses of Silicon Valley get more sophisticated every year, and the data fed to them more voluminous and nutritious. There’s a vision of the future in which Google knows you; where by aggregating millions of micro-observations (“How long did he hesitate before clicking on this. . . . how long did his Google Glass linger on that. . . .”) the central storehouse can predict your preferences, your desires, your actions, especially vis-à-vis what products you might want, or might be persuaded to want.

It might be that way! But it also might not. There are lots of mathematical problems where supplying more data improves the accuracy of the result in a fairly predictable way. If you want to predict the course of an asteroid, you need to measure its velocity and its position, as well as the gravitational effects of the objects in its astronomical neighborhood. The more measurements you can make of the asteroid and the more precise those measurements are, the better you’re going to do at pinning down its track.

But some problems are more like predicting the weather. That’s another situation where having plenty of fine-grained data, and the computational power to plow through it quickly, can really help. In 1950, it took the early computer ENIAC twenty-four hours to simulate twenty-four hours of weather, and that was an astounding feat of space-age computation. In 2008, the computation was reproduced on a Nokia 6300 mobile phone in less than a second. Forecasts aren’t just faster now; they’re longer-range and more accurate, too. In 2010, a typical five-day forecast was as accurate as a three-day forecast had been in 1986.

It’s tempting to imagine that predictions will just get better and better as our ability to gather data gets more and more powerful; won’t we eventually have the whole atmosphere simulated to a high precision in a server farm somewhere under The Weather Channel’s headquarters? Then, if you wanted to know next month’s weather, you could just let the simulation run a little bit ahead.

It’s not going to be that way. Energy in the atmosphere burbles up very quickly from the tiniest scales to the most global, with the effect that even a minuscule change at one place and time can lead to a vastly different outcome only a few days down the road. Weather is, in the technical sense of the word, chaotic. In fact, it was in the numerical study of weather that Edward Lorenz discovered the mathematical notion of chaos in the first place. He wrote, “One meteorologist remarked that if the theory were correct, one flap of a sea gull’s wing would be enough to alter the course of the weather forever. The controversy has not yet been settled, but the most recent evidence seems to favor the sea gulls.”

There’s a hard limit to how far in advance we can predict the weather, no matter how much data we collect. Lorenz thought it was about two weeks, and so far the concentrated efforts of the world’s meteorologists have given us no cause to doubt that boundary.

Is human behavior more like an asteroid or more like the weather? It surely depends on what aspect of human behavior you’re talking about. In at least one respect, human behavior ought to be even harder to predict than the weather. We have a very good mathematical model for weather, which allows us at least to get better at short-range predictions when given access to more data, even if the inherent chaos of the system inevitably wins out. For human action we have no such model and may never have one. That makes the prediction problem massively harder.

In 2006, the online entertainment company Netflix launched a $1 million competition to see if anyone in the world could write an algorithm that did a better job than Netflix’s own at recommending movies to customers. The finish line didn’t seem very far from the start; the winner would be the first program to do 10% better at recommending movies than Netflix did.

Contestants were given a huge file of anonymized ratings—about a million ratings in all, covering 17,700 movies and almost half a million Netflix users. The challenge was to predict how users would rate movies they hadn’t seen. There’s data—lots of data. And it’s directly relevant to the behavior you’re trying to predict. And yet this problem is really, really hard. It ended up taking three years before anyone crossed the 10% improvement barrier, and it was done only when several teams banded together and hybridized their almost-good-enough algorithms into something just strong enough to collapse across the finish line. Netflix never even used the winning algorithm in its business; by the time the contest was over, Netflix was already transitioning from sending DVDs in the mail to streaming movies online, which makes dud recommendations less of a big deal. And if you’ve ever used Netflix (or Amazon, or Facebook, or any other site that aims to recommend you products based on the data it’s gathered about you), you know that the recommendations remain pretty comically bad. They might get a lot better as even more streams of data get integrated into your profile. But they certainly might not.

Which, from the point of view of the companies doing the gathering, is not so bad. It would be great for Target if they knew with absolute certainty whether or not you were pregnant, just from following the tracks of your loyalty card. They don’t. But it would also be great if they could be 10% more accurate in their guesses about your gravidity than they are now. Same for Google. They don’t have to know exactly what product you want; they just have to have a better idea than competing ad channels do. Businesses generally operate on thin margins. Predicting your behavior 10% more accurately isn’t actually all that spooky for you, but it can mean a lot of money for them. I asked Jim Bennett, the vice president for recommendations at Netflix at the time of the competition, why they’d offered such a big prize. He told me I should have been asking why the prize was so small. A 10% improvement in their recommendations, small as that seems, would recoup the million in less time than it takes to make another Fast and Furious movie.

When to use it

  • A marketing team trying to predict customer churn based on past behavior must recognize that human behavior is not as predictable as a physical system due to chaos and changing preferences.

  • A weather forecaster knows that predictions beyond two weeks are inherently unreliable, so they focus on short-term forecasts.

  • A policy maker using economic models to predict the effects of a new law must account for the chaotic nature of human responses.

  • A data scientist working on recommendation systems should temper expectations of perfect accuracy due to the complexity of human taste.

FROM THEORY TO EVERYDAY LIFE

In practice

01

Target's Pregnancy Prediction

Target used a statistical model to infer a teenage girl's pregnancy from her purchasing patterns (unscented lotion, supplements, cotton balls) and sent her baby coupons, alarming her father who was unaware. Data-driven inference can be powerful, spooky, and fallible.

02

Netflix Prize Challenge

Netflix offered $1 million for a 10% improvement in movie recommendation accuracy. Contestants had a large dataset but it took three years and a hybridized algorithm to achieve the goal. Netflix never used the winning algorithm, and recommendations remain imperfect, highlighting the difficulty of predicting human preferences even with abundant data.

✳

A MOMENT TO REFLECT

Put it to work.

  1. Think of a time when a data-driven prediction about your behavior was surprisingly accurate or inaccurate. What factors might explain the outcome?

  2. How does the concept of chaos (sensitive dependence on initial conditions) apply to long-term predictions in your field?

  3. Why might Netflix's recommendations still be imperfect despite having vast amounts of data? What are the inherent limits?

CONTINUE THE CONVERSATION

Source texts

  • How Not to Be Wrong The Power of Mathematical Thinking (Ellenberg, Jordan)
← More scientific principles