The basic equation was laid out in an episode of Nature on PBS. The domestication of the dog entailed (among other things) genetically selecting out…