Mathematician Predicts Who Will Live and Die in Game of Thrones

Game of Thrones fans love to guess what's coming next to the hyper-violent, ultra-sexual fantasy novels by George R.R. Martin. But while most base their predictions on a close reading of the books---and a little imagination---Richard Vale is taking a different tack.
gameofthronesmathinline
HBO

Game of Thrones fans love to guess what's coming next in the hyper-violent, ultra-sexual fantasy novels from George R.R. Martin. But while most base their predictions on a close reading of the books---and a little imagination---Richard Vale is taking a different tack.

He's using Bayesian statistics, a field of mathematics often used to assess the probability of future events.

In what might be the first mathematics paper to include a spoiler warning in its abstract, Vale---who teaches statistics at the University of Canterbury---attempts to predict which characters will receive the most attention in the next two Martin books by analyzing the number of chapters dedicated to each of them in the previous five books.

The paper started as an explanatory tool for his students. "I was actually using the data to illustrate some exploratory data analysis techniques in class," Vale says, "and I wondered whether you could find out anything interesting by modeling it." But it could also serve as a a way of testing the efficiency of the particular data model he uses. And, more than anything else, it's good geeky fun.

The Model

The idea is simple. Each chapter in the first five Song of Ice and Fire books is told from the point of view of a particular character, and Vale used the number of chapters dedicated to each character in each book to create a simple mathematical model to predict how many chapters might be dedicated to each character in the next two books. Of course, this method can't predict specific storylines and plot twists. But it does allow for some educated guesses.

"Presumably, dead implies zero POV chapters," Vale says. "So there should be a small amount of information about the potential deaths of characters if we believe the model." For example, Vale's predictions put the odds of Jon Snow having zero chapters in the sixth book at about 38 percent, and the odds of him having zero chapters in the seventh book a little over 67 percent. In other words, based solely on the model, it appears Snow may well be dead by the end of the sixth book.

But Vale doesn't put much stock in his own predictions. "I am cautiously pessimistic about the model's chances of giving a good prediction," he says.

The Dearth of Data

That's partially because there's not much data available. Even at a whopping 5,216 pages, five books doesn't give Vale much to go on. There's also no real reason to believe there's a predictable pattern to how many chapters a character will drive before being killed off. And, of course, the model doesn't take the content of the previous books into account. That leads to some plainly wrong predictions.

The model says it's possible that there will be chapters dedicated to characters already dead, for instance, and it says some characters, who are clearly alive, may not appear in any chapters. "In general, the best predictions are obtained by a combination of modelling and common sense," Vale wrote in the paper. "Here we focus entirely on the modeling side and leave common sense behind."

One of the big ideas of Bayesian statistics is that you can update your predictions as new data becomes available. So, once the sixth book is out, Vale could add that data to the model to make a set of updated predictions about the seventh book. But he doubts the model will actually do well enough for him to bother updating it with fresh data. Plus, he's heard rumors that Martin will abandon the practice of writing each chapter from a different character's point of view, which would break the entire model.

Ultimately, this is probably more of a lesson in what not to do when building a mathematical model. But while the paper might not help you win any betting pools, it does help get a sense of how mathematicians approach predictions---at least when they don't have much else to go on.