Decades of steady progress in pharmacogenetics have unearthed hundreds of associations between genes and drug response. But the field has to solve some theoretical and practical issues before it can deliver on the promise of personalized drug therapy.

As algorithms go, it’s deceptively simple. Just add together eight weighted pieces of patient information—age, height, weight, race, data about two genes, and a pair of clinical...