Population heterogeneity and causal inference