Fixed output weights give an exact law for near-match counts among independent uniform binary words
Count the pairs of complete binary words at Hamming distance r or less. Each word is independent and uniform before conditioning on its specified weight. A column polynomial gives the full count law for every batch size. Any forest of pair tests has independent outcomes. Thus the variance is the sum of the individual pair variances, even when the weights differ. Triangles give the first correction to the third moment. For three 256-bit words with weights 127, 128 and 129, the chance of at least two pairs at distance 120 or less is 7.396841%. Without conditioning it is 7.832474%. Two exact integer methods agree on all bins. The calculation tests an ideal model for complete SHA-256 outputs.
Hamming distance · fixed weight · birthday probability · SHA-256 · pair count · hypergeometric distribution
Votes
Add voteNo votes to show.