Linking individual phenotype to density