In our real life we often face situations where we need to select one out of many. If the decision is dependent on single short listing criteria, the problem as well as confusion will be optimum. The problem grows many fold with increase in the number of selection criteria. AHP is a savior in such circumstances.
AHP stands for Analytic Hierarchy Process. This is one of the several Multi Criteria Decision Making techniques. I will cover them later. Credit goes to Prof. Thomas Saaty. He conceptualized AHP.
AHP ranks available list of items. It considers all the parameters for prioritizing and ranking. The best way to understand any mathematical method is to solve a problem. Going by the same rules, I will present a problem. The solution and the concept will develop simultaneously.
Problem Description:
P.1. Ranking Restaurants A, B, C and D
P.2. Differentiating parameters: Cuisine, Price, Ambience, QoS (Quality of Service)
Solution:
Step1: Create a hierarchical structure of the problem
Step 2: Pair-wise comparison matrix
Pair-wise comparison compares one with other in the pair. A pair is compared and based on the selection the value is assigned with the help of the following comparison scale
| Compare A with B | Value Xij |
| Extreme Favors | 9 |
| Very Strong Favors | 7 |
| Strongly Favors | 5 |
| Slightly Favors | 3 |
| Equal | 1 |
If one Extremely Favors Ai over Bj then Xij will be 9 whereas Xji will be
In this case, we will have 5 pair wise matrix.
- Pair wise comparison of all the parameters (X1)
- Pair wise comparison of hotel A, B, C and D with respect to parameter Cuisine (X2)
- III. Pair wise comparison of hotel A, B, C and D with respect to parameter Price (X3)
- IV. Pair wise comparison of hotel A, B, C and D with respect to parameter Ambience (X4)
- Pair wise comparison of hotel A, B, C and D with respect to parameter QoS (X5)
| X1= | Cuisine | Price | Ambience | QoS | |
| Cuisine |
1
|
5
|
7
|
3
| |
| Price |
0.2
|
1
|
3
|
5
| |
| Ambience |
0.1428571
|
0.333333
|
0.055556
|
0.142857
| |
| QoS |
0.3333333
|
0.2
|
7
|
1
|
| X2= | A | B | C | D | |
| A |
1
|
3
|
7
|
9
| |
| B |
0.3333333
|
1
|
3
|
7
| |
| C |
0.1428571
|
0.333333
|
1
|
3
| |
| D |
0.1111111
|
0.142857
|
0.333333
|
1
|
Similarly, matrix X3, X4 and X5 will be created.
Step 3: Calculating Priority Vectors from Matrix
Priority vectors are nothing but Normalized Eigen Vectors of a matrix. One can compute Eigen vectors for a given square matrix. The method employed here is not that complex. It results in an approximate solution and is good for matrix of smaller size.
- Sum Each column
- Divide every column with column sum
- Compute Average of Each Row
| X1= | Cuisine | Price | Ambience | QoS | Priority Vector | |
| Cuisine |
0.5966587
|
0.765697
|
0.388889
|
0.328228
|
0.519867989
| |
| Price |
0.1193317
|
0.153139
|
0.166667
|
0.547046
|
0.246545929
| |
| Ambience |
0.085237
|
0.051046
|
0.055556
|
0.01563
|
0.051867213
| |
| QoS |
0.1988862
|
0.030628
|
0.388889
|
0.109409
|
0.181953047
|
| X2= | A | B | C | D | Priority Vector | |
| A |
0.63
|
0.670213
|
0.617647
|
0.45
|
0.591964956
| |
| B |
0.21
|
0.223404
|
0.264706
|
0.35
|
0.262027534
| |
| C |
0.09
|
0.074468
|
0.088235
|
0.15
|
0.100675845
| |
| D |
0.07
|
0.031915
|
0.029412
|
0.05
|
0.045331665
|
Similarly, priority vectors are computed for matrix X3, X4 and X5.
Step 4: Consistency Check
This is done to test whether the values in matrix are consistent or not.
For example, if A is extremely favored over B and B is slightly favored over C. This implies A should either strongly or very strongly favored over C, not the other way round. This is consistency.
Inconsistency may sabotage final result.
Hence, first Principal Eigen Value is computed. Principal Eigen value is obtained from the summation of products between each element of Eigen vector and the sum of columns of the reciprocal matrix.
Step 5: Computing the final Priority
Priority vector is calculated and consistency of every matrix is evaluated. Priority vectors are tabulated as shown below.
| A | B | C | D | |||
| Cuisine | 51.98679888 | 0.591965 | 0.262028 | 0.100676 | 0.045331665 | X2 |
| Price | 24.65459294 | 0.5739 | 0.2913 | 0.045 | 0.093 | X3 |
| Ambience | 5.186721273 | 0.35 | 0.45 | 0.05 | 0.15 | X4 |
| QoS | 18.19530469 | 0.22 | 0.48 | 0.05 | 0.25 | X5 |
| Composite Weight | 50.74195 | 31.87163 | 7.512373 | 9.976359637 |
Composite weight of Restaurant A is calculated by summing the product of column A with Priority vector (expressed in %) of matrix X1. Similarly, composite weights are calculated for other restaurants.
Hence, Restaurant A is most preferred and C is a least preferred out of 4 Restaurants.