You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when doing this bottom-b bit hashing, where you only store the 1 or 8 lowest bits of each hash, there is a 1/2 resp 1/256 collision probability.
For very dissimilar genomes, the number of random matches is binomial(s, 1/2), but the actual number of matches may actually be less than s/2 (s = #bins) because the standard deviation in the binomial also goes down. In fact you can have some true kmer matches but still be below s/2.
Either way, the takeaway is that you have to be careful in very low similarity settings, and make sure to report a jaccard similarity >=0.
Activity
RagnarGrootKoerkamp commentedon Aug 6, 2025
In simd-sketch I do something similar:
when doing this bottom-b bit hashing, where you only store the 1 or 8 lowest bits of each hash, there is a 1/2 resp 1/256 collision probability.
For very dissimilar genomes, the number of random matches is
binomial(s, 1/2), but the actual number of matches may actually be less thans/2(s= #bins) because the standard deviation in the binomial also goes down. In fact you can have some true kmer matches but still be belows/2.Either way, the takeaway is that you have to be careful in very low similarity settings, and make sure to report a jaccard similarity >=0.
johnlees commentedon Aug 6, 2025
Thanks @RagnarGrootKoerkamp! Will sort this here too