Skip to content
Prev 250574 / 398498 Next

CDF of Sample Quantile

On 14/02/2011 9:58 AM, Bentley Coffey wrote:
I think the answer to your question is no, but I think it's the wrong 
question.  Suppose Xm:n is the mth sample quantile in a sample of size 
n, and you want to calculate P(Xm:n > x).  Let X be a draw from the 
underlying distribution, and suppose P(X > x) = p.  Then the event Xm:n > x
is the same as the event that out of n independent draws of X, at least 
n-m+1 are bigger than x:  a binomial probability.  And R can calculate 
binomial probabilities using pbinom().

Duncan Murdoch