# Calculate overall vulnerability

Combine 17 different vulnerability measures

In this exercise we combine the different measures of vulnerability into a single index. We use the following weights and definitions.

Step 1: calculate the vulnerability under the education and visualize the results

```var education = ee.Image("projects/earthengine-legacy/assets/projects/servir-mekong/undp/indicators/EducationalAttainmentv2");

var school = ee.Image("projects/earthengine-legacy/assets/projects/servir-mekong/undp/indicators/SchoolAttendancev2");

```

Step 2: calculate the vulnerability under the health and visualize the results

```var food = ee.Image("projects/earthengine-legacy/assets/projects/servir-mekong/undp/indicators/FoodConsumptionScorev2");

var health = ee.Image("projects/earthengine-legacy/assets/projects/servir-mekong/undp/indicators/Accesstohealthcarev2");

var water = ee.Image("projects/earthengine-legacy/assets/projects/servir-mekong/undp/indicators/Accesstocleanwaterv2");

var sanitation = ee.Image("projects/earthengine-legacy/assets/projects/servir-mekong/undp/indicators/AccesstoSanitationv2");

var handWashing = ee.Image("projects/servir-mekong/undp/indicators/HandWashingv2");

```

Step 3: calculate the vulnerability under living standard and visualize the results

```var overcrowding = ee.Image("projects/servir-mekong/undp/indicators/overcrowdingv2");

var housing = ee.Image("projects/earthengine-legacy/assets/projects/servir-mekong/undp/indicators/Housingmaterialsv2");

var fuel = ee.Image("projects/earthengine-legacy/assets/projects/servir-mekong/undp/indicators/Cookingfuelv2");

var electricity = ee.Image("projects/earthengine-legacy/assets/projects/servir-mekong/undp/indicators/accesstoelectricityv2");

var assets = ee.Image("projects/earthengine-legacy/assets/projects/servir-mekong/undp/indicators/Assetsv2");

var livelihoodBasedCopingStrategies = ee.Image("projects/servir-mekong/undp/indicators/LivelihoodBasedCopingStrategiesv2");

```

Step 4: Include monetary poverty in the analysis

```var consumption = ee.Image("projects/servir-mekong/undp/indicators/ConsumptionandExpenditurev2")
```

Step 5: combine all indices into a single index

```var total = education.multiply(0.1).add(