The first two L-moments summarize location and scale, and their sample estimates have particularly simple forms. The first is the ordinary arithmetic mean. The second can be computed as half the average absolute difference between distinct pairs of observations. Two small invented samples with the same mean show how this scale changes when the observations become more tightly grouped.
For independent draws X and Y from the same distribution with a finite first absolute moment, the population second L-moment λ2 is one half the expected value of |X−Y|. This follows because the higher of two draws minus the lower equals their absolute difference. The first L-moment λ1 is the expected value of a single draw. Both have the same units as the underlying observations, which makes the difference between a location value and a dispersion value easy to communicate without a change of units.
For a sample of n at least two, use each unordered pair of distinct observation indices once. Divide the sum of absolute differences by the number of pairs, n(n−1)/2, and then divide by two. Under independent sampling this is an unbiased estimate of λ2, since each pair has the same expected absolute difference. If two observations have identical values but different indices, their pair contributes zero and still counts in the denominator.
Sample A is (2, 4, 7, 11), with mean six. List the pairs by their lower observation. From 2 to the other three values the absolute differences are 2, 5 and 9. From 4 to the two larger values they are 3 and 7. The last pair, from 7 to 11, gives 4. The total is 30 over six pairs, so the mean pair difference is 5 and the second sample L-moment is 2.5 in the original observation units.
Sample B is (4, 5, 7, 8), also with mean six. Its differences in the same enumeration order are 1, 3, 4, 2, 3 and 1. The sum is 14. Dividing by six pairs and then by two gives 7/6, approximately 1.1667. The location match remained exact, while the average distance between two observations became smaller in sample B.

Sort the observations and look at the gap gk from position k to position k+1. Each of the k points to the left of the gap can be paired with each of the n−k points to its right. Thus the gap contributes k(n−k)gk to the total of all pair differences. For these four-value examples the multiplicities of the three gaps are three, four and three. In sample A the gaps are 2, 3 and 4. The weighted contributions are 6, 12 and 12, giving 30 again. Sample B has gaps 1, 2 and 1, which give contributions 3, 8 and 3.
The same total can also be written as a sum over sorted observations with weights 2i−n−1, where i starts at one. For n = 4 the weights are −3, −1, 1 and 3. In sample A the weighted sum is −6 −4 +7 +33 = 30. Dividing by n(n−1) = 12 directly produces the second sample L-moment. Once the sample is sorted, either form requires a single pass over the data. The pair enumeration remains a straightforward check for a small fixture.
The order weights sum to zero, which explains the invariance under a common offset in the weighted calculation as well. The middle gap has multiplicity four because it separates two observations from two, while each outer gap separates one observation from three. For a four-value record with a zero middle gap, its contribution disappears, but the denominator still counts all six pairs. For a two-observation record, the same derivation reduces to one gap and its contribution is simply half the absolute difference between the two observations.

Adding the same offset to every observation changes the mean by that offset and leaves all pair gaps unchanged. Multiplying every observation by a positive unit conversion scales both the mean and the second L-moment by the same factor. For sample A, adding ten gives mean sixteen and L-scale 2.5. Multiplying the original values by two gives mean twelve and L-scale five. These two recalculations help catch an estimator implementation that accidentally uses absolute distances from a fixed zero.
The ratio of the second L-moment to the first is a separate measure often called L-CV. The worked comparison uses the second L-moment itself. Keeping the sample count, input units and choice of estimator supports comparison with software that also offers a plotting-position convention. The technical articles and industry resources collect related worked estimates.
Sources include Hosking’s paper on L-moments and order statistics and the EnvStats documentation of the unbiased estimators.