Relationship between environment and variations in populations