I know that the standard error of the mean for an iid sample is calculated as $$\frac{\sigma}{\sqrt{n}}$$
However, assuming a normal distribution with known mean and standard deviation, how do you calculate the standard error of an arbitrary quantile?
For example, assume
- normal distribution
- population mean = 0
- population standard deviation = 1
- n=100
- quantile = .95
What would be the standard error of this quantile?
I ran this little simulation to explore the properties, but I'm still interested in the closed form solution:
set.seed(1234)
generate_x <- function(n) x <- rnorm(n)
k <- 10000
n <- 100
results <- lapply(seq(k), function(X) generate_x(100))
Z <- seq(.01, .99, .01)
qresults <- sapply(results, function(X) quantile(X, Z))
sd_quresults <- apply(qresults, 1, sd)
var_quresults <- apply(qresults, 1, var)
plot(Z, sd_quresults, type='l')
curve(sqrt(x*(1-x)/100) / abs(dnorm(qnorm(x))), 0, 1)
:-). $\endgroup$abs
if you havednorm
? Shouldn'tdnorm
be non-negative? $\endgroup$abs
is a vestige of an earlier (messier) incarnation of this formula (when it had been applied toqnorm(x)
, which could be negative). In my haste I did not remove it. $\endgroup$