We are selectors for a cricket team who wish to make decisions based on data around the success or otherwise of our players’ strategies or relative performances that we trust and believe to be comparable.
If we follow Bayes’ procedure to calculate the probability that the “real” average runs scored, b, by our batsman as player B (batting as “Bazball”) is greater than that of the same batsman as player A, a (batting as “Anodyne”) for data set averages and respectively for the player, and with n and m data points, then setting and , we find that:
where we have assumed a Poisson distribution to parametrise the average numbers of runs scored in the two strategies, and the Jeffreys’ uninformative prior distribution for this model.
For example, if there are innings at for A, and innings at for B, then we find that the above equation and the odds are almost 3:1 on that the strategy as B has a greater average than that of the player as A. If we have a rule that the odds on a strategy for at least 5 innings must be better than 4:1 on, then our decision in this case would be to ask the player to continue to bat as A, pending more information. If we only required 2.5:1 then we would be inclined to try strategy B for this player.
Another angle on this is to look at the average number of balls `survived’ by the player in an innings, with the two strategies. That is, I am interested in the number of balls faced at the point the player is out. To model this, I start from the Pascal distribution with an uninformative (uniform) prior, since this distribution is a discrete one which models a future number of independent trials, which contain failures. I have for this case, as cricket is unforgiving! The end of the trials is on the nth ball, when the player fails, i.e. is out. This simplifies things:
where is the probability of getting out on any given ball and is the random quantity realised as in a given trial (innings), the number of balls received up to and including getting out. The mean of the quantity is . This makes sense, as the number of balls faced in an innings is greater than or equal to one. Our prior distribution (density) for the unknown value of p was taken to be . The Beta family is conjugate with respect to the Pascal distribution (negative binomial distribution), in such a way that for prior , the posterior is also a Beta density with parameters and , where is the mean of the data and there were trials (innings). Since the conditional probability density is:
where and . This means that if we compare two sets of innings, n and m, with average balls faced until getting out, and respectively, then, relabelling the respective unknowns we find the probability of B getting out sooner being greater than that of A is:
where and and are constants calculated from the data, which normalise the integrals. From this probability we can deduce the odds that one strategy is longer-lasting than the other, ignoring run rates this time.
We can then also simplify by converting the discrete geometric distribution to the continuous, and computationally slightly easier exponential distribution . The resulting relative probability, corresponding to and in good agreement with the equation above, is:
where and are the real probabilities of getting out on the next or any given delivery, given by the inverse of the respective real average numbers of balls faced up to the point of failure, i.e. getting out. The in the integrand is the generalised, incomplete Gamma function arising from the first integration over all cases in the joint distribution where . Note that the integral this time is over all cases from zero to one since the variables (and ) are probabilities.
One can compare a set of innings in A and B modes, this time ignoring runs scored but focusing on how long the innings were and again perhaps having a rule for deciding which strategy is optimal and how to apply the rule to make the judgement.
If in the first strategy A the player stays at the crease for an average of balls, in innings and in strategy B, balls, in innings, I find that the probability that the unknown parameter , representing the probability of getting out next ball in strategy B is higher than the unknown parameter , representing the probability of getting out next ball in strategy A is 0.623 in the exponential distribution calculation. The Pascal calculation gave 0.626, under off.
The applications for this kind of Bayesian joint-probability A/B comparison to get simple odds for or against are miriad and go far beyond the tip of the iceberg which is sport strategy; they are numerous in business and governmental strategy.