I’ve occasionally wondered whether the secret to love is mathematics and I’m not the only one. Mathematics is full of perky ideas about matching or sorting that have a veneer of romantic promise. But for all their beauty and cleverness, one often feels that such ideas are a far better introduction to mathematics than they are to dating.

Consider the Gale-Shapley algorithm, which dates from 1962 but won Lloyd Shapley a Nobel Memorial Prize in economics just a couple of years ago. The algorithm is a way of assigning matching pairs in a stable way. By “stable”, we mean that no two people would do better ignoring the algorithm and instead making a side-arrangement with each other. The Gale-Shapley algorithm can be used for matching students to university places, or kidney donors to kidney recipients. However, it is most famously described as a way of allocating romantic partners. It is, alas, ill suited to this task, since it skips over the possibility of homosexuality, bisexuality, polyamory or even something as simple as divorce. (1962 is on the phone ... it wants its algorithm back.)

But if pure mathematics cannot help, surely statistics can? Internet dating promises to move us away from abstractions to the more gritty reality of data. Simply type in everything you have to offer, in great detail, and let the computer algorithm find your match. What could be simpler or more efficient?

Perhaps we should be a little cautious before buying into the hype. After all, such promises have been made before. The journalist Matt Novak has unearthed an article from 1924’s Science and Invention magazine in which the magazine’s publisher Hugo Gernsback explained that humans would soon enjoy the same scientific matchmaking approach then lavished on horses. The science included the “electrical sphygmograph” (it takes your pulse) and a “body odour test” (sniffing a hose attached to a large glass capsule that contains your beau or belle).

Then, in the 1960s, enterprising Harvard students set up ‘Operation Match’. It was a matchmaking service powered by a punch-card IBM computer. Despite breathless media coverage, this was no more scientific than Gernsback’s sphygmograph. According to Dan Slater’s Love in the Time of Algorithms, the men who founded Operation Match were hoping for the first pick of the women themselves.

One subscriber expressed the advantages and limitations of digital dating very well: “I approve of it as a way to meet people, although I have no faith in the questionnaire’s ability to match compatible people.”

Quite so. ‘Operation Match’ was a numbers game in the crudest sense. It was an easy way to reach lots of nearby singles. There should be no pretence that the computer could actually pair up couples who were ideally suited to each other.

Perhaps we simply need more data? OkCupid, a dating site with geek appeal and a witty, naughty tone, allows you to answer thousands of questions: Anything from “Do you like the taste of beer?” to “Would you ever read your partner’s email?” Users typically answer several hundred such questions, as well as indicating what answer they would hope for from a would-be date, and how important they feel the question is.

Again, media reaction has been credulous. Every now and then we hear of nerds who are living the dream, playing OkCupid’s algorithms with such virtuosity that love is theirs to command. Wired magazine introduced us to Chris McKinlay, “the math genius who hacked OkCupid”. McKinlay, we are told, downloaded a dataset containing 20,000 women’s profiles and six million questionnaire answers, optimised his own profile and unleashed an army of software bots to draw women in. He was a data-driven love-magnet.

But OkCupid’s own research suggests this is all rather futile. In one controversial experiment, it took a collection of pairs of users who were a poor match, according to the OkCupid algorithm — and then told them instead that they were highly compatible. One might expect that these not-really-compatible couples would find that their conversations quickly fizzled. In fact, they did scarcely less well than couples where the algorithm genuinely predicted a match. In short, whether the computer reckons you’re a love match or not isn’t a piece of information that anyone should take seriously.

Hannah Fry, author of The Mathematics of Love, expresses the problem neatly. The algorithm, she says, “is doing exactly what it was designed to do: Deliver singles who meet your specifications. The problem here is that you don’t really know what you want.”

Quite so. The list of qualities that we might want in a partner — “fascinating, sexy, fun, handsome, hilarious” — are a poor match for the list of qualities one could share with a computer database — “likes beer, boardgames, Malcolm Gladwell and redheads”. If the computer cannot pose the right questions it is hardly likely to produce the right answers.

As for McKinlay, no doubt we all wish him well. He announced his engagement to Christine Tien Wang — the 88th woman he met in person after spending months in the middle of a perfect dating storm. His experience suggests that just as with ‘Operation Match’, the matching process is nonsense and the secret to finding love is to date a lot of people.

— Financial Times

Tim Harford’s latest book, The Undercover Economist Strikes Back, is now available in paperback.