A former Wall Street quant sounds an alarm on the mathematical models that pervade modern life and threaten to rip apart our social fabric.
We live in the age of the algorithm. Increasingly, the decisions that affect our livesโwhere we go to school, whether we get a car loan, how much we pay for health insuranceโare being made not by humans, but by mathematical models. In theory, this should lead to greater fairness: Everyone is judged according to the same rules, and bias is eliminated.
But as Cathy OโNeil reveals in this urgent and necessary book, the opposite is true. The models being used today are opaque, unregulated, and uncontestable, even when theyโre wrong. Most troubling, they reinforce discrimination: If a poor student canโt get a loan because a lending model deems him too risky (by virtue of his zip code), heโs then cut off from the kind of education that could pull him out of poverty, and a vicious spiral ensues. Models are propping up the lucky and punishing the downtrodden, creating a โtoxic cocktail for democracy.โ Welcome to the dark side of Big Data.
Tracing the arc of a personโs life, OโNeil exposes the black box models that shape our future, both as individuals and as a society. These โweapons of math destructionโ score teachers and students, sort rรฉsumรฉs, grant (or deny) loans, evaluate workers, target voters, set parole, and monitor our health.
OโNeil calls on modelers to take more responsibility for their algorithms and on policy makers to regulate their use. But in the end, itโs up to us to become more savvy about the models that govern our lives. This important book empowers us to ask the tough questions, uncover the truth, and demand change.
Editorial Reviews
Review
A New York Times Book Review Notable Book of 2016
A Boston Globe Best Book of 2016
One of Wired‘s Required Reading Picks of 2016
One of Fortune‘s Favorite Books of 2016
A Kirkus Reviews Best Book of 2016
A Chicago Public Library Best Book of 2016
A Nature.com Best Book of 2016
An On Point Best Book of 2016
New York Times Editor’s Choice
A Maclean‘s Bestseller
Winner of the 2016 SLA-NY PrivCo Spotlight Award
โOโNeilโs book offers a frightening look at how algorithms are increasingly regulating peopleโฆ Her knowledge of the power and risks of mathematical models, coupled with a gift for analogy, makes her one of the most valuable observers of the continuing weaponization of big dataโฆ [She] does a masterly job explaining the pervasiveness and risks of the algorithms that regulate our lives.โ
โNew York Times Book Review
“Weapons of Math Destructionย is the Big Data story Silicon Valley proponents won’t tell…. [It] pithily exposes flaws in how information is used to assess everything from creditworthiness to policing tactics…. a thought-provoking read for anyone inclined to believe that data doesn’t lie.โ
โReuters
โThis is a manual for the 21st-century citizen, and it succeeds where other big data accounts have failedโit is accessible, refreshingly critical and feels relevant and urgent.โ
โFinancial Times
“Insightful and disturbing.”
โNew York Review of Books
โWeapons of Math Destructionย is an urgent critique ofโฆ the rampant misuse of math in nearly every aspect of our lives.โ
โBoston Globe
โA fascinating and deeply disturbing book.โ
โYuval Noah Harari, author ofย Sapiens;ย The Guardianโs Best Books of 2016
โIlluminatingโฆ [OโNeil] makes a convincing case that this reliance on algorithms has gone too far.โ
โThe Atlantic
โA nuanced reminder that big data is only as good as the people wielding it.โ
โWired
โIf youโve ever suspected there was something baleful about our deep trust in data, but lacked the mathematical skills to figure out exactly what it was, this is the book for you.โ
โSalon
โOโNeil is an ideal person to write this book. She is an academic mathematician turned Wall Street quant turned data scientist who has been involved in Occupy Wall Street and recentlyย started an algorithmic auditing company. She is one of the strongest voices speaking out for limiting the ways we allow algorithms to influence our livesโฆย Whileย Weapons of Math Destructionย is full of hard truths and grim statistics, it is also accessible and even entertaining. OโNeilโs writing is direct and easy to readโI devoured it in an afternoon.โ
โScientific American
โReadable and engagingโฆ succinct and cogentโฆย Weapons of Math Destructionย isย The Jungleย of our ageโฆ [It] should be required reading for all data scientists and for any organizational decision-maker convinced that a mathematical model can replace human judgment.”
โMark Van Hollebeke,ย Data and Society: PointsโIndispensableโฆ Despite the technical complexity of its subject,ย Weapons of Math Destructionย lucidly guides readers through these complex modeling systemsโฆ OโNeilโs book is an excellent primer on the ethical and moral risks of Big Data and an algorithmically dependent worldโฆ For those curious about how Big Data can help them and their businesses, or how it has been reshaping the world around them,ย Weapons of Math Destructionย is an essential starting place.โโNational Post
โCathy OโNeil has seen Big Data from the inside, and the picture isnโt pretty.ย Weapons of Math Destructionย opens the curtain on algorithms that exploit people and distort the truth while posing as neutral mathematical tools. This book is wise, fierce, and desperately necessary.โ
โJordan Ellenberg, University of Wisconsin-Madison, author ofย How Not To Be Wrong
โOโNeil has become [a whistle-blower] for the world of Big Dataโฆ [in] her important new bookโฆ Her work makes particularly disturbing points about how being on the wrong side of an algorithmic decision can snowball in incredibly destructive ways.โ
โTIME
โOโNeilโs work is so importantโฆ [her] book is a vital crash-course in the specialized kind of statistical knowledge we all need to interrogate the systems around us and demand better.โ
โBoing Boing
โCathy OโNeil, a number theorist turned data scientist, delivers a simple but important message: Statistical models are everywhere, and they exert increasing power over many aspects of our daily livesโฆย Weapons of Math Destructionย provides a handy map to a few of the many areas of our lives over which invisible algorithms have gained some control. As the empire of big data continues to expand, Cathy OโNeilโs reminder of the need for vigilance is welcome and necessary.โ
โAmerican Prospect
โAn avowed math nerd, OโNeil has written an engaging description of the effect of crunched data on our lives.โ
โHicklebeeโs,ย San Francisco ChronicleโBy tracking how algorithms shape people’s lives at every stage, O’Neil makes a compelling case that our bot overlords are using data to discriminate unfairly and foreclose democratic choices. If you work with data, or just produce reams of it online, this is a must-read.โ
โArsTechnicaโLucid, alarming, and valuableโฆ [OโNeilโs] writing is crisp and precise as she aims her arguments to a lay audience. This makes for a remarkably page-turning read for a book about algorithms.ย Weapons of Math Destructionย should be required reading for anybody whose life will be affected by Big Data, which is to say: required reading for everyone. Itโs a wake-up call โ a journalistic heir toย The Jungleย andย Silent Spring. Like those books, it should change the course of American society.โ
โAspen Times
“[O’Neil’s] propulsive study reveals many models that are currently ‘micromanaging’ the US economy as opaque and riddled with bias.”
โNature
โYou donโt need to be a nerd to appreciate the significance of [OโNeilโs] messageโฆย Weaponsย is a must-read for anyone who is working to combat economic and racial discrimination.โ
โGoop
“Cathy OโNeilโs book… is important and covers issues everyone should care about. Bonus points: itโs accessible, compelling, andโsomething I wasnโt expectingโreally fun to read.โ
โInside Higher Ed
โOften we donโt even know where to look for those important algorithms, because by definition the most dangerous ones are also the most secretive. Thatโs why the catalogue of case studies in OโNeilโs book are so important; sheโs telling us where to look.โ
โThe Guardian
โOโNeil is passionate about exposing the harmful effects of Big Dataโdriven mathematical models (what she calls WMDs), and sheโs uniquely qualified for the taskโฆ [She] makes a convincing case that many mathematical models today are engineered to benefit the powerful at the expense of the powerlessโฆ [and] has written an entertaining and timely book that gives readers the tools to cut through the ideological fog obscuring the dangers of the Big Data revolution.โโIn These Times
โIn this simultaneously illuminating and disturbing account, [OโNeil] describes the many ways in which widely used mathematic modelsโbased on โprejudice, misunderstanding, and biasโโtend to punish the poor and reward the richโฆ She convincingly argues for both more responsible modeling and federal regulation. An unusually lucid and readable look at the daunting algorithms that govern so many aspects of our lives.โโKirkus Reviewsย (starred)
โEven as a professional mathematician, I had no idea how insidious Big Data could be until I readย Weapons of Math Destruction. Though terrifying, itโs a surprisingly fun read: OโNeilโs vision of a world run by algorithms is laced with dark humor and exasperationโlike a modern-dayย Dr. Strangeloveย orย Catch-22. It is eye-opening, disturbing, and deeply important.โ
ย โSteven Strogatz, Cornell University, author ofย The Joy of x
โThis taut and accessible volume, the stuff of technophobesโ nightmares, explores the myriad ways in which largescale data modeling has made the world a less just and equal place.ย OโNeil speaks from a place of authority on the subjectโฆ Unlike some other recent books on data collection, hers is not hysterical; she offers more of a chilly wake-up call as she walks readers through the ways the โbig dataโ industry has facilitated social ills such as skyrocketing college tuitions, policing based on racial profiling, and high unemployment rates in vulnerable communitiesโฆ eerily prescient.โ
โPublishers Weekly
“Well-written, entertaining and very valuable.”
โTimes Higher Education
“Not math heavy, but written in an exceedingly accessible, almost literary style; [O’Neil’s] fascinating case studies of WMDs fit neatly into the genre of dystopian literature. There’s a little Philip K. Dick, a little Orwell, a little Kafka in her portrait of powerful bureaucracies ceding control of the most intimate decisions of our lives to hyper-empowered computer models riddled with all of our unresolved, atavistic human biases.”
โParis Review
โThrough harrowing real-world examples and lively story-telling,ย Weapons of Math Destructionย shines invaluable light on the invisible algorithms and complex mathematical models used by government and big business to undermine equality and increase private power. Combating secrecy with clarity and confusion with understanding, this book can help us change course before itโs too late.โย
โAstra Taylor, author ofย The Peopleโs Platform: Taking Back Power and Culture in the Digital Age
“Weapons of Math Destructionย is a fantastic, plainspoken call to arms. It acknowledges that models aren’t going away: As a tool for identifying people in difficulty, they are amazing. But as a tool for punishing and disenfranchising, they’re a nightmare.โ
โCory Doctorow, author ofย Little Brotherย and co-editor of Boing Boing
โMany algorithms are slaves to the inequalities of power and prejudice. If you donโt want these algorithms to become your masters, readย Weapons of Math Destructionย by Cathy OโNeil to deconstruct the latest growing tyranny of an arrogant establishment.โ
โRalph Nader, author ofย Unsafe at Any Speed
โIn this fascinating account, Cathy O’Neil leverages her expertise in mathematics and her passion for social justice to poke holes in the triumphant narrative of Big Data. She makes a compelling case that math is being used to squeeze marginalized segments of society and magnify inequities. Her analysis is superb, her writing is enticing, and her findings are unsettling.โ
โdanah boyd, founder of Data & Society and author ofย Itโs Complicated
“From getting a job to finding a spouse, predictive algorithms are silently shaping and controlling our destinies. Cathy O’Neil takes us on a journey of outrage and wonder, with prose that makes you feel like it’s just a conversation. But itโs an important one. We need to reckon with technology.โโLinda Tirado, author ofย Hand to Mouth: Living in Bootstrap America
โNext time you hear someone gushing uncritically about the wonders of Big Data, show themย Weapons of Math Destruction. Itโll be salutary.โ
โFelix Salmon, Fusion
About the Author
Cathy O’Neil is a data scientist and author of the blog mathbabe.org. She earned a Ph.D. in mathematics from Harvard and taught at Barnard College before moving to the private sector, where she worked for the hedge fund D. E. Shaw. She then worked as a data scientist at various start-ups, building models that predict peopleโs purchases and clicks. OโNeil started the Lede Program in Data Journalism at Columbia and is the author of Doing Data Science. She is currently a columnist for Bloomberg View.
Excerpt. ยฉ Reprinted by permission. All rights reserved.
1
BOMB PARTS
What Is a Model?ย
It was a hot August afternoon in 1946. Lou Boudreau, the player-manager of the Cleveland Indians, was having a miserable day. In the first game of a doubleheader, Ted Williams had almost single-handedly annihilated his team. Williams, perhaps the gameโs greatest hitter at the time, had smashed three home runs and driven home eight. The Indians ended up losing 11 to 10.
Boudreau had to take action. So when Williams came up for the first time in the second game, players on the Indiansโ side started moving around. Boudreau, the shortstop, jogged over to where the second baseman would usually stand, and the second baseman backed into short right field. The third baseman moved to his left, into the shortstopโs hole. It was clear that Boudreau, perhaps out of desperation, was shifting the entire orientation of his defense in an attempt to turn Ted Williamsโs hits into outs.
In other words, he was thinking like a data scientist. He had analyzed crude data, most of it observational: Ted Williams usually hit the ball to right field. Then he adjusted. And it worked. Fielders caught more of Williamsโs blistering line drives than before (though they could do nothing about the home runs sailing over their heads).
If you go to a major league baseball game today, youโll see that defenses now treat nearly every player like Ted Williams. While Boudreau merely observed where Williams usually hit the ball, managers now know precisely where every player has hit every ball over the last week, over the last month, throughout his career, against left-handers, when he has two strikes, and so on. Using this historical data, they analyze their current situation and calculate the positioning that is associated with the highest probability of success. And that sometimes involves moving players far across the field.
Shifting defenses is only one piece of a much larger question: What steps can baseball teams take to maximize the probability that theyโll win? In their hunt for answers, baseball statisticians have scrutinized every variable they can quantify and attached it to a value. How much more is a double worth than a single? When, if ever, is it worth it to bunt a runner from first to second base?
The answers to all of these questions are blended and combined into mathematical models of their sport. These are parallel universes of the baseball world, each a complex tapestry of probabilities. They include every measurable relationship among every one of the sportโs components, from walks to home runs to the players themselves. The purpose of the model is to run differentย scenarios at every juncture, looking for the optimal combinations. If the Yankees bring in a right-handed pitcher to face Angels slugger Mike Trout, as compared to leaving in the current pitcher, how much more likely are they to get him out? And how will that affect their overall odds of winning?
Baseball is an ideal home for predictive mathematical modeling. As Michael Lewis wrote in his 2003 bestseller, Moneyball, the sport has attracted data nerds throughout its history. In decades past, fans would pore over the stats on the back of baseball cards, analyzing Carl Yastrzemskiโs home run patterns or comparing Roger Clemensโs and Dwight Goodenโs strikeout totals. But starting in the 1980s, serious statisticians started to investigate what these figures, along with an avalanche of new ones, really meant: how they translated into wins, and how executives could maximize success with a minimum of dollars.
โMoneyballโ is now shorthand for any statistical approach in domains long ruled by the gut. But baseball represents a healthy case studyโand it serves as a useful contrast to the toxic models, or WMDs, that are popping up in so many areas of our lives. Baseball models are fair, in part, because theyโre transparent. Everyone has access to the stats and can understand more or less how theyโre interpreted. Yes, one teamโs model might give more value to home run hitters, while another might discount them a bit, because sluggers tend to strike out a lot. But in either case, the numbers of home runs and strikeouts are there for everyone to see.
Baseball also has statistical rigor. Its gurus have an immense data set at hand, almost all of it directly related to the performance of players in the game. Moreover, their data is highly relevant to the outcomes they are trying to predict. This may sound obvious, but as weโll see throughout this book, the folks building WMDs routinely lack data for the behaviors theyโre most interested in. So they substitute stand-in data, or proxies. They draw statistical correlations between a personโs zip code or language patterns and her potential to pay back a loan or handle a job. These correlations are discriminatory, and some of them are illegal. Baseball models, for the most part, donโt use proxies because they use pertinent inputs like balls, strikes, and hits.
Most crucially, that data is constantly pouring in, with new statistics from an average of twelve or thirteen games arriving daily from April to October. Statisticians can compare the results of these games to the predictions of their models, and they can see where they were wrong. Maybe they predicted that a left-handed reliever would give up lots of hits to right-handed battersโand yet he mowed them down. If so, the stats team has to tweak their model and also carry out research on why they got it wrong. Did the pitcherโs new screwball affect his statistics? Does he pitch better at night? Whatever they learn, they can feed back into the model, refining it. Thatโs how trustworthy models operate. They maintain a constant back-and-forth with whatever in the world theyโre trying to understand or predict. Conditions change, and so must the model.
Now, you may look at the baseball model, with its thousands of changing variables, and wonder how we could even be comparing it to the model used to evaluate teachers in Washington, D.C., schools. In one of them, an entire sport is modeled in fastidious detail and updated continuously. The other, while cloaked in mystery, appears to lean heavily on a handful of test results from one year to the next. Is that really a model?
The answer is yes. A model, after all, is nothing more than an abstract representation of some process, be it a baseball game, an oil companyโs supply chain, a foreign governmentโs actions, or a movie theaterโs attendance. Whether itโs running in a computer program or in our head, the model takes what we know and uses it to predict responses in various situations. All of us carry thousands of models in our heads. They tell us what to expect, and they guide our decisions.
Hereโs an informal model I use every day. As a mother of three, I cook the meals at homeโmy husband, bless his heart, cannot remember to put salt in pasta water. Each night when I begin to cook a family meal, I internally and intuitively model everyoneโs appetite. I know that one of my sons loves chicken (but hates hamburgers), while another will eat only the pasta (with extra grated parmesan cheese). But I also have to take into account that peopleโs appetites vary from day to day, so a change can catch my model by surprise. Thereโs some unavoidable uncertainty involved.
The input to my internal cooking model is the information I have about my family, the ingredients I have on hand or I know are available, and my own energy, time, and ambition. The output is how and what I decide to cook. I evaluate the success of a meal by how satisfied my family seems at the end of it, how much theyโve eaten, and how healthy the food was. Seeing how well it is received and how much of it is enjoyed allows me to update my model for the next time I cook. The updates and adjustments make it what statisticians call a โdynamic model.โ
Over the years Iโve gotten pretty good at making meals for my family, Iโm proud to say. But what if my husband and I go away for a week, and I want to explain my system to my mom so she can fill in for me? Or what if my friend who has kids wants to know my methods? Thatโs when Iโd start to formalize my model, making it much more systematic and, in some sense, mathematical. And if I were feeling ambitious, I might put it into a computer program.
Ideally, the program would include all of the available food options, their nutritional value and cost, and a complete database of my familyโs tastes: each individualโs preferences and aversions. It would be hard, though, to sit down and summon all thatย informationoff the top of my head. Iโve got loads of memories of people grabbing seconds of asparagus or avoiding the string beans. But theyโre all mixed up and hard to formalize in a comprehensive list.
The better solution would be to train the model over time, entering data every day on what Iโd bought and cooked and noting the responses of each family member. I would also include parameters, or constraints. I might limit the fruits and vegetables to whatโs in season and dole out a certain amount of Pop-Tarts, but only enough to forestall an open rebellion. I also would add a number of rules. This one likes meat, this one likes bread and pasta, this one drinks lots of milk and insists on spreading Nutella on everything in sight.
If I made this work a major priority, over many months I might come up with a very good model. I would have turned the food management I keep in my head, my informal internal model, into a formal external one. In creating my model, Iโd be extending my power and influence in the world. Iโd be building an automated me that others can implement, even when Iโm not around.
There would always be mistakes, however, because models are, by their very nature, simplifications. No model can include all of the real worldโs complexity or the nuance of human communication. Inevitably, some important information gets left out. I might have neglected to inform my model that junk-food rules are relaxed on birthdays, or that raw carrots are more popular than the cooked variety.
To create a model, then, we make choices about whatโs important enough to include, simplifying the world into a toy version that can be easily understood and from which we can infer important facts and actions. We expect it to handle only one job and accept that it will occasionally act like a clueless machine, one with enormous blind spots.
Sometimes these blind spots donโt matter. When we ask Google Maps for directions, it models the world as a series of roads, tunnels, and bridges. It ignores the buildings, because they arenโt relevant to the task. When avionics software guides an airplane, it models the wind, the speed of the plane, and the landing strip below, but not the streets, tunnels, buildings, and people.
A modelโs blind spots reflect the judgments and priorities of its creators. While the choices in Google Maps and avionics software appear cut and dried, others are far more problematic. The value-added model in Washington, D.C., schools, to return to that example, evaluates teachers largely on the basis of studentsโ test scores, while ignoring how much the teachers engage the students, work on specific skills, deal with classroom management, or help students with personal and family problems. Itโs overly simple, sacrificing accuracy and insight for efficiency. Yet from the administratorsโ perspective it provides an effective tool to ferret out hundreds of apparently underperforming teachers, even at the risk of misreading some of them.
Here we see that models, despite their reputation for impartiality, reflect goals and ideology. When I removed the possibility of eating Pop-Tarts at every meal, I was imposing my ideology on the meals model. Itโs something we do without a second thought. Our own values and desires influence our choices, from the data we choose to collect to the questions we ask. Models are opinions embedded in mathematics.
Whether or not a model works is also a matter of opinion. After all, a key component of every model, whether formal or informal, is its definition of success. This is an important point that weโll return to as we explore the dark world of WMDs. In each case, we must ask not only who designed the model but also what that person or company is trying to accomplish. If the North Korean government built a model for my familyโs meals, for example, it might be optimized to keep us above the threshold of starvation at the lowest cost, based on the food stock available. Preferences would count for little or nothing. By contrast, if my kids were creating the model, success might feature ice cream at every meal. My own model attempts to blend a bit of the North Koreansโ resource management with the happiness of my kids, along with my own priorities of health, convenience, diversity of experience, and sustainability. As a result, itโs much more complex. But it still reflects my own personal reality. And a model built for today will work a bit worse tomorrow. It will grow stale if itโs not constantly updated. Prices change, as do peopleโs preferences. A model built for a six-year-old wonโt work for a teenager.
This is true of internal models as well. You can often see troubles when grandparents visit a grandchild they havenโt seen for a while. On their previous visit, they gathered data on what the child knows, what makes her laugh, and what TV show she likes and (unconsciously) created a model for relating to this particular four-year-old. Upon meeting her a year later, they can suffer a few awkward hours because their models are out of date. Thomas the Tank Engine, it turns out, is no longer cool. It takes some time to gather new data about the child and adjust their models.
This is not to say that good models cannot be primitive. Some very effective ones hinge on a single variable. The most common model for detecting fires in a home or office weighs only one strongly correlated variable, the presence of smoke. Thatโs usually enough. But modelers run into problemsโor subject us to problemsโwhen they focus models as simple as a smoke alarm on their fellow humans.
Racism, at the individual level, can be seen as a predictive model whirring away in billions of human minds around the world. It is built from faulty, incomplete, or generalized data. Whether it comes from experience or hearsay, the data indicatesย that certain types of people have behaved badly. That generates a binary prediction that all people of that race will behave that same way.
Needless to say, racists donโt spend a lot of time hunting down reliable data to train their twisted models. And once their model morphs into a belief, it becomes hardwired. It generates poisonous assumptions, yet rarely tests them, settling instead for data that seems to confirm and fortify them. Consequently, racism is the most slovenly of predictive models. It is powered by haphazard data gathering and spurious correlations, reinforced by institutional inequities, and polluted by confirmation bias. In this way, oddly enough, racism operates like many of the WMDs Iโll be describing in this book.