3 ms·
With GNU R: require(graphics) netgain <- function(x) { 2*qbinom(.01,x,.51)-x } plot(1:25000,netgain(1:25000)) plot(10000:15000,netgain(10000:15000)) T
by aidenn0 17y ago
With GNU R:
require(graphics)
netgain <- function(x) { 2*qbinom(.01,x,.51)-x }
plot(1:25000,netgain(1:25000))
plot(10000:15000,netgain(10000:15000))
The first plot is interesting because it shows you are not expected to win anything with 99% certainty until around 13000 tosses.