typhon
typhon copied to clipboard
Probability of a bad partition
Stated generally, given N
validators, of which f
are faulty:
- If we assign each validator (uniformly and independently at random) one of
K
partitions, what are the odds that:- no partition has more than
x
faulty validators? - every partition has at least
y
non-faulty validators? - no partition has a ratio of faulty validators / non-faulty validators greater than
z
? - no partition is empty?
- no partition has more than
- If we choose
K
(possibly overlapping) subsets of validators (uniformly at random), each of sizeS
, what are the odds that:- no subset has more than
x
faulty validators? - every subset has at least
y
non-faulty validators? - no subset has a ratio of faulty validators / non-faulty validators greater than
z
? - every validator is in a subset?
- Is there anything convenient about the special case where
K
×S
=N
?
- no subset has more than
- If we (uniformly at random) partition the validators into
K
(non-overlapping) partitions, each of sizeS
(soK
×S
=N
), what are the odds that:- no partition has more than
x
faulty validators? - every partition has at least
y
non-faulty validators? - no partition has a ratio of faulty validators / non-faulty validators greater than
z
? - what if instead of all being size
S
, each partition has sizeS
orS+1
, andK
×S
<N
<K
×(S
+1)?
- no partition has more than
These seem like classic Balls & Bins problems, but I don't know the answers.
These probabilities could be important in calculating the odds that a randomly-selected "shard" of validators is correct.