The Horse-Racing Problem—A Bayesian Approach