Hacker News new | ask | show | jobs
by klipt 1724 days ago
p is a probability in range [0, 1]. So if p = 1/128, the expansion is 0.0000001.

In this case the algorithm says you return tails unless you flip 7 heads in a row (which happens with probability 1/128).

1 comments

Ah thanks for the explanation. Makes a lot more sense with the fractional expansion.