In the 18th century the British minister and mathematician Thomas Bayes devised a theorem that allowed him to assign probabilities to events that had never happened before. It languished in obscurity for centuries until computers came along and made it easy to crunch the numbers. Now as the foundation of big data Bayes formula has become a linchpin of the digital economy.