In the presence of a predatory stimulus, shoal size increases to allow for greater protection via the dilution effect. From the dilution effect, each individual will have a lesser chance of being attacked by a predator, since there are many other individuals in the group. In a larger group, there is a larger chance that a predator will attack a different shoalmate than it will attack the individual of interest. Individuals who stray from the shoal have an increased mortality risk. This leads to selection for grouping.
