The modern use of algorithms to predict human behaviour feels sinister, but they are older and more human than we might imagine