I have a complex distribution which I can numerically sample.
I'd like to estimate a percentile (let's say 90%) using Monte-Carlo simulations. What I'm doing is:
- I run 1 million of independent simulations and I get 1 million of samples from the distribution.
- I order them in ascending order, and I take the one that it's in the 900000th position.
Assuming that this way of proceeding is correct, how can I theoretically estimate the number of runs so that the error in the estimation is roughly within i.e. 1%?
All I can say about the underlying distribution is that it's roughly analogous to a normal distribution divided by a chi distribution, if that's of any help.