Target wrote the book on targeting.The retail giant uses what's called "predictive analytics" to influence the purchasing habits of its customers. And now, that same level of sophistication is shaping our political campaigns.Two books tell the story. The first is Charles Duhigg's The Power of Habit: Why We Do What We Do in Life and Business, which reveals how Target assigns its clients a code that tracks what we buy.What data does Target collect? Age. Marital status. Home address and commute time to the store. Credit card preference. And Web choices.This can be powerful information if used together with other details that are available for purchase, including "ethnicity, job history, the magazines you read, if you've ever declared bankruptcy or gotten a divorce, the year you bought (or lost) your house, where you went to college, what kinds of topics you talk about online, whether you prefer certain brands of coffee, paper towels, cereal or applesauce," Duhigg wrote for the New York Times Magazine earlier this year.Duhigg says Target can sometimes determine when a customer is expecting a baby even if the woman never disclosed that information to the retailer, much less her family. How? By tracking purchases of unscented lotion, vitamins such as magnesium and zinc, washcloths and cotton balls.The arrival of a newborn is one of the rare instances when purchasing habits are up for grabs and, if those patterns can be influenced, it becomes very profitable because, Duhigg told me, most of our "decisions ... are actually habits."When I said data mining could have great applicability to the political process, Duhigg told me that the Obama campaign had hired a chief scientist who comes from the habit-formation world. Hmmm.Which brings me to Sasha Issenberg and Victory Lab: The Secret Science of Winning Campaigns, or as Politico calls it, "the Moneyball of Politics."Gone are the days when getting out the vote simply involved party committee people working with street lists of registered voters whom they sought to mobilize strictly based on their party registration, says the former writer for Philadelphia magazine and The B oston Globe."Now databases have gotten so good in politics that every time a campaign is contacting you -- every time a committee person or ward leader or a volunteer is knocking on a door asking you, do you plan to vote, who do you plan to vote for and what issues are important to you -- that information is not getting thrown out on a clipboard at the end of the year but is sticking around. Now there are thousands of data points on each voter."You can run these complex statistical models, basically algorithms, that will give campaigns the confidence that they can predict ... to a percentage probability -- how likely you are to vote, who you're going to vote for and what issues you're likely to care about."In 2005, Michigan political consultant Mark Grebner collaborated with Yale political scientists who were interested in new ways to motivate people to vote. One experiment involved sending voters a copy of their recent voting record and those of their neighbors, along with a promise to repeat the disclosure (all based on publicly available information) after the election. That threat increased turnout by 20 percent.Pay attention in the next month."I would look at the mail you get and try to deduce why somebody is sending it to you and think about if their assumptions seem right," Issenberg says. "If you're someone who votes often and you're a hard Obama supporter or a hard Romney supporter and either campaign is sending you mail, they're doing it wrong, and that probably means there's bad data or bad analysis underneath it."No wonder they call it political "science."Michael Smerconish writes for The Philadelphia Inquirer.