A Bayesian Inference and Stochastic Dynamic Programming Approach to Determine the Best Binomial Distribution