A percentile between observations
The ordered sample is 1, 3, 5, 9, 12. Find its p=0.6 quantile by (a) the empirical-CDF inverse and (b) R’s type-7 interpolation rule. Explain why they differ.
Worked answer
The empirical inverse uses index ceil(5×0.6)=3 and gives x_(3)=5. Type 7 uses h=1+(5−1)×0.6=3.4, so it interpolates 40% from x_(3)=5 to x_(4)=9, giving 5+0.4(9−5)=6.6. The empirical CDF is a step function, whereas type 7 fills the gap between adjacent order statistics.