They help predict which populations are most vulnerable to extinction.