Exemples
Check an alphabet with no repeated letters
With each letter occurring once, no pair of distinct positions can match.
Entrée
ABCDEFGHIJKLMNOPQRSTUVWXYZExpected answer
Tolerance ±1e-120Measure the all-identical-letter boundary
Every pair matches, so the index is exactly 1.
Entrée
EEEEEEEEExpected answer
Tolerance ±1e-121Ignore case, punctuation and digits in a small sample
Only aabb contributes: 4 matching ordered pairs among 12 ordered pairs.
Entrée
Aa! Bb? 2026Expected answer
Tolerance ±1e-120.3333333333333333Measure a short quotation from Alice in Wonderland
This short-sample statistic is not a reliable language or encryption detector.
Entrée
Curiouser and curiouser!Expected answer
Tolerance ±1e-120.08095238095238096Measure the newspaper headline embedded in Bitcoin genesis
The spaces, slash and date digits are removed before letter frequencies are counted.
Entrée
The Times 03/Jan/2009 Chancellor on brink of second bailout for banksExpected answer
Tolerance ±1e-120.05176470588235294Index of Coincidence
Entrée
Hello world, this is a test to determine the correct IC value.Expected checks
Matches /^Index of Coincidence: 0\.07142857142857142\nNormalized: 1\.857142857142857/