Abstract
In this paper, a weighted variant of the normalized pairwise angular distance metric is proposed. The inclusion of position weights aims at penalizing inversions in the top of the ranking more than inversions in the tail of the ranking. The performance of the proposed weighted distance metric for assessing ranking dissimilarity and its impact on a procedure for testing inter-group heterogeneity have been investigated via a Monte Carlo simulation study under several scenarios—differing for group size, number of ranked alternatives and system of hypotheses—and compared against those obtained for the unweighted variant.
Similar content being viewed by others
1 Introduction
Analyzing consumer satisfaction by listening to their needs is fundamental in any private and public sector since it represents a useful tool for improving the efficacy of management and policy actions [5]; it becomes critical when the consumers cannot switch to other providers, deny or reduce the service [8].
Satisfaction data are usually collected through opinion survey questionnaires where each respondent is asked to value a set of attributes independently of one another and rate them accordingly, in such a way that no direct comparison is made between attributes. The widespread adoption of ordered categorical response scales is due to two factors: they are ease to manage and low time-consuming [1, 12, 16, 17]. Despite these practical advantages, this evaluation method requires a specific expertise that some respondents may lack producing two main criticisms: response biases like agreement response style (tendency to always agree with every statement irrespective of its content) and non-differentiation (tendency to not really differentiate between the statements irrespective of their content) [1, 12].
A valid alternative solution stands in elicitation methods based on ranking according which each respondent is asked to sort a set of alternatives with respect to some criteria (e.g. liking, satisfaction, agreement, importance). Such elicitation methods give high quality and informative data, high test–retest and cross-sectional reliability and high discriminate and correlation validity [11, 17, 20]; nevertheless, their widespread adoption is limited by the higher availability of suitable statistical methods for handling ordered categorical response data.
When dealing with ranking data, two typical issues of interest are to assess the diversity between two subjects expressing their preferences over the same set of alternatives and compare two or more groups of subjects (e.g. men and women, young and elderly, people from different countries) in order to investigate concordance, agreement or homogeneity among them and identify the significant factors impacting on subject preferences and, possibly, cluster the subjects [15].
Different proximity and distance measures have been proposed in the literature over the years for assessing the similarity between two rankings. A widespread approach in ranking data analysis uses similarity measures based on correlation coefficients and derives distance measures via linear transformations. Among these methods, Kendall’s \(\tau \) rank correlation coefficient [9, 10], Pearson correlation coefficient and Spearman’s \(\rho \) are the most widely used. Other typical examples of distances are Kendall, Spearman and Cayley’s distances. See Mallows [14], Critchlow et al. [2] and Diaconis [4] for more details; moreover, an extensive listing of such measures classified according to the main field of application or scientific area of interest is available in Deza and Deza [3].
A different approach to measure distances between rankings stems from multidimensional geometry, according which each ranking is a vector in the multidimensional Euclidean space and the distance between two of them is measured via the pairwise angular distance. Following the multidimensional geometry approach, in this paper the rankings are analyzed and interpreted using a simple distance metric based on cosine similarity, that is the normalized pairwise angular distance metric [21].
It is noteworthy that, as recently pointed out by Kumar and Vassilvitskii [13], the traditional similarity and distance measures between rankings do not care about two crucial concepts: (1) some alternatives could be more important than others, so that swapping equally important alternatives should be less penalizing than swapping not equally important alternatives; (2) swapping alternatives belonging to the top of the ranking could be more relevant than swapping alternatives belonging to the tail of the ranking. In order to overcome the two criticisms, Kumar and Vassilvitskii [13] defined the element weights and position weights for handling the first and second criticism, respectively.
The aim of this paper is to propose a variant of the normalized pairwise angular distance metric [21, 23] suitable for position weighted rankings that penalizes inversions in the top of the ranking more than inversions in the tail of the ranking. The proposed weighted distance metric will be adopted for testing preference heterogeneity across groups of subjects via an inferential procedure based on the index of segregation power \(I_{SP}\) introduced by Gadrich et al. [6] for numerical and categorical variables and further specialized by Vanacore et al. [23] to complete rankings.
The performance of the testing procedure based on \(I_{SP}\) with the weighted normalized angular distance metric is investigated via a Monte Carlo simulation study under different scenarios, differing for group size, number of ranked alternatives and system of hypotheses. The results of the Monte Carlo simulation study are compared against those obtained for the normalized angular distance metric discussed in Vanacore and Pellegrino [22].
The paper is organized as follows: the weighted version of the normalized pairwise angular distance metric together with the testing procedure are introduced in Sect. 2; the design and the main results of the Monte Carlo simulation study are described in Sect. 3; finally, conclusions are summarized in Sect. 4.
2 Weighted normalized pairwise angular distance metric
Let M subjects rank a finite set \(\varvec{A} = \{A_{1}, A_{2}, \dots , A_{n}\}\) of n alternatives. Each ranking can be represented as an antisymmetric square alternative-to-alternative matrix \((a_{lm})_{n \times n}\) of order n. The generic element \(a_{lm}\) of the (l, m) cell represents the preference relation between the ranked alternatives \(A_{l}\) and \(A_{m}\) and thus it assumes the following values:
A suitable distance measure between two rankings comes from multidimensional geometry, according which each ranking, and thus matrix \((a_{lm})_{n \times n}\), can be considered as a vector in a multidimensional Euclidean space. A measure of dissimilarity between two rankings is the normalized pairwise angular distance metric [21]. Specifically, let a and b be two such vectors, the normalized pairwise angular distance metric \(L_{\mathbf{ab }}\) is expressed as follows:
where \(\pi \) is the straight angle against which the angular distance \(\hat{\theta }_{\mathbf{a,b }}\) is normalized.
Position weighted distances are built to enhance the reactiveness to the role of the position of each alternative, that is swaps at the top of the ranking are costlier than those at the tail of the ranking. The weighted variant of the normalized pairwise angular distance metric can be formulated as follows:
where \(a_{{lm}_{w}}\) (with \(l=1, \dots , n-1\); \(m=l+1, \dots , n\)) is the position weighted version of the generic element \(a_{lm}\) of the antisymmetric square alternative-to-alternative matrix \((a_{lm})_{n \times n}\). Specifically, let \(w = (w_{1}, w_{2}, \dots , w_{n})\) be the vector of non-increasing weights for each ranking position, the generic elements \(a_{{lm}_{w}}\) and \(b_{{lm}_{w}}\) are given by:
It is worth to pinpoint that the square alternative-to-alternative matrix \((a_{lm})_{n \times n}\) is antisymmetric so that, in order to reduce the computational burden, Eqs. 1 and 2 are applied only on the elements of the strictly upper triangular matrix. Anyway, the weighted square alternative-to-alternative matrix can be easily obtained by filling in the empty cells with their antisymmetric value.
The position weights, modeling the cost of swapping two alternatives according to their position in the ranking, can be arbitrary defined, constrained to \(\sum _{l} w_{l}=1\). The position weighting scheme here adopted, derived from the radical weighting scheme adopted in agreement studies [7], is proportional to the distance between positions and is formulated as follows:
In order to compare several groups of subjects for testing ranking heterogeneity, the total variation among the rankings provided by all subjects (i.e. K groups of \(\text {M}\) subjects) \(\hat{V}_{\text {TOT}}\), formulated as proposed in Vanacore et al. [23], is split—according to Rao’s apportionment of diversity [19]—into within \(\hat{V}_{\text {WG}}\) and between group \(\hat{V}_{\text {BG}}\) components. The inter-group ranking heterogeneity is measured through the index of segregation power \(I_{SP}\) [6], defined as the quotient of normalized between-group variation (\(\hat{V}_{\text {BG}}\)) to normalized total variation (\(\hat{V}_{\text {TOT}}\)):
Let \(L_{i_{h}j_{k}}\) be the distance between the rankings provided by \(i^{th}\) subject belonging to group h and \(j^{th}\) subject belonging to group k, the total ranking variation and its components are formulated as shown in Table 1. The readers can refer to [22] for more computational details.
It is worth noting that although \(\hat{V}_{\text {BG}}/\hat{V}_{\text {TOT}}\) is always less than 1, the \(I_{SP}\) value could exceed 1 since the ratio \(df_{\text {TOT}}/df_{\text {BG}}=(\text {M}K-1)/(\text {M}K-\text {M}) \ge 1\) with \(\text {M} \ge 2\).
3 Monte Carlo simulation
The Monte Carlo simulation study aims at investigating: (1) the performance of the weighted normalized angular distance metric in discriminating dissimilarity between rankings; (2) the impact of the position weights on the performance of the procedure for testing preference heterogeneity. The results are compared against those obtained for the normalized angular distance metric without position weights. The algorithm for Monte Carlo simulations have been implemented using Mathematica (Version 11.0, Wolfram Research, Inc., Champaign, IL, USA).
3.1 Discriminating performance of the weighted normalized angular distance metric
Let us consider two subjects i and j expressing their preferences about \(n= 5, 6, 7, 8, 9, 10\) alternatives; the \(n! \times n!\) normalized pairwise angular distances \(L_{ij}\) and \(L_{ij_{w}}\) are represented in the box-plots of Fig. 1. It is evident that the introduction of position weights produces a wider range of distance values, allowing to better discriminate dissimilarity between rankings.
The discriminating performance of \(L_{ij_{w}}\) has been investigated and compared against that of \(L_{ij}\) focusing on rankings differing each other for only one swap. Specifically, two factors have been considered: swap position with two levels (i.e. at the top and at the tail of the ranking) and swap dimension with four levels (i.e. between adjacent, 1-step apart, 2-steps apart and 3-steps apart positions), for a total of \(2 \times 4 = 8 \) simulated scenarios for \(n=5,6,7,8,9,10\) alternatives. The distance values \(L_{ij}\) and \(L_{ij_{w}}\) are plotted in Fig. 2 for all the investigated scenarios.
The plotted curves show that both \(L_{ij}\) and \(L_{ij_{w}}\) decrease with the number of ranked alternatives and increase with the swap dimension; however, it is worth to note that only the weighted normalized angular distance metric takes into account the position of the swap. Indeed, for any swap dimension, \(L_{ij_{w}}\) is about three times higher if the swap is at the top preferences rather than if it is at the tail; vice-versa, \(L_{ij}\) does not depend on swap position, being its value the same either the swap is at the top or at the tail of the ranking.
3.2 Statistical power of the inter-group preference heterogeneity testing procedure
Let us consider M subjects expressing their preferences about n alternatives. In order to simulate different levels of inter-group heterogeneity, preferences have been generated using the distance-based model developed by Diaconis [4], which assumes that the probability of each ranking depends on its distance to a chosen modal ranking, to which it is expected most of rankings are close.
Different samples of rankings have been simulated by varying either the modal ranking or the dispersion parameter \(\lambda _{k}\) for the \(k^{th}\) group of subjects; specifically, \(\lambda _{k}\) controls the probability of each ranking and higher differences among \(\lambda _{k}\) produce higher heterogeneity among the rankings provided by different groups of subjects.
The case of \(K = 3\) groups of \(\text {M}\) subjects has been considered and 108 scenarios have been simulated differing for group size, number of alternatives to rank and system of hypotheses. The group sizes simulated for this study are \(\text {M} = 10, 20, 50\) subjects and the number of alternatives to rank are \(n =5, 10\); these values have been selected in order to represent a range of values that might be seen in practice in a survey [18].
The groups have been firstly simulated having all the same dispersion parameter \(\lambda _{k}\), chosen in the range \([1 \div 50]\), but different modal ranking with one swap at the top of the ranking (i.e. first simulation setting). Specifically, 7 different \(\lambda _{k}\) values have been considered, that is \(\lambda _{k}=1, 3, 5, 10, 20, 35, 50\), so as to represent as many alternative hypotheses of growing levels of inter-group ranking heterogeneity.
Then, the groups have been simulated each with a different dispersion parameter \(\lambda _{k}\) chosen in the range \([1 \div 30]\) but having all the same modal ranking (i.e. second simulation setting). Specifically, 11 combinations of different values of \(\lambda _{k}\) have been considered so as to represent as many alternative hypotheses H\(_{1}\) (see Table 2) of growing levels of inter-group ranking heterogeneity, obtained by choosing combinations of \(\lambda _{k}\) values characterized by increasing values of maximum difference in ranking dispersion (\(\varDelta \lambda _{k}\)).
For each scenario, \(R=2000\) data sets with K groups of \(\text {M}\) rankings have been generated, the distances between rankings have been measured via the weighted and unweighted normalized pairwise angular distance metrics [21] and the \(I_{SP}\) has been assessed.
The simulation procedure has been developed through the following steps:
-
1.
set a modal ranking and the dispersion parameters \(\lambda _{k}\) for each of the K groups of size M (\(\text {M}=10, 20, 50\));
-
2.
sample the rankings provided by the M subjects of the K groups over n alternatives according to the framework of distance-based models;
-
3.
compute the weighted normalized distance \(L_{ij_{w}}\) for each pair of subjects (Eq. 2);
-
4.
assess the total ranking variation and its within and between components (see Table 1);
-
5.
compute the \(I_{SP}\) index (Eq. 5);
-
6.
repeat R times steps 1–5;
-
7.
for a significance level \(\alpha \), define the critical value \(I_{cr}\) as the (\(1-\alpha \)) percentile of the empirical sampling distribution of \(I_{SP}\) built under the assumption of homogeneity;
-
8.
compute the statistical power for each alternative hypothesis as:
$$\begin{aligned} 1-\beta = \frac{1}{R} \sum \limits _{r=1}^R I[I_{SP_{r}} > I_{cr} | \text {H}_{1}]; \end{aligned}$$(6) -
9.
compute the unweighted normalized angular distance metric \(L_{ij}\) for each pair of subjects (Eq. 1) with the outputs of step 2;
-
10.
repeat steps 4-8 adopting the weighted distance values \(L_{{ij}_{w}}\).
For \(\alpha =0.05\), the values of \(I_{cr}\) for the null hypothesis H\(_{0}\): \(\lambda _{1}=\lambda _{2}=\lambda _{3}=1\) are reported in Table 3; whereas the values of statistical power for the two testing procedures for each tested hypothesis H\(_{1}\) are reported in Tables 4 and 5, respectively.
The results highlight that the adoption of position weights for assessing the dissimilarity between rankings makes the statistical power of the testing procedure for inter-group heterogeneity increase. The improving power rate is more evident when the modal ranking changes across groups (i.e. first simulation setting) rather than with groups having the same modal ranking but different dispersion parameters (i.e. second simulation setting).
In the first simulation setting (see Fig. 3 and Table 4), for \(n=5\) a small difference in power rates is observed between weighted and unweighted distances; in both cases the statistical power is higher than 80% with small and homogeneous groups of subjects (i.e. starting from a \(\lambda _{k}\) value equal to 3 for \(10< \text {M} < 20\)). The difference in power rates between weighted and unweighted distances increases with the number of alternatives. For \(n=10\), when the position weights are included the statistical power is higher than 80% with homogeneous groups of subjects (i.e. starting from \(\lambda _{k}=3\) for \(\text {M}=50\) or \(\lambda _{k}=5\) for \(10< \text {M} < 20\)); whereas, when the weights are not included, the statistical power reaches 80% only with more heterogeneous groups of subjects (i.e. \(\lambda _{k} \ge 10\)).
The results obtained under the second simulation setting (see Fig. 4 and Table 5) reveal that in the case of \(n=5\) alternatives the increase in statistical power due to the inclusion of position weights is more evident with groups of \(\text {M} > 10\) subjects; whereas in the case of \(n=10\) alternatives the increase in statistical power is evident for any group size.
For \(n=5\) alternatives, the adoption of position weights makes the testing procedure adequately powered in detecting inter-group ranking heterogeneity even for small group size (i.e. \(\text {M}=10\)) with \(\varDelta \lambda _{k} \approx 10\). In scenarios with a fairly large set of alternatives, like \(n=10\), the statistical power of the testing procedure slightly worsens and with small groups of \(\text {M}=10\) subjects it reaches 80% when \(\varDelta \lambda _{k} \approx 17\). Nevertheless, the statistical power can be improved by increasing the group dimension, reaching 80% with groups of \(\text {M}=50\) subjects with \(\varDelta \lambda _{k} \approx 4\) for \(n=5\) or with \(\varDelta \lambda _{k} \approx 6\) for \(n=10\).
4 Conclusions
In this paper a position weighted variant of the normalized pairwise angular distance metric has been proposed.
The performance of the proposed metric in assessing ranking dissimilarity and inter-group heterogeneity has been investigated by an extensive Monte Carlo simulation study. The critical values of the \(I_{SP}\) index under the null hypothesis of inter-group ranking homogeneity have been obtained for different scenarios and the statistical power has been computed for increasing level of heterogeneity by varying either the modal ranking or the dispersion parameter.
The simulation results have been compared against those obtained for the unweighted distance metric. \(L_{ij}\) and \(L_{ij_{w}}\) decrease with the number of alternatives to rank and are both positively related to swap dimension; only \(L_{ij_{w}}\) accounts for the position of the swap taking on higher values if the swaps are at the top of the ranking. Whatever the adopted metric, the statistical power of the testing procedure improves for increasing group size and decreasing number of alternatives to rank and it reaches 80% even with as few as \(\text {M}=10\) subjects ranking \(n=5\) alternatives. The inclusion of position weights makes the performance of the inter-group heterogeneity testing procedure improve; the difference in statistical power is more evident when the groups have different modal ranking and the same dispersion parameter rather than when the groups have the same modal ranking but differ for the dispersion parameter.
References
Alwin, D.F., Krosnick, J.A.: The measurement of values in surveys: a comparison of ratings and rankings. Public Opin. Q 49(4), 535–552 (1985)
Critchlow, D.E., Fligner, M.A., Verducci, J.S.: Probability models on rankings. J. Math. Psychol. 35(3), 294–318 (1991)
Deza, M.M., Deza, E.: Encyclopedia of distances. In: Encyclopedia of Distances, pp. 1–583. Springer (2009)
Diaconis, P.: Group representations in probability and statistics. Lecture notes-monograph series 11, i–192 (1988)
Ferrari, P.A., Manzi, G.: Citizens evaluate public services: a critical overview of statistical methods for analysing user satisfaction. J. Econ. Policy Reform 17(3), 236–252 (2014)
Gadrich, T., Bashkansky, E., Zitikis, R.: Assessing variation: a unifying approach for all scales of measurement. Quality & Quantity 49(3), 1145–1167 (2015)
Gwet, K.L.: Handbook of inter-rater reliability: The definitive guide to measuring the extent of agreement among raters. Advanced Analytics, LLC (2014)
Hirschman, A.O.: Exit, Voice, and Loyalty: Responses to Decline in Firms, Organizations, and States, vol. 25. Harvard University Press, Harvard (1970)
Kendall, M.G.: A new measure of rank correlation. Biometrika 30(1/2), 81–93 (1938)
Kendall, M.G.: Rank correlation methods. (1948)
Krosnick, J.A.: The threat of satisficing in surveys: the shortcuts respondents take in answering questions. Surv. Methods Newslett. 20(1), 4–8 (2000)
Krosnick, J.A., Alwin, D.F.: A test of the form-resistant correlation hypothesis: ratings, rankings, and the measurement of values. Public Opin. Quart. 52(4), 526–538 (1988)
Kumar, R., Vassilvitskii, S.: Generalized distances between rankings. In: Proceedings of the 19th international conference on World wide web, pp. 571–580 (2010)
Mallows, C.L.: Non-null ranking models. i. Biometrika 44(1/2), 114–130 (1957)
Marmor, Y.N., Bashkansky, E.: Processing new types of quality data. Qual. Reliab. Eng. Int.
McCarty, J.A., Shrum, L.J.: The measurement of personal values in survey research: a test of alternative rating procedures. Public Opin. Quart. 64(3), 271–298 (2000)
Munson, J.M., McIntyre, S.H.: Developing practical procedures for the measurement of personal values in cross-cultural marketing. J. Mark. Res. 16(1), 48–52 (1979)
Ock, M., Yi, N., Ahn, J., Jo, M.W.: How many alternatives can be ranked? A comparison of the paired comparison and ranking methods. Value Health 19(5), 655–660 (2016)
Rao, C.R.: Diversity and dissimilarity coefficients: a unified approach. Theor. Popul. Biol. 21(1), 24–43 (1982)
Reynolds, T.J., Jolly, J.P.: Measuring personal values: an evaluation of alternative methods. J. Mark. Res. 17(4), 531–536 (1980)
Vanacore, A., Marmor, Y.N., Bashkansky, E.: Some metrological aspects of preferences expressed by prioritization of alternatives. Measurement 135, 520–526 (2019)
Vanacore, A., Pellegrino, M.S.: Testing inter-group ranking heterogeneity: do patient characteristics matter for prioritization of quality improvements in healthcare service?, p. 100921. Socio-Economic Planning Sciences (2020)
Vanacore, A., Pellegrino, M.S., Marmor, Y.N., Bashkansky, E.: Analysis of consumer preferences expressed by prioritization chains. Qual. Reliab. Eng. Int. 35(5), 1424–1435 (2019)
Funding
Open access funding provided by Universitá degli Studi di Napoli Federico II.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors declare that they have no potential conflict of interest in relation to the study in this paper.
Ethics approval
Not applicable.
Consent to participate
Not applicable.
Consent for publication
The article has not been previously published elsewhere and it is not under consideration for publication in another journal; both authors consent to the publication of the manuscript in Metron.
Availability of data and material
All data generated during this study are available from the corresponding author on reasonable request.
Code availability
The code is available from the corresponding author on reasonable request.
Authors’ contributions
AV conceived this research; both authors participated in the design and interpretation of the data, performed experiments and analysis, wrote the paper and participated in the revisions of it, read and approved the final manuscript.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Vanacore, A., Pellegrino, M.S. A weighted distance metric for assessing ranking dissimilarity and inter-group heterogeneity. METRON 80, 175–185 (2022). https://doi.org/10.1007/s40300-021-00198-6
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s40300-021-00198-6