Hill plays Peter Brand, Beane’s assistant and “stats guy.” You and I would immediately recognize him as a serious data miner. He totes his laptop everywhere, helping Beane make personnel decisions based on new, key metrics of a ballplayer’s performance. This is in stark contrast to the traditional, anecdote-based scouting approach used by the other major league teams.
For me, the movie was entertaining, but the book was really enlightening. I found it to be a source of numerous and familiar “lessons” about data mining – but couched in the less familiar context of major league baseball. In this article, I’d like to share some of these lessons with you.
Lessons 1, 2 & 3: Ask Questions, Pay Attention to Mistakes, and Don’t Be Defensive
Early in my career as a data miner, I was conditioned to believe that my role was to answer questions. Someone would hand me a data set and say, “Tell me who our best customers are” or “Find out why fewer customers are renewing.” I would trundle off to my cube and dig into the data to try to provide an answer. Have you had a similar experience?
As I worked on more and more projects, however, I found myself turning around to those clients and colleagues to ask questions – about the meaning of the data, about the population underlying the data, about the time frame of interest, about the outcome of interest, about the measures of success, etc. And I asked myself, “Am I asking too many questions?”
Luckily, I came across an article1 by Kevin Kelly that made me feel good about asking so many questions. He wrote:
The story of Moneyball perfectly illustrates the value of asking pesky questions like:
This question was pesky because it challenged the conventional wisdom, the mental-if-not-mathematical model that said:
The Oakland Athletics were a “bright spot” counter-example to this model. That is, they won many more games than expected, given their spending on players. There were also exceptions of a different type, what we might call “dark spots”.
Perhaps surprisingly, these big-spending failures were practically ignored. Instead, people in positions of power, like Major League Baseball Commissioner Bud Selig, were chafing about Oakland and:
The lesson from this portion of the book that resonates with me is to pay attention to mistakes6 made by a model (mental or mathematical, simple or sophisticated, built by others or by me). We all need to grapple with questions like “Is the model performing poorly on certain cases?” or “Is there any pattern to the errors?”
Here’s a related example from my own work. Recently, I collaborated with a client who has a large contingent of field technicians, called “techs.” These techs perform services on-site for both residential and commercial customers. My task was to build a model to estimate the time required for a tech to complete a given job, given data about the type of service requested and about the nature and location of the site.
I presented the model and some initial performance results to my client. She was politely happy with them, but she was really enthusiastic about digging deeper into the model errors – the jobs that were not predicted well. She wanted to understand those errors, to see if we could make the model even better.
Her enthusiasm infected me as well. As we drilled into the errors, we found something incredibly interesting: the biggest source of variation seemed to stem from the particular tech that was assigned to the job. (By the way, the tenure of the tech was already factored into the model. So the variation we saw was not due simply to differences in experience). For jobs with the same estimated time for completion – which we equated with “degree of difficulty” – one tech might take 15 minutes longer than predicted while another might take 10 minutes less. Further, these patterns were consistent across the full spectrum of job difficulty. That is, Fred was generally 20% slower across all of his jobs, adjusted for difficulty, while Sally was 25% quicker across her jobs.
Despite the model’s imperfections, it served a valuable purpose as a consistent, benchmark arbiter of job time (analogous to the function of the more- money-equals-more-wins mental model in baseball). By paying attention to the model’s mistakes, we identified people like Fred who might need more training. We also found “bright spots,”7 like Sally, who probably should be training Fred.
Another Moneyball lesson8 for me related to this project was: don’t be too defensive about the models that I build. Do you have this defensive tendency, too? (It sure seems like the major league baseball power brokers were extremely defensive about the more-money-equals-more-wins mental model). You spend a lot of time building a robust model. You sweat over the data representation, the transformations, the choice of model type, and a hundred more tiny-but-crucial details. Then, a client or colleague has the nerve, the unmitigated gall, to ask “Why did you do that?” or “Can’t the model predict any better?”
It’s human nature, I think, to defend the choices you make and the effort you put into building a model. But, a model can be better, and more useful, and more valuable if you seriously scrutinize its flaws as well as its strengths. We need to get feedback and insight from multiple objective sources – not our pals. From this effort, we can really build understanding which is our next topic.
Lessons 4 & 5: Keep an Outsider’s Perspective and Build Transparent Models to Achieve Understanding
Bill James is a pivotal figure in the Moneyball saga, despite not being directly involved as an employee or consultant to any major league baseball team. For a number of years preceding the Moneyball time frame, James had written (and sometimes self-published) his annual Baseball Abstract. His Abstracts had become bibles of enlightened baseball thought. James was first and foremost a writer and thinker, even more than he was a “stats guy.” He was an outsider with an outsider’s perspective. But his writing influenced insiders, like Billy Beane and Paul DePodesta of the Oakland A’s, to think and act differently than their peers.
Do you find, in your data mining work, that it can be an advantage not to be an expert in the business domain you’re modeling? I do. I think it helps to keep an outsider’s perspective. I think it helps to clearly define a hypothesis (ask a question!) and then let the data disprove it – or not.10 That’s the scientific method. And I think it helps to build models.
Bill James built a lot of models. In particular, he built a “run-created” model to predict the number of runs a baseball team would score in a season, given the collective offensive statistics of the players on the team.
An important aspect of James’ model is that it is “transparent.” You can inspect the factors that are involved (like walks and extra-base hits) and not involved (like batting average and stolen bases) in his model.
You can also study the relative importance, or weight, of the factors. The ability to inspect the factors and their weight can provide valuable insight – insight for making decisions about how to operate. For example, insight from the runs-created model influenced the Oakland A’s to acquire undervalued players who walked and got extra base hits and to trade overvalued players who had high batting averages and/or who stole a lot of bases.
For a recent insurance project, I built a model to predict churn – that is, to predict who would renew their policy and who would defect to another carrier. Because the model was transparent, my client and I saw clearly that calls to customer service were key indicators of future churn. In particular, calls classified as complaints indicated that a customer had “one foot out the door.” This knowledge influenced my client to define and implement a new business rule – even before the model was deployed for general use. The rule states: a retention specialist must make a follow-up call within 24 hours to any customer calling with a complaint. The reduction in churn has been immediate and significant.
To summarize, as in the case above, a model is more than a statistic or a formula. It encapsulates a hard-won nugget of knowledge and understanding about how things work.
Keeping an outsider’s perspective and building transparent models will help you and your clients achieve understanding. ‘Nuff said.
In this article, we discussed a handful of lessons gleaned from Moneyball, the popular book and movie. I hope both you and I will remember to:
- Ask questions
- Pay attention to mistakes
- Not be defensive about our models
- Keep an outsider’s perspective
- Build transparent models
Your comments and questions about this article are welcome. Please contact Tim at (724)-743-3642 or email@example.com.
- Kevin Kelly is a “big thinker” who is well worth reading whenever you can. See http://www.kk.org/thetechnium/archives/2004/11/when_answers_ar.php for more details about “When Answers Are Cheap.”
- Moneyball, by Michael Lewis, p. xi. Note that this citation, and those that follow, refer to the paperback edition of the book. Page numbers in the hardcover edition will be different.
- Ibid, p. xii.
- Ibid, p. xii.
- Ibid, p. xii.
- These “mistakes” might be called by different names in different contexts. They might be called outliers, or exceptions, or anomalies, or errors, or worst of all, failures. Most people don’t like to use any of these words.
- For an illuminating discussion of the value of looking for bright spots, see “Switch: How to Change Things When Change Is Hard” by Chip Heath and Dan Heath (http://www.heathbrothers.com/switch/)
- This is a tough lesson for me, one that I’ve had to wrestle with many times.
- Moneyball, by Michael Lewis, p.98
- Remember, we can’t prove anything with data. We can only reject or disprove a hypothesis.
- Moneyball, by Michael Lewis, p.77
- Ibid, p. 95