Skip to content
Prev 109179 / 398500 Next

Confidence intervals of quantiles

Many thanks for all the contributions to this problem.
As inferred by Ted Harding, I was after a distribution-free CIs as a lot
of
the data I use is not normally distributed.

The method provided by Ted for calculating exact CIs gave good results with
the limits almost symmetric about the quantile.  Even for my smaller data
set with only 115 samples and a very skewed distribution the results clearly
showed the increase in range and asymmetry of the confidence limits.

The bootstrap method provided by Dimitris also works reasonably well but
is
slower and the ranges for the CIs are sometimes very asymmetric and in one
case did not actually encompass the quantile. The method would not work at
all with the skewed distribution of 115 samples until I reduced the quantile
range from 0.1 and 0.9 to 0.2 and 0.8  However, as Dimitris warned, you have
to be careful with this method for extreme quantiles and small samples.

I was also sent a method by S?ren Merser, but this was incomplete.  This
method was written by Scott Chasalow and the full code can be found at
http://www.dpw.wau.nl/pv/pub/chasalow/S/win/ci.quantile/
The code was written for S-Plus but it worked ok for me in R.  This method
actually gives several ranges about the quantile, each with about the same
level of confidence and the level of confidence is also in the output. As
with Ted Harding's method, these may not exactly match the desired
confidence level.  There is an option to select the shortest range but it
would be easy enough to add code to give the most symmetric range.

As a chemist I am not able to comment on the statistical pros and cons of
the methods but they are certainly very helpful for my purposes.

Many thanks
Mike White

----- Original Message ----- 
From: "Dimitris Rizopoulos" <dimitris.rizopoulos at med.kuleuven.be>
To: "Mike White" <mikewhite.diu at btconnect.com>
Cc: <R-help at stat.math.ethz.ch>
Sent: Monday, February 05, 2007 2:43 PM
Subject: Re: [R] Confidence intervals of quantiles
___________________________________________________________

Tiscali Broadband only 9.99 a month for your first 3 months!
http://www.tiscali.co.uk/products/broadband/