Scientists interested in the relationship among vision, foraging for food, and fitness studied three isolated populations of a small species of primate whose diet includes small insects and fruit, both of which the animals primarily identify by sight. The three populations were once part of a larger population that was fragmented as a result of habitat destruction by humans. The study populations were selected on the basis of the significantly different vegetation among their current habitats. The scientists analyzed the frequency in each population of each of three alleles of a gene encoding an opsin protein. Opsin proteins are important for color vision, and each allele provides maximum sensitivity to a specific wavelength of visible light and thus to certain colors. Analysis of the alleles present in each population was performed in two different ways, and the data were combined to calculate the frequencies