News for hackers. Stuff that matters.
Re:Coin Flip Brain Teaser by aidenn0 on Friday July 24, 2009 @12:57PM (#721876)
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.

There are no comments on this comment yet.