Index Of Coincidence how often characters could theoretically appear
I use this for my Chi-squared formula
where CA is the count (not probability) of letter A, and EA is the expected count of letter A
English text will have an I.C. of around 0.06, uniformly distributed text will have an I.C. near 0.03-0.04.