Pairwise Least Squares

From electowiki
Revision as of 12:51, 18 October 2023 by Paretoman (talk | contribs) (Added a brief summary and one algorithm for applying least squares to a pairwise matrix.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Pairwise least squares is a description for a method that assigns a score to each candidate based on voters' pairwise preferences.

Overview

Least squares estimation is a technique from linear algebra that finds the closest solution to a system of equations.

A pairwise listing of preferences is the number of people who prefer a candidate to another.

Applying least squares to pairwise preferences produces a number of votes for each candidate. A difference between any two candidates votes can be found. The differences are a projection of the preferences. Any preference loops are not represented in these differences. The square distance between these differences and the preferences is minimized.

Math

Let be the incidence matrix with a row for each preference and a column for each candidate.

Let be scores to be assigned to each candidate.

Let be the number of voters with a preference.

The problem to solve is:

There are actually many solutions because the same score could be added to each candidate. So we set the score of the first candidate to 0 in order to solve for one solution.

The solution is:

External Links