I am fairly new to R and is exploring simulation to estimate the parameter n:
1) Z is a vector of n draws from N(0,1)
2) Probability of max(Z)>4 equals 0.25
What is the best way in R to estimate the parameter n to satisfy these two conditions? I got stuck trying to avoid looping or exhaustive search in the code. Thanks!