E2: guessing under a biased generator
Generated by python3 tools/experiments/e2_biased_guessing.py. Never edit by hand.
Keys are 1 to N = 65536. Expected rank and success are computed exactly from the distribution, no sampling.
Generator: uniform
| Guessing order | expected rank | success, m = 1 | success, m = 255 | success, m = 4096 |
|---|---|---|---|---|
| descending probability | 32768.5 | 0.0000 | 0.0039 | 0.0625 |
| ascending label | 32768.5 | 0.0000 | 0.0039 | 0.0625 |
| fixed random | 32768.5 | 0.0000 | 0.0039 | 0.0625 |
Generator: Zipf, p proportional to 1/k
| Guessing order | expected rank | success, m = 1 | success, m = 255 | success, m = 4096 |
|---|---|---|---|---|
| descending probability | 5616.9 | 0.0857 | 0.5246 | 0.7624 |
| ascending label | 5616.9 | 0.0857 | 0.5246 | 0.7624 |
| fixed random | 31361.9 | 0.0001 | 0.0032 | 0.0442 |
Generator: defect on the 255 smallest keys
| Guessing order | expected rank | success, m = 1 | success, m = 255 | success, m = 4096 |
|---|---|---|---|---|
| descending probability | 3392.1 | 0.0035 | 0.9004 | 0.9062 |
| ascending label | 3392.1 | 0.0035 | 0.9004 | 0.9062 |
| fixed random | 34323.0 | 0.0000 | 0.0074 | 0.0415 |
Generator: defect on 255 scattered keys
| Guessing order | expected rank | success, m = 1 | success, m = 255 | success, m = 4096 |
|---|---|---|---|---|
| descending probability | 3392.1 | 0.0035 | 0.9004 | 0.9062 |
| ascending label | 32323.4 | 0.0000 | 0.0039 | 0.0804 |
| fixed random | 32326.5 | 0.0000 | 0.0074 | 0.0698 |
Result
- Descending-probability order has the lowest expected rank for every generator: confirmed.
- Under the uniform generator all orders tie (E1).
- Ascending order is good only when the defect happens to sit on small labels. With the same defect on scattered keys, ascending order does no better than a random order. What matters is the generator (\(D\), class B2), not how small the keys look.
Claim tested: taxonomy/classification.md I.4 (the population counterpart of B1 is a property of \(D\)).