The behavior described as a selfish herd, which benefits all members of a population, is known as altruism. In this dynamic, individuals position themselves within a group to reduce their own risk of predation, which inadvertently provides protection to the entire group.