« first day (1545 days earlier)      last day (2266 days later) » 

1:10 PM
Could someone here help me to simulate this problem in R:
17
Q: Significance of $0.63212\ldots$

intuitedI've always assumed on faulty intuition that if you have an event which occurs 1 in n chances, it will be super likely to happen at some point of that event occuring n times. However, given some analysis, it doesn't actually seem to be all that super likely, and seems to converge at a particular...

I've tried the following code:
NProb <- function(n)
{
p <- 1/n
x <- runif(n)
return(sum(x < p)/n)
}
But it didn't work as expected
Am I missing something obvious here?
Please someone here enlighten me...
I'm asking about the algorithm, not the code
Be right back after having dinner outside
 

« first day (1545 days earlier)      last day (2266 days later) »