Using mixtures of common ancestors for estimating the probabilities of discrete events in biological sequences