Bernoulli trial
The integer treated by Golomb was the run length of a Bernoulli process, which has a geometric distribution starting at 0. The best choice of parameter is a function of the corresponding Bernoulli process, which is parameterized by formula_8 the probability of success in a given Bernoulli trial. is either the median of the distribution or the median +/− 1. It can be determined by these inequalities: