Tutorial: Using Analytic Hierarchy Process to define score weights

UNHCR MENA

Amman, 21 November 2017

Defining weights through expert judgment

Often teams of expert suffer from non-aligned goals, power politics, group dynamics and lack of mutual understanding.

How to build consensus on complex decisions in order to raise sufficient confidence in decision outcomes?

Use case with the Scoring of vulnerabilities

Vulnerability is not observed, it’s a latent variable, an intellectual construction based on multiple criteria.

The challenge is:

The Analytic Hierarchy Process (AHP)

Limitation of AHP

How to? A step by step approach

  1. Define vulnerability criteria
  2. Build the expert consultation form
  3. Generate the AHP file from the collected data
  4. Run AHP algorythm
  5. Review results
  6. Apply the formula

1. Define vulnerability criteria

Criteria should be saved in a configuration file using the format here data/criteria.csv.

Criteria without hierarchy

In this case N*(N-1)/2 pairs to review: 5 criteria -> 10 comparisons

Criteria-Code Criteria-Level-1-label Criteria-Level-2-label
age Age of head of household is above 50
gender Gender of head of household is female
size Household size is above 5
needs Occurrence of Specific needs
assitance Do not Receive assistance

PS: 6 criteria -> 15 comparison, 7 criteria -> 24 comparisons, 8 criteria -> 28 comparisons, 9 criteria -> 36 comparisons

Criteria with hierarchy

In this case 6 pairs to review…

Criteria-Code Criteria-Level-1-label Criteria-Level-2-label
age Demography Age of head of household is above 50
gender Demography Gender of head of household is female
size Demography Household size is above 5
needs Occurrence of Specific needs
assitance Do not Receive assistance

2. Build the expert consultation form

A form will allow to collect from expert priorities between criteria by making a series of judgments based on pairwise comparisons:

Use the script 1-Build-xlsform.R to build a xlsform file based on criteria defined above.

Form

The form can be used within UNHCR Kobo server. Experts can be humanitarian case workers that are used to assess vulnerability. See an example here

3. Generate the AHP file from the collected data

Once the selected experts (aka. decision-makers) have filled the online form , data can be exported from UNHCR Kobo server in csv format.

Use the script 2-build-hierarchy.R to build a xlsform file to create the AHP file.

This create the file that format correctly the pairwise preferences of each decision-makers to run the next step.

4. Run AHP algorithm

Note: Some proprietary software options are also available but would require a Data Protection Impact Assessment before using them.

5. Review results

Knit the 3-final-report.Rmd to get the report. You can see an example here.

An interactive interface is available to interact with results.

6. Apply the formula

Feedback / Comments

Please fill in an issue .

Thanks to Christoph Glur for developping the original AHP package and answering questions.