Assortative mating with respect to body size can arise as a consequence of intrasexual competition. In some species, size is correlated with fecundity in females. Therefore, males choose to mate with larger females, with the larger males defeating the smaller males in courting them. Examples of species that display this type of assortative mating include the jumping spider "Phidippus clarus" and the leaf beetle "Diaprepes abbreviatus". In other cases, larger females are better equipped to resist male courtship attempts, and only the largest males are able to mate with them.