Professional Documents
Culture Documents
AHP Tutorial
AHP Tutorial
ANALYTIC HIERARCHY
PROCESS (AHP) TUTORIAL
Revoledu.com
TableofContents
AnalyticHierarchyProcess(AHP)Tutorial....................................................................................................1
MultiCriteriaDecisionMaking.....................................................................................................................1
CrossTabulation........................................................................................................................................2
EvaluationbasedonRank.........................................................................................................................3
WeightedCriteria......................................................................................................................................5
RankReversal............................................................................................................................................6
AnalyticHierarchyProcess(AHP)..................................................................................................................9
PairwiseComparison...............................................................................................................................9
MakingComparisonMatrix.....................................................................................................................10
HowtocomputeEigenValueandEigenvector?....................................................................................12
PriorityVectors...................................................................................................................................12
ConsistencyIndexandConsistencyRatio...............................................................................................14
IllustrativeExampleofAnalyticHierarchyProcess.................................................................................16
FrequentlyAskingQuestions......................................................................................................................19
HowtodealingwithhighCRvalues?..................................................................................................19
CanwechangetheAHPscaleto9to+9?.........................................................................................19
Ihavemorethan20criteria,whyRItableisonlyuntiln=10?...........................................................19
HowtoaggregateAHPresultforgroupdecision?..............................................................................19
IsitpossibletoobtainanegativeconsistencyratioinAHP?..............................................................19
FinalRemark...............................................................................................................................................20
AHPTutorial
Thistutorialwillintroduceyoutotheseveralmethodsonmulticriteriadecisionmaking(MCDM).
One famous method of MCDM is called Analytic Hierarchy Process or AHP in short. The AHP
procedurehadbeenappliedforDecisionSupportSystem(DSS),includingdataminingandmachine
learningandsomanyapplications.Itcaninvolvebothsubjectivehumanjudgmentsandobjective
evaluationmerelybyEigenvectorandexaminetheconsistencyoftheevaluationbyEigenValue.
Inthissectionoftutorial,youwilllearnbackgroundmaterialswithseveralterminologiessuchas
criteriaorfactors,alternativeschoice,evaluationscorevalueandweightofimportanceleveland
howtotransformdifferentrangeofjudgmentsintofairevaluation.
Table1:ExampleofGoal,CriteriaandAlternatives
Goal
Criteria
Alternatives
Name of schools under
Decidebestschool
Distance,
consideration
Reputation,
Cost,
Teacherkindliness
Listofapartmentsunder
Findingbestapartment
Price,
consideration
Downpayment,
Distancefromshops,
Distancefromwork/school
NeighborsFriendliness
Listofcandidates
Selectbestpolitician
Charm
Goodworkingprogram
Benefitforourorganization
Attentiontoourneed
Determinethesistopic
Listofthesistopics
Fasttofinish,
ResearchCost,
LevelofAttractiveness,
Cars trade mark (Honda,
Buycar
InitialPrice
GM,Ford,Nissanetc.)
Operating&Maintenance
cost,
Serviceandcomfort,
Status
Decidewhethertobuyorto
RentorBuy
Totalcost(capital,
rentamachine
maintenance,operational)
Service
Timetooperate
Interconnectionwithother
machines
KardiTeknomo
Page1
AHPTutorial
We make many decisions in our life. We decide which school to take, which place to live, which
clothestouse,whichpersonstobeourbestfriendsortomarry,whichfoodtoeat,whichcarto
buy,andsoon.
Decision making is process to choose among alternatives based on multiple criteria. In each of
thesedecisions,deepinourmindwehaveseveralfactorsorcriteriaonwhattoconsiderandwe
also have several alternatives choices that we should decide. On group decision making these
criteria and alternatives are more obvious and must be determined first before we give some
judgment score or evaluation values on them. In this tutorial, I will use the word factors and
criteria interchangeably. Similarly, I use alternative and choice for the same meaning. Table 1
showsexampleofcriteriaandalternativesofseveraldecisionmakings.
The determination of criteria and alternatives are very subjective. Notice that the list of criteria
and alternatives above are not exhausted list. They neither cover all possible criteria nor all
possible alternatives. There is no correct or wrong criterion because it is subjective opinion.
Different people may add or subtract those lists. Some factors may be combined together and
somecriterionmaybebrokendownintomoredetailcriteria.
Mostofdecisionsmakingsarebasedonindividualjudgments.Aswetrytomakeourdecisionas
rational as possible we need to quantify these subjective opinions into subjective values. The
valuesarenumberwithin anycertainrange;sayfrom1 to10or5to5. Thevalues canbeany
numberwithorder(ordinalnumber)andyoucanevenputdifferentrangeforeachfactor.Higher
value indicates higher level of the factor or preferable values. Now you see that not only the
criteriaandalternativesaresubjective,eventhevaluesarealsosubjective.Theyaredependingon
youasdecisionmaker.
Cross Tabulation
Thesimplestmulticriteriadecisionmakingistoputintoacrosstableofcriteriaandalternatives.
Thenweputsubjectivescorevalueoneachcellofthetable.Thesum(ornormalizedsum)ofand
computethesumofallfactorsforeachalternatives.
Table2:Evaluationbasedonscoresofeachfactor
Criteria|Alternatives ChoiceX
ChoiceY ChoiceZ Range
FactorA
FactorB
FactorC
FactorD
Sum
NormalizedScore
1
20
2
0.4
19.4
12.9%
4
70
0
0.75
74.75
49.7%
5
50
1
0.4
56.4
37.5%
05
1100
2to+2
0to1
Forexample,wehave3alternativechoicesX,YandZandfourcriteriatodecidethealternativesA,
B,CandD.Youcaninputanynameforalternativesandcriteria.Thevaluesonthetable2areany
KardiTeknomo
Page2
AHPTutorial
numbercertainrangeforeachfactor.Theonlysimilaritybetweenthesenumbersisthattheyhave
thesameinterpretationthathighervaluesarepreferablethansmallervalues.
Ifyouhavemanyalternatives,sometimesitiseasiertocomparethesumvalueofeachchoiceby
normalizingthem.Totalsumsis150.55(=19.4+74.75+56.4).Thesumofeachchoiceisnormalized
by division of each sum with the total sums. For instance, choice X is normalized into
19.4/150.55*100%= 12.9%. Clearly choice Y is preferable than choice Z while choice Z is better
thanX.
However,youwillnoticethattherangeofvalueforeachfactorsarenotthesame.Itisquiteunfair
to sum all the values of multiple criteria and compare the result. Clearly factor B is dominant
becausetherangehashighervalue.Tobefair,wecanproposetwosolutions:
1. Instead of using arbitrary values for each factor, we just rank the choice for each factor.
Smallerrankvalueismorepreferablethanhigherrank.
2. Wetransformthescorevalueofeachfactoraccordingtotherangevaluesuchthateach
factorwillhavethesamerange.
Inthenextsections,letustrythetwosolutionsonebyone.
Evaluation based on Rank
Nowwechangethevalueoftable2aboveintorank.
Table3:Evaluationbasedonranksofeachfactor
Criteria|Alternatives
ChoiceX ChoiceY ChoiceZ
FactorA
FactorB
FactorC
FactorD
Sum
3
3
3
2
11
2
1
2
1
6
1
2
1
2
6
NormalizedScore
26.09%
36.96%
36.96%
Thevaluesofeachrowareeither1or2or3representtherank(basedonthevalueofprevious
table).Sincesmallerrankvalueismorepreferablethanhigherrank,weneedtonormalizethesum
indifferentwayusingformulabelow
sum
normalized score = 12 1
total sum
The total sum is 23 (=11+6+6). In this case the normalized score of Choice X is 0.5*(111/23) =
26.09%, while the normalized score of Choice Y and Z are 0.5*(16/23) = 36.96%. In this case
higher normalized score correspond to higher preference. You may notice that we have
KardiTeknomo
Page3
AHPTutorial
transformedtherankvalues(whichisordinalscale)intonormalizedscorevalue(whichisaratio
scale).
Comparingtheresultsoftwotablesaboveshowthattherankofpreferencechangebythewaywe
compute our case. Even though we based our judgments on the same score values, the rank
reduce some information of these values. In this case choice Y and Z become indifference, or
equallypreferable.
Nowletusseewhathappenifwetransformthescorevalueofeachfactorinsuchawaysuchthat
all factors have the same range value. Say, we choose all factors to have range to be 0 to 1. To
convert linearly the score of each factor from table 2 into table 4, we use the following formula
whichisbasedonsimplegeometricofalinesegment
nub nlb
new score =
( original score olb ) + nlb
oub olb
Thegeometryofthelineartransformationisshowninthefigurebelow
Table4:ConvertedNewScoresbasedonRange
Criteria|Alternatives ChoiceX
ChoiceY ChoiceZ
FactorA
0.2
0.8
1
FactorB
0.192
0.697
0.495
FactorC
0
0.5
0.75
FactorD
0.4
0.75
0.4
Sum
0.792
2.747
2.645
NormalizedScore
12.8%
44.4%
42.8%
Forinstance,FactorAhasoriginallyrange0to5.TomakescoreofchoiceYfrom4intoarangeof0
to1wehaveolb=0,oub=5,nlb=0,nub=1,andscore=4,thus
1 0
4
new score =
( 4 0 ) + 0 = = 0.8 . Another example, for choice X in factor B has original
50
5
KardiTeknomo
Page4
AHPTutorial
scoreof20andoriginalrange1to100.Thuswehaveolb=1,oub=100,nlb=0,nub=1andscore
1 0
19
=20,thus new score =
( 20 1) + 0 = = 0.192
100 1
99
Clearly the transformation of score value is a little bit more complicated than rank but we get
betterresults.
Inthenextsectionyouwilllearnmoregeneralmethod.
Weighted Criteria
HavingafairdecisiontableasshowninTable4,nowcomeoutanotherquestion.Whathappenif
the factors have different importance weight? Of course the weight of importance is subjective
value, but we would like to know how the result will change if we put different weight on each
factor.
Just for example we judge that factor B and C are 2 times more important than factor D while
factor A is 3 times more important than factor B. We normalized the subjective judgment of
importancelevelandweobtainweightofimportanceasshowninTable5
Table5:WeightofImportance
FactorA
FactorB FactorC FactorD Sum
6
ImportanceWeight 54.5%
ImportanceLevel
2
18.2%
2
18.2%
1
9.1%
11
100.0%
Havingthenormalizedweightofeachfactor,nowwecanmultiplytheconvertedscoreoftable4
withthenormalizedweightandgetthenewweightedscoreasshowintable6.
Table6:Weightedscores
Criteria|Alternatives
Weight
ChoiceX
ChoiceY
ChoiceZ
FactorA
FactorB
FactorC
FactorD
Sum
54.5%
18.2%
18.2%
9.1%
100.0%
0.109
0.035
0.000
0.036
0.180
0.436
0.127
0.091
0.068
0.722
0.545
0.090
0.136
0.036
0.808
NormalizedScore
10.5%
42.2%
47.2%
ComparingthenormalizedscoreofTable4andTable6wecanobservedsomeshiftonthechoice.
In Table 4, choice Y is preferable than Z. However, after we include the weight of importance of
eachfactor,weconcludethatchoiceZisthemostpreferablealternative.
KardiTeknomo
Page5
AHPTutorial
Rank Reversal
Inthissection,Iwillshowthatrankaggregationwillleadtorankreversalcomparedtoscore
aggregation.
Suppose5judgeshavetoevaluate10typesofitems.Eachjudgegivesscore1to100foreach
item.Hereisanexampleoftheirjudgments.
Sincealljudgesareconsideredequallyexperts,theirweightsareequal.Thus,wecaneithersum
theirscoresortakeaverageoftheirscores.Ourgoalinevaluatingtheitemsistoranktheitems.
Tablebelowshowtheaggregationresultsandweranktheaverage(orthesum)ofthescores.
Nowsupposewehaveanotherscenariothatthejudgeswanttousetheirrankinsteadoftheir
scores.Inthiscase,eachjudgewillranktheirscores.Herearetheirranksbasedonthescores
above.
KardiTeknomo
Page6
AHPTutorial
Toaggregatetherank,theyusethesamewayasaggregatingthescoresthatisusingsumor
average.However,thistime,weaggregatetheranksinsteadofthescores.Then,theysortthe
rankaggregationusingbasedonminimumrankaggregation.
Noticethattherankbasedontheaggregationofscoresisnotthesameastherankbasedonthe
aggregationofrank.Someitemwillhavereverseorder.Thatiswhatwecalledasrankreversal.In
general,rankreversalistheruleofrankaggregation.Thesimilaritybetweenrankofscoresand
rankofrankisjustincidental.Intheexampleabove,item2supposetohaverank9butusingrank
aggregation,itbecomesrank8.Ontheotherhand,item4supposetohaverank7butusingrank
aggregation,nowitgoesdowntorank9.
KardiTeknomo
Page7
AHPTutorial
Thesimplelessonis:usescoreaggregation,andnotrankaggregationbecauseitmayleadtorank
reversal.
Wehavelearnedsimplemethodtoquantifyoursubjectiveopinionforourdecisionmaking.Inthe
nextsectionyouwilllearnanotherpowerfulmethodcalledAnalyticHierarchyProcess(AHP).
KardiTeknomo
Page8
AHPTutorial
Analytic Hierarchy Process (AHP) is one of Multi Criteria decision making method that was
originallydevelopedbyProf.ThomasL.Saaty.Inshort,itisamethodtoderiveratioscalesfrom
paired comparisons. The input can be obtained from actual measurement such as price, weight
etc.,orfromsubjectiveopinionsuchassatisfactionfeelingsandpreference.AHPallowsomesmall
inconsistency in judgment because human is not always consistent. The ratio scales are derived
fromtheprincipalEigenvectorsandtheconsistencyindexisderivedfromtheprincipalEigenvalue.
Dont worry if you dont understand yet about all of those terminologies above because the
purposeofthistutorialistoexplainthatinaverysimpleway.Youjustneedtoreadonandatthe
endyouwillunderstand.ThistutorialisalsoaccompaniedwithaMSExcelfile(yesyoucandoAHP
withspreadsheet).
Pairwise Comparison
Now let me explain what paired comparison is. It is always easier to explain by an example.
SupposewehavetwofruitsAppleandBanana.Iwouldliketoaskyou,whichfruityoulikebetter
thantheotherandhowmuchyoulikeitincomparisonwiththeother.Letusmakearelativescale
to measure how much you like the fruit on the left (Apple) compared to the fruit on the right
(Banana).
Ifyouliketheapplebetterthanbanana,youthickamarkbetweennumber1and9onleftside,
whileifyoufavorbananamorethanapple,thenyoumarkontherightside.
ForinstanceIstronglyfavorbananatoapplethenIgivemarklikethis
Nowsupposeyouhavethreechoicesoffruits.Thenthepairwisecomparisongoesasthefollowing
KardiTeknomo
Page9
AHPTutorial
Youmayobservethatthenumberofcomparisonsisacombinationofthenumberofthingstobe
compared. Since we have 3 objects (Apple, Banana and Cheery), we have 3 comparisons. Table
belowshowsthenumberofcomparisons.
Table7:Numberofcomparisons
n
Numberofthings
1 2 3 4 5 6 7
n ( n 1)
numberofcomparisons
0 1 3 6 10 15 21
The scaling is not necessary 1 to 9 but for qualitative data such as preference, ranking and
subjectiveopinions,itissuggestedtousescale1to9.
Inthenextsection,youwilllearnhowtoanalyzethesepairedcomparisons
Making Comparison Matrix
Bynowyouknowhowtomakepairedcomparisons.Inthissectionyouwilllearnhowtomakea
reciprocalmatrixfrompairwisecomparisons.
ForexampleJohnhas3kindsoffruitstobecomparedandhemadesubjectivejudgmentonwhich
fruithelikesbest,likethefollowing
KardiTeknomo
Page10
AHPTutorial
Wecanmakeamatrixfromthe3comparisonsabove.Becausewehavethreecomparisons,thus
wehave3by3matrix.Thediagonalelementsofthematrixarealways1andweonlyneedtofill
up the upper triangular matrix. How to fill up the upper triangular matrix is using the following
rules:
1. Ifthejudgmentvalueisontheleftsideof1,weputtheactualjudgmentvalue.
2. Ifthejudgmentvalueisontherightsideof1,weputthereciprocalvalue.
Comparingappleandbanana,Johnslightlyfavorbanana,thusweput 13 intherow1column2of
thematrix.ComparingAppleandCherry,Johnstronglylikesapple,thusweputactualjudgment5
on the first row, last column of the matrix. Comparing banana and cherry, banana is dominant.
Thusweputhisactualjudgmentonthesecondrow,lastcolumnofthematrix.Thenbasedonhis
preferencevaluesabove,wehaveareciprocalmatrixlikethis
1
3
5
7
1
a ji =
aij
Thusnowwehavecompletecomparisonmatrix
apple 1
banana 3
cerry 15
1
3
5
7
1
7
Notice that all the element in the comparison matrix are positive, or aij > 0 . Next section will
discussabouthowyouwillusethismatrix.
KardiTeknomo
Page11
AHPTutorial
Inthissection,IwouldliketoexplainwhatthemeaningofEigenvectorandEigenvalueisandhow
tocomputethemmanually.
Priority Vectors
Having a comparison matrix, now we would like to compute priority vector, which is the
normalizedEigenvectorofthematrix.IfyouwouldliketoknowwhatthemeaningofEigenvector
and Eigenvalueisand how to computethem manually,go to myother tutorialandthenreturn
backhere.ThemethodthatIamgoingtoexplaininthissectionisonlyanapproximationofEigen
vector(andEigenvalue)ofareciprocalmatrix.Thisapproximationisactuallyworkedwellforsmall
matrix size n 3 and there is no guarantee that the rank will not reverse because of the
approximation error. Nevertheless it is easy to compute because all we need to do is just to
normalizeeachcolumnofthematrix.AttheendIwillshowtheerrorofthisapproximation.
Supposewehave3by3reciprocalmatrixfrompairedcomparison
1
3
15
1
3
1
1
7
5
7
1
Wesumeachcolumnofthereciprocalmatrixtoget
banana 3
cerry 15
21
sum
5
apple
1
3
1
7
31
21
13
Then we divide each element of the matrix with the sum of its column, we have normalized
relativeweight.Thesumofeachcolumnis1.
banana
cerry
sum
apple
5
21
15
21
1
21
7
31
21
31
3
31
5
13
7
13
1
13
ThenormalizedprincipalEigenvectorcanbeobtainedbyaveragingacrosstherows
KardiTeknomo
Page12
AHPTutorial
ThenormalizedprincipalEigenvectorisalsocalledpriorityvector.Sinceitisnormalized,thesum
ofallelementsinpriorityvectoris1.Thepriorityvectorshowsrelativeweightsamongthethings
thatwecompare.Inourexampleabove,Appleis28.28%,Bananais64.34%andCherryis7.38%.
JohnmostpreferablefruitisBanana,followedbyAppleandCheery.Inthiscase,weknowmore
thantheirranking.Infact,therelativeweightisaratioscalethatwecandivideamongthem.For
example,wecansaythatJohnlikesbanana2.27(=64.34/28.28)timesmorethanappleandhealso
likebananasomuch8.72(=64.34/7.38)timesmorethancheery.
Asidefromtherelativeweight,wecanalsochecktheconsistencyofJohnsanswer.Todothat,we
needwhatiscalledPrincipalEigenvalue.PrincipalEigenvalueisobtainedfromthesummationof
productsbetweeneachelementofEigenvectorandthesumofcolumnsofthereciprocalmatrix.
Computationandthemeaningofconsistencyareexplainedinthenextsection.
Asanote,IputthecomparisonmatrixintoMaximasoftwaretoseehowdifferentistheresultof
numericalcomputationofEigenvalueandEigenvectorcomparedtotheapproximationabove.
1 13 5
A = 3 1 7
15 71 1
[ W, ] = eig ( A )
WegetthreeEigenvectorsconcatenatedinto3columnsofmatrix W
W = 0.9140
0.9140
0.9140
ThecorrespondingEigenvaluesarethediagonalofmatrix
0
0
3.0649
-0.0324 + 0.4448i
0
= 0
0
0
-0.0324 - 0.4448i
ThelargestEigenvalueiscalledthePrincipalEigenvalue,thatis max = 3.0649 whichisveryclose
*
KardiTeknomo
Page13
AHPTutorial
to our approximation max = 3.0967 (about 1% error). The principal Eigen vector is the Eigen
vectorthatcorrespondstothehighestEigenvalue.
0.3928
w = 0.9140
0.1013
Thesumis1.4081andthenormalizedprincipalEigenvectoris
0.2790
w = 0.6491
0.0719
Thisresultisalsoveryclosetoourapproximation
0.2828
w = 0.6434
0.0738
Thustheapproximationisquitegood.
Thus the sum of Eigen vector is not one. When you normalized an Eigen vector, then you get a
priorityvector.Thesumofpriorityvectorisone.
In the next section you will learn how to make use of information of Principal Eigen value to
measurewhethertheopinionisconsistent.
What is the meaning that our opinion is consistent? How do we measure the consistency of
subjectivejudgment?Attheendofthissectionwillbeabletoanswerthosequestions.
LetuslookagainonJohnsjudgmentthatwediscussedintheprevioussection.IsJohnjudgment
consistentornot?
KardiTeknomo
Page14
AHPTutorial
FirstheprefersBananatoApple.ThuswesaythatforJohn,BananahasgreatervaluethanApple.
Wewriteitas B ; A .
Next, he prefers Apple to Cherry. For him, Apple has greater value than Cherry. We write it as
A ; C .
Prof.Saatyprovedthatforconsistentreciprocalmatrix,thelargestEigenvalueisequaltothesize
CI = max
n 1
KnowingtheConsistencyIndex,thenextquestionishowdoweusethisindex?Again,Prof.Saaty
proposed that we use this index by comparing it with the appropriate one. The appropriate
ConsistencyindexiscalledRandomConsistencyIndex( RI ).
KardiTeknomo
Page15
AHPTutorial
n
RI
1
0
2
0
Table8:RandomConsistencyIndex( RI )
3
4
5
6
7
0.58
0.9
1.12
1.24
1.32
8
1.41
9
1.45
10
1.49
Then,heproposedwhatiscalledConsistencyRatio,whichisacomparisonbetweenConsistency
IndexandRandomConsistencyIndex,orinformula
CI
CR =
RI
IfthevalueofConsistencyRatioissmallerorequalto10%,theinconsistencyisacceptable.Ifthe
ConsistencyRatioisgreaterthan10%,weneedtorevisethesubjectivejudgment.
For our previous example, we have CI = 0.0484 and RI for n = 3 is 0.58, then we have
CI 0.0484
CR =
=
= 8.3% < 10% .Thus,Johnssubjectiveevaluationabouthisfruitpreference
RI
0.58
isconsistent.
Sofar,inAHPweareonlydealingwithpairedcomparisonofcriteriaoralternativebutnotboth.In
nextsection,IshowanexampletousebothcriteriaandalternativeintwolevelsofAHP.
Inthissection,IshowanexampleoftwolevelsAHP.Thestructureofhierarchyinthisexamplecan
bedrawnasthefollowing
Level0isthegoaloftheanalysis.Level1ismulticriteriathatconsistofseveralfactors.Youcan
alsoaddseveralotherlevelsofsubcriteriaandsubsubcriteriabutIdidnotusethathere.Thelast
level (level 2 in figure above) is the alternative choices. You can see again Table 1 for several
examplesofGoals,factorsandalternativechoices.Thelinesbetweenlevelsindicaterelationship
betweenfactors,choicesandgoal.Inlevel1youwillhaveonecomparisonmatrixcorrespondsto
pairwisecomparisonsbetween4factorswithrespecttothegoal.Thus,thecomparisonmatrixof
KardiTeknomo
Page16
AHPTutorial
level1hassizeof4by4.Becauseeachchoiceisconnectedtoeachfactor,andyouhave3choices
and 4 factors, then in general you will have 4 comparison matrices at level 2. Each of these
matriceshassize3by3.However,inthisparticularexample,youwillseethatsomeweightoflevel
2matricesaretoosmalltocontributetooveralldecision,thuswecanignorethem.
Based on questionnaire survey or your own paired comparison, we make several comparison
matrices. Click here if you do not remember how to make a comparison matrix from paired
comparisons.Supposewehavecomparisonmatrixatlevel1astablebelow.Theyellowcolorcells
inuppertriangularmatrixindicatethepartsthatyoucanchangeinthespreadsheet.Thediagonal
isalways1andthelowertriangularmatrixisfilledusingformula a ji =
1
.
aij
Table9:Pairedcomparisonmatrixlevel1withrespecttothegoal
Criteria
A
B
C
D PriorityVector
1.00
3.00
7.00
9.00
57.39%
A
B
0.33
1.00
5.00
7.00
29.13%
C
0.14
0.20
1.00
3.00
9.03%
D
0.11
0.14
0.33
1.00
4.45%
Sum
1.59
4.34
13.33
20.00
100.00%
max =4.2692,CI=0.0897,CR=9.97%<10%(acceptable)
ThepriorityvectorisobtainedfromnormalizedEigenvectorofthematrix.Clickhereifyoudonot
rememberhowtocomputepriorityvectorandlargestEigenvalue max fromacomparisonmatrix.
CIandCRareconsistencyIndexandConsistencyratiorespectively,asIhaveexplainedinprevious
section.Foryourclarity,Iincludeagainheresomepartofthecomputation:
max = ( 0.5739 ) (1.59 ) + ( 0.2913) ( 4.34 ) + ( 0.0903)(13.33) + ( 0.0445 )( 20 ) = 4.2692
max n
4.2692 4
= 0.0897
n 1
3
CI 0.0897
CR =
=
= 9.97% < 10% (Thus,OKbecausequiteconsistent)
RI
0.90
RandomConsistencyIndex(RI)isobtainedfromTable8.
Suppose you also have several comparison matrices at level 2. These comparison matrices are
madeforeachchoice,withrespecttoeachfactor.
Table10:Pairedcomparisonmatrixlevel2withrespecttoFactorA
Choice
X
Y
Z
PriorityVector
1.00
1.00
7.00
51.05%
X
Y
1.00
1.00
3.00
38.93%
Z
0.14
0.33
1.00
10.01%
Sum
2.14
2.33
11.00
100.00%
CI =
KardiTeknomo
Page17
AHPTutorial
max =3.104,CI=0.05,CR=8.97%<10%(acceptable)
Table11:Pairedcomparisonmatrixlevel2withrespecttoFactorB
Choice
X
Y
Z
PriorityVector
1.00
0.20
0.50
11.49%
X
Y
5.00
1.00
5.00
70.28%
Z
2.00
0.20
1.00
18.22%
Sum
8.00
1.40
6.50
100.00%
max =3.088,CI=0.04,CR=7.58%<10%(acceptable)
WecandothesameforpairedcomparisonwithrespecttoFactorCandD.However,theweightof
factorCandDareverysmall(lookatTable9again,theyareonlyabout9%and5%respectively),
therefore we canassume theeffectof leaving themoutfromfurther considerationisnegligible.
Weignorethesetwoweightsassetthemaszero.Sowedonotusethepairedcomparisonmatrix
level2withrespecttoFactorCandD.Inthatcase,theweightoffactorAandBinTable9mustbe
adjustedsothatthesumstill100%
57.39%
AdjustedweightforfactorA=
= 0.663
57.39% + 29.13%
29.13%
AdjustedweightforfactorB=
= 0.337
57.39% + 29.13%
Thenwecomputetheoverallcompositeweightofeachalternativechoicebasedontheweightof
level1andlevel2.Theoverallweightisjustnormalizationoflinearcombinationofmultiplication
betweenweightandpriorityvector.
X = ( 0.663 )( 51.05% ) + ( 0.337 )(11.49% ) = 37.72%
Table12:Overallcompositeweightofthealternatives
ChoiceX
51.05% 11.49%
37.72%
ChoiceY
38.93% 70.28%
49.49%
ChoiceZ
10.01% 18.22%
12.78%
Forthisexample,wegettheresultsthatchoiceYisthebestchoice,followedbyXasthesecond
choiceandtheworstchoiceisZ.Thecompositeweightsareratioscale.WecansaythatchoiceYis
3.87timesmorepreferablethanchoiceZ,andchoiceYis1.3timesmorepreferablethanchoiceX.
We can also check the overall consistency of hierarchy by summing for all levels, with weighted
KardiTeknomo
Page18
AHPTutorial
consistency index (CI) in the nominator and weighted random consistency index (RI) in the
denominator.Overallconsistencyofthehierarchyinourexampleaboveisgivenby
w CI
CR =
w RI
____
0.0897(1)+0.05(0.663)+0.04(0.337)
= 0.092 < 10% (Acceptable)
0.90 (1)+0.58(0.663)+0.58(0.337)
Page19
AHPTutorial
from http://maxima.sourceforge.net/) to obtain the actual Eigen Values and Eigen Vectors. If you
reallywanttouseEigenvalueandEigenvectorforrealproblemusingMSexcel,Isuggestyouto
installfreeAddInslibrarymatrix.xlafromhttp://digilander.libero.it/foxes/SoftwareDownload.htm.It
isagreatprogramthatyoumayusemanymatrixfunctions.
Final Remark
Bynowyouhavelearnedseveralintroductorymethodsonmulticriteriadecisionmaking(MCDM)
fromsimplecrosstabulation,usingrank,andweightedscoreuntilAHP.UsingAnalyticHierarchy
Process(AHP),youcanconvertordinalscaletoratioscaleandevencheckitsconsistency.
KardiTeknomo
Page20