E11: fluctuation of excess prevalence in ideal families

Generated by python3 tools/experiments/e11_ideal_fluctuation.py. Never edit by hand.

Relation \(\Phi(E_k)=[E_k(x)=y]\) for fixed \(x,y\) in an ideal cipher: each key satisfies it independently with probability \(q_0=2^{-b}\), so the number of matching keys in one sampled family is Binomial(\(N\), \(q_0\)). 200,000 families per row, seed 11. Counts are sampled from the binomial directly; no cipher is built. \(z\) is the excess count in null standard deviations.

Ideal families only

keys N q0 expected matches sd share with kappa > 1 kappa, 99.9th percentile share with z > 3 share with z > 5 kappa needed for z = 5
2^16 2^-8 256 16.0 0.485 1.199 0.00182 0.000000 1.312
2^20 2^-8 4096 63.9 0.497 1.049 0.00154 0.000000 1.078
2^16 2^-12 16 4.0 0.433 1.875 0.00411 0.000015 2.250

A planted class of extra matching keys (N = 2^16, q0 = 2^-8)

planted keys mean kappa excess prevalence delta passes kappa > 1 passes z > 5
0 1.000 0.00000 0.486 0.000
16 1.062 0.00024 0.832 0.000
48 1.187 0.00073 0.999 0.025
80 1.311 0.00122 1.000 0.500
160 1.623 0.00244 1.000 1.000
1024 4.984 0.01562 1.000 1.000

Reading: a strict \(\kappa>1\) admits about half of all ideal families, so it cannot serve as a membership test for a sampled or measured family. A test against the null distribution rejects ideal families at the stated rate and needs an excess of several standard deviations (here about 80 keys) before a planted class is detected. For a fixed construction whose \(\Pr_K[\Phi]\) is known exactly there is no sampling error and the question is the size of the excess, not its sign.