Pushing Values to Zero

from blog NULL BITMAP by Justin Jaffray, | ↗ original
There is a popular presentation of the exponential distribution that goes through the geometric distribution. The geometric distribution arises from flipping a weighted coin until you see a heads, and reporting how long it took. It can be simulated with this code: def geo(p): count = 1 while rand() < p: count++ return count The...