Skip to content

Instantly share code, notes, and snippets.

View dgenr8's full-sized avatar

Tom Harding dgenr8

  • California, US
View GitHub Profile
@dgenr8
dgenr8 / stickygate.py
Created November 30, 2016 15:40 — forked from awemany/stickygate.py
Python code awemany vs. dgenr8 block depth probability
#!/usr/bin/env python
import numpy as np
from scipy.special import binom
from scipy.integrate import quad
from scipy.stats import erlang
######################################################################
# awemany: look at binomial
def bprop(k, n, p):
"""Binomial probability density.
Probability of drawing exactly k x-like items out of n total, where