The causes and consequences of demographic variation