Re:Similarity join (Min-hash)
by yellowflash on Monday July 04, 2022 @06:00AM
(#31975354)
The probability of the `b` being chosen for A is 1 (No other choice) and for B it is 1/2. The probability of `b` being chosen for both (The only common token), is |{(b,b)}| / |{(a, a), {(a, b)}| = 1/2 which is jaccard's similarity |{b}|/|{a, b}|
I could have explained that a bit better I suppose.
The net result of the hashing etc. is to shuffle the unique elements of A union B. In that shuffled union, the first element is in at least one of A or B; if it's in both it's in the intersection. The chance of that is J.
That's clear, call this P1
> The probability that two documents A and B having the same representative token is, equal again to Jaccard’s similarity
That's less clear (call this P2) and not equivalent to the first statement, afaict. In fact, this probability seems lower than the previous one. Consider the table:
This counts as matching under P1, but not under P2.What am I missing here?
In order words, the number of cases where `reptoken(A) = reptoken(B)` is a subset of cases where `reptoken(A) is in B`