The green-beard effect is a thought experiment used in evolutionary biology to explain selective altruism among individuals of a species.