Expected value of metrics under a Mallows rank model
Compute the expectation of several metrics under the Mallows rank model.
expected_dist(alpha, n_items, metric)
alpha |
Non-negative scalar specifying the scale (precision) parameter in the Mallows rank model. |
n_items |
Integer specifying the number of items. |
metric |
Character string specifying the distance measure to use. Available options are |
A scalar providing the expected value of the metric
under the Mallows rank model with distance specified by the metric
argument.
expected_dist(1,5,metric="kendall") expected_dist(2,6,metric="cayley") expected_dist(1.5,7,metric="hamming") expected_dist(5,30,"ulam") expected_dist(3.5,45,"footrule") expected_dist(4,10,"spearman")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.