Harrell-Davis quantiles assign a weight to each observation after sorting. The method uses the same input data as a percentile computed by interpolation, but it divides the calculation into two different tasks. First it decides how much weight each rank receives. Then it applies those weights to the observed values at those ranks. A change in the requested probability changes the first task even when the ordered observations remain fixed.
Suppose five measured durations are 9, 3, 13, 2 and 6 seconds. The ordered values are 2, 3, 6, 9 and 13 seconds. The value 6 occupies the third rank regardless of where it appeared in the collection order. Order statistics are the values in this sorted list. A weight for the third rank belongs to 6 seconds in this sample, but it would belong to a different duration in another sample.
Rank also gives the method a second coordinate system. Divide the interval from zero to one into five equal pieces. The first rank receives the interval from zero to 0.2. The second receives 0.2 to 0.4. The remaining ranks continue in the same fashion. The gaps between these endpoints are all 0.2, even though the differences between consecutive measured durations are unequal. A missing interval in the measurements does not leave a hole in the rank intervals.
For a sample of size n and a requested probability p strictly between zero and one, the beta distribution has shape parameters (n + 1)p and (n + 1)(1 − p). The corrected formula in the NIST Dataplot reference gives these parameters without subtracting one. Let F be the cumulative distribution function of that beta distribution. The weight for rank i is F(i/n) minus F((i − 1)/n). In geometric terms, it is the probability mass under the beta density between the two rank boundaries.
The differences are nonnegative. Adding them cancels every interior cumulative value, leaving F(1) minus F(0), which is one. The estimate therefore has the measurement's original unit and lies between the minimum and maximum observations. Multiplying all the durations by 60, for instance, scales the estimate by 60 without changing a single rank weight. The curve is defined on the rank probability axis. It does not estimate a continuous density of the observed durations.

For five observations and p equal to 0.5, the two shape parameters are both 3. The five weights are 0.05792, 0.25952, 0.36512, 0.25952 and 0.05792. Applying them to 2, 3, 6, 9 and 13 gives 6.17376 seconds. The weight for the central rank is largest, but the values on both sides also contribute. Selecting the middle observation would give 6 seconds exactly.
Symmetric weights alone do not force those two answers to agree. The pairs of durations on either side of 6 are not evenly spaced around it. In a sample symmetric about the middle observation, the positive and negative contributions from equally weighted pairs would cancel around that center. A difference between methods in an asymmetric sample therefore reflects how the surrounding values enter the calculation.
Keep the same durations and request p equal to one third. The shape parameters become 2 and 4, and the second rank now receives the largest weight. At p equal to two thirds the parameters are 4 and 2, and the fourth rank receives the largest weight. The weights are reversed between these two examples. The resulting estimates, 4.03616 and 8.77216 seconds, do not have to be equally far from the median estimate because the sorted durations themselves are asymmetric.

Every value enters this estimator, although some ranks can receive very little weight. At p equal to one third, the highest rank has weight 0.00672. If the largest duration increased by 10 seconds and remained largest, the estimate would increase by 0.0672 seconds. The same change at p equal to two thirds would increase the estimate by 2.6272 seconds. Both consequences follow from the weighted sum. They also explain why a method that uses several ranks is not automatically preferable for every sample. NIST notes that the relative standard error can favor either method in different cases.
In a data handoff, a bare label like median duration hides the estimator. The probability, sample size and estimator together explain why two valid calculations can report different values from the same observations. The SciPy 1.16.0 documentation identifies its Harrell-Davis routine as a weighted linear combination of order statistics. It also separates the requested probabilities from the data axis. For a table of measurements by production line, the axis determines which observations enter each ordered sample. The probability determines the weighting inside that sample.
Related reading is available in the equipment reference library and the technical article directory.
Primary sources. NIST Dataplot quantile reference and corrected formulas. SciPy 1.16.0 Harrell-Davis documentation.