3 ms·
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
by klipt 5y 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).
- peeters 5y agoAh thanks for the explanation. Makes a lot more sense with the fractional expansion.