Analytic Hierarchy Process (AHP)
Analytic Hierarchy Process · Setting criterion importance with pairwise comparisons
How do you set priorities by comparing the importance of several criteria? If you are asked how much weight to put on price, quality, brand and service when choosing a product, the more criteria there are, the harder it becomes to assign importance directly as numbers. The Analytic Hierarchy Process (AHP) compares the criteria two at a time and, based on those judgments, calculates weights, the relative importance of each criterion. It is used for supplier selection, evaluating policy alternatives, setting business priorities, choosing products and more.
What is AHP?
AHP breaks a complex decision problem into levels such as the goal, criteria, sub-criteria and alternatives, then compares the elements on the same level two at a time.
The key idea of AHP is that instead of entering the importance of every criterion directly all at once, you judge which of two criteria is more important and by how much. Answering "which matters more, price or performance?" is easier than splitting 100 points across four criteria at once.
What is pairwise comparison?
Pairwise comparison puts two elements side by side as a pair and rates their relative importance. When comparing price and performance, you ask which is more important, whether they are about equal, or how much more important one is than the other. AHP usually uses a scale from 1 to 9.
| Score | Meaning |
|---|---|
| 1 | The two criteria are equally important |
| 3 | One criterion is slightly more important |
| 5 | One criterion is considerably more important |
| 7 | One criterion is very strongly more important |
| 9 | One criterion is extremely more important |
| 2, 4, 6, 8 | Intermediate judgments |
A comparison in the opposite direction is expressed as the reciprocal. If performance is rated 3 compared with price, then the importance of price relative to performance is recorded as 1/3. This score is not an objective measurement that the importance is exactly three times as large; it puts the respondent's relative judgment into numbers.
Building the pairwise comparison matrix
Suppose the criteria are price, performance and battery, and the judgments were made as follows (hypothetical judgments for illustration).
| Criterion | Price | Performance | Battery |
|---|---|---|---|
| Price | 1 | 1/3 | 2 |
| Performance | 3 | 1 | 4 |
| Battery | 1/2 | 1/4 | 1 |
The diagonal values are all 1 because each criterion is compared with itself, and if price vs. performance is 1/3, then performance vs. price is 3. A matrix with these reciprocal relationships is called a reciprocal matrix. AHP finds the eigenvector corresponding to this matrix's largest eigenvalue λmax, then normalizes it to sum to 1 to obtain the weights.
Calculating the weight of each criterion
| Criterion | Weight |
|---|---|
| Price | 0.238 |
| Performance | 0.625 |
| Battery | 0.136 |
| Total | 1.000 |
With these judgments, performance has the highest weight at about 62.5%, price about 23.8%, and battery about 13.6%. When calculating by hand, a common approximation is to take the geometric mean of each row and normalize; for this matrix it gives the same values as the eigenvector. In practice the weights vary with the decision maker's judgments, and the decision is not over once the weights are set. You also need to compare how the alternatives perform before you can set the final ranking.
Consistency check: do the judgments contradict each other?
One important step in AHP is the consistency check. If the judgments are perfectly consistent (e.g., if price is 2× battery and performance is 3× price, then performance is exactly 6× battery), λmax equals the number of criteria n, and the more the judgments conflict, the further λmax rises above n.
λmax: largest eigenvalue of the comparison matrix · n: number of items compared · RI: average CI of randomly filled matrices (random consistency index)
| n | RI (Saaty) |
|---|---|
| 3 | 0.58 |
| 4 | 0.90 |
| 5 | 1.12 |
| 6 | 1.24 |
| 7 | 1.32 |
| 8 | 1.41 |
| 9 | 1.45 |
| 10 | 1.49 |
The matrix above is not perfectly consistent, since performance vs. battery was judged 4 rather than 6, but with λmax = 3.018 and CR = 0.016 it is quite consistent. In general, CR ≤ 0.10 is often regarded as acceptable consistency. This threshold is not an absolute rule, however, and should be reviewed in light of the purpose of the study and the nature of the judgments.
Conversely, if you judge as in Figure 3 that "price is more important than performance (3), performance is more important than battery (4), yet battery is much more important than price (5)," you get a cycle. λmax grows to 5.17 and CR, at 1.87, far exceeds the threshold, and the weights spread almost evenly across the three criteria, so no meaningful priority emerges. If the consistency ratio is high, it is a good idea to revisit the comparisons. Checking that the actual judgments make sense matters more than simply getting past a numeric threshold.
Linking criterion weights to the final ranking of alternatives
The ultimate aim of AHP does not end with the importance of each criterion. Under each criterion, the alternatives are also compared pairwise to get their local priorities, and these are combined using the criterion weights.
wj: weight of criterion j · pij: relative priority of alternative i under criterion j
Figure 4 sets the criterion weights at price 0.30, performance 0.50 and battery 0.20, and shows the result of hypothetical pairwise comparisons of laptops A, B and C under each criterion. A is highest on price (0.540), B on performance (0.625), and C on battery (0.582). The weighted final priorities are B 0.423, C 0.325, A 0.252, so B, which leads on performance, the criterion with the largest weight, ranks first. Depending on the size of the problem and the data, the alternatives can also be compared using actual performance data instead of pairwise comparisons, or combined with other evaluation methods (Ch. 06, TOPSIS).
Strengths and limitations of AHP
It organizes a complex problem into a hierarchy of goal · criteria · alternatives · It calculates the relative importance of the criteria explicitly · A consistency check catches contradictions in the judgments · It can use expert judgment as well as quantitative data
The number of pairwise comparisons grows quickly as criteria are added · The judge's subjectivity is reflected in the weights · High consistency does not mean the judgments themselves are right · The result can change depending on how the criteria and alternatives are set up
With n criteria, the number of distinct pairwise comparisons needed at one level is n(n − 1)/2. Four criteria need 6 comparisons, eight need 28, and ten need 45, so too many criteria put a heavy burden on respondents and tend to hurt the consistency of their judgments. If there are many criteria, it is better to split them into a hierarchy of higher-level criteria and sub-criteria.
Criterion weights were calculated from the principal eigenvector of a pairwise comparison matrix (1–9 scale) for price, performance and battery: performance 0.625, price 0.238, battery 0.136, with a consistency ratio of CR = 0.016, within the acceptable threshold (0.10). Combined with the alternatives' priorities under each criterion, the final priorities were laptop B (0.423), C (0.325) and A (0.252), in that order.
Get the weights by comparing in pairs, then check that those judgments agree with each other.
- AHP: Break the problem into a hierarchy of goal · criteria · alternatives and compare elements on the same level pairwise.
- Pairwise comparison matrix: The principal eigenvector of the reciprocal matrix, filled in with the 1–9 scale and reciprocals, gives the weights.
- Consistency: CI = (λmax − n)/(n − 1), CR = CI/RI, and CR ≤ 0.10 is commonly used as the acceptance threshold.
- Synthesis: Multiply the criterion weights by the alternatives' priorities under each criterion and add them up to get the final priorities.
- Caution: The number of comparisons grows as n(n − 1)/2, and even with high consistency the validity of the judgments must be checked separately.
Next is 06 Ranking alternatives: TOPSIS. We will look at a method that compares each alternative's distance from an ideal alternative, based on the weights and each alternative's performance.