If you have ever placed a bet on a horse race or been to a race course, you will know how difficult it is to predict the winner.