Behaviour genetics is the study of the influence of an organism’s genetic composition on its behaviour and the interaction of heredity and environment insofar as they affect behaviour.
Two people may have the same genotype but different phenotypes, which may be due to personal choices they’ve made to alter their appearance, such as dying their hair or piercing their ears, or due to the influence of epigenetics.
Epigenetic markers, such as DNA methylation and histone tail modification, can be left on DNA through exposure to certain environmental factors, such as specific diets and pollution.
Natural selection is the mechanism of evolution, suggesting that any genetically-determined behaviour, which gives the individual a selective advantage, will be present in future generations.
Examples of genetically-determined behaviours with a selective advantage include: avoiding fire and deep water, certain individuals having longer necks, and specific cows producing more milk.