# Pairwise comparison

Pairwise comparison is any process of comparing things in pairs to judge which of two things is preferred, or has a greater amount of some something, or whether or not the two things are identical. The method of pairwise comparison is used in the scientific study of preferences, attitudes, voting systems, social choice, public choice, requirements engineering and multiagent AI systems. In psychology literature, it is often referred to as paired comparison.

## Overview

If someone shows what they like more between two options, this preference can be expressed as a pairwise comparison. If the two alternatives are x and y, these three pairwise comparisons are possible:

The person prefers x over y: "x > y" or "xPy"

The person prefers y over x: "y > x" or "yPx"

The person has no preference between both alternatives: "x = y" or "xIy"

## Transitivity

It is generally assumed that pairwise comparisons are transitive. Most agree on what transitivity is, though there is debate about the transitivity of indifference. The rules of transitivity are as follows.

1. If xPy and yPz, then xPz
2. If xPy and yIz, then xPz
3. If xIy and yPz, then xPz
4. If xIy and yIz, then xIz

This is linked to (xPy or xIy) being a total preorder, P being the related strict weak order, and I being the related equivalence relation.

## Argument for intransitivity of indifference

Some believe that indifference (lack of preference) is not transitive. Consider the following example. Suppose you like apples and you prefer apples that are larger. Now suppose there exists an apple A, an apple B, and an apple C that are the same except for the following. Suppose B is larger than A, but it is not possible to see this without an extremely sensitive measuring device. Also suppose C is larger than B, but this also can't be seen without a sensitive measuring device. However, the difference in sizes between apples A and C is large enough that you can see it. In psychophysical terms, the size difference between A and C is above the just noticeable difference ('jnd') while the size differences between A and B and B and C are below the jnd.

You are confronted with the three apples in pairs without a sensitive measuring device. Because of this, when shown only A and B, you have no preference between apple A and apple B; and you are indifferent between apple B and apple C when shown only B and C. However, when the pair A and C are shown, you prefer C over A.

## Preference orders

If pairwise comparisons are transitive by the four rules shown above, then pairwise comparisons for a list of alternatives (A1A2A3, ..., An−1, and An) can take the form:

A1(>XOR=)A2(>XOR=)A3(>XOR=) ... (>XOR=)An−1(>XOR=)An

For example, if there are three alternatives a, b, and c, then the 13 possible preference orders are:

• $a>b>c$ • $a>c>b$ • $b>a>c$ • $b>c>a$ • $c>a>b$ • $c>b>a$ • $a>b=c$ • $b=c>a$ • $b>a=c$ • $a=c>b$ • $c>a=b$ • $a=b>c$ • $a=b=c$ If the number of alternatives is n, and indifference is not allowed, then the number of possible preference orders for any given n-value is n!. If indifference is allowed, then the number of possible preference orders is the number of total preorders. It can be expressed as a function of n:

$\sum _{k=1}^{n}k!S_{2}(n,k),$ where S2(nk) is the Stirling number of the second kind.

## Related pages

1. Analytic Hierarchy Process
2. Law of comparative judgment
3. Potentially all pairwise rankings of all possible alternatives (PAPRIKA) method
4. PROMETHEE pairwise comparison method
5. Preference (economics)
6. Stochastic Transitivity
7. Condorcet method