On the distribution of k-tuple matches for sequence homology: a constant time exact calculation of the variance.
We study the distribution of a statistic useful in calculating the significance of the number of k-tuple matches detected in biological sequence homology algorithms. The statistic is Rn,k, the total number of heads in head runs of length k or more in a sequence of iid Bernoulli trials of length n. Calculation of the mean is straightforward. Poisson approximation formulas have been used for the variance because they are simple and powerful. Unfortunately, when p = P(Head) is large, the Poisson approximation no longer works well. In our application, p is large, say .75, and we have turned instead to direct calculation of the variance. Surprisingly, we are able to show that the variance, which is based on the interactions of O(n2) random variables, can be computed in constant time, independent of the length of the sequence and probability p. This result can be used to calculate the mean and variance of a number of other head run statistics in constant time. Additionally, we show how to extend the result to sequences generated by a stationary Markov process where the variance can be calculated in O(n) time.
Benson
G
G
Department of Biomathematical Sciences, Mount Sinai School of Medicine, New York, NY, USA.
Su
X
X
D000465:Algorithms; D004247:DNA / Q000737:chemistry; D008390:Markov Chains; D009154:Mutation / Q000235:genetics; D011336:Probability; D012091:Repetitive Sequences, Nucleic Acid / Q000235:genetics; D017386:Sequence Homology, Amino Acid; D013223:Statistics as Topic
D004247:DNA