Skip to content

Instantly share code, notes, and snippets.

@mirokuratczyk
mirokuratczyk / main.py
Created September 17, 2021 21:30
Corruption Thresholds
from scipy.stats import hypergeom
from scipy.stats import binom
M = 100 # total number of nodes
N = 10 # number of randomly selected nodes in a committee
n = 10 # number of corrupted nodes
k = 5
print("# Hypergeometric distribution")

Keybase proof

I hereby claim:

  • I am mirokuratczyk on github.
  • I am sk8 (https://keybase.io/sk8) on keybase.
  • I have a public key whose fingerprint is 13AC 73F2 8E99 3A99 15BF 796A 4EAE 11AB CD12 F65F

To claim this, I am signing this object: