Garbage In, Biased Out: How to Choose the Variables Before You Choose the Model
Before any model is trained, someone decides which variables go in. That choice sets accuracy, risk and legal exposure. Here is how to choose them, why dropping a sensitive field is not enough, and how to check the output, with real cases from Amazon, US healthcare and the Netherlands.
Listen to this blog
AI voice, 7 min
📌 Metrics in this blog that don't cite a public source are indicative only and do not reflect any organisation's actual numbers. Read the disclaimer.
When an AI project disappoints, the first suspect is the model. The second should be the data, and more specifically a decision made well before any model was trained: which variables go in. That decision sets the ceiling on accuracy, the floor on risk, and often the legal exposure. It also tends to be made fast and informally, by whoever happens to be building the pipeline.
The first session of Day 2 at the Business Leaders Programme at IIM Ahmedabad, taught by Prof. Swanand Deodhar, ended on three data options for a staffing model, with a debate about bias and privacy running through the whole discussion. This blog is about that decision: how to choose variables, why removing a sensitive field is not enough, what happened when companies got it wrong, and how to check your own system.
Part 1: Three Ways to Choose the Data
The choice is usually between using as many variables as possible and letting the model decide, starting with a conservative set of current and recent data, or pre-processing the data first by combining, converting and dropping variables before modelling. Each has a cost.
The first option feels modern and ambitious. It is also the one most likely to bring in sensitive data and proxies without anyone noticing. The second is the safest and easiest to explain, and may leave useful signal on the table. The third takes analyst time and domain judgement, which is what makes it the strongest. In practice the best teams start narrow and add variables one at a time, with a reason for each.
Part 2: Why Removing the Sensitive Field Is Not Enough
A common first response to bias worries is to delete the sensitive column. It does not work, because a model can rebuild the signal from other fields. Three public cases show how.
| Case | What the system used | What went wrong |
|---|---|---|
| Amazon recruiting tool | Ten years of résumés, mostly from men, to learn what a good candidate looks like | Reuters reported in 2018 that it downgraded résumés containing the word "women's" and graduates of two all-women's colleges. The team was disbanded. Amazon says the tool was never used by recruiters to evaluate candidates |
| US health risk algorithm | Health cost as a stand-in for health need, when deciding who gets extra care | Obermeyer and colleagues reported in Science in 2019 that Black patients were sicker at the same risk score, because less money had been spent on their care. Fixing the target cut the bias; the authors estimated the original design cut the share of Black patients flagged for extra care by more than half |
| Dutch childcare benefits | A risk model to flag benefit fraud, which treated non-Dutch or dual nationality as a risk factor | Thousands of families, estimates range from about 26,000 to 35,000, were wrongly accused and made to repay large sums. The Dutch data protection authority found the algorithms discriminatory. The government resigned in January 2021 after a parliamentary inquiry |
Figures for the Dutch case vary between sources and over time periods. The health algorithm finding is about one widely used commercial product, as studied by the authors.
The lesson common to all three: the thing the model was asked to predict, or the data it learned from, carried the bias. In the health case the target itself was a flawed proxy, cost for need. In the Dutch case a protected characteristic was an explicit input. In the Amazon case it came in through the history the model learned from.
Part 3: A Triage for Every Variable
The case's own variable list shows how this works. Gender, age, ethnicity, marital status, disability and sick leave are clear exclusions. Others, such as home city or language, are not protected, but can act as proxies for things that are. A variable in the review column is not banned. It is tested: does the model's output change a lot between groups when this field is in or out? If yes, drop it or explain it.
Part 4: Check the Output, Not Just the Input
Good intentions at the input stage need a check at the output stage. A simple method is to compare the rate at which the system selects, approves or recommends people from different groups. US employment guidance uses a four-fifths rule of thumb: if one group's selection rate is less than 80% of the highest group's, treat it as a flag to investigate.
This is a screening test, not proof of bias or a legal safe harbour, and in India there is no equivalent statutory ratio. It is still a cheap, repeatable way to notice a problem early. Run it for every important decision a model makes, by every group you can lawfully measure, and re-run it on a schedule, since the data changes.
Auditing a Model or Data Pipeline?
I advise product teams on feature selection, fairness checks and how to document model decisions for regulators. Book a 1-on-1 session.
Book a Session →Part 5: Keep the Data Honest After Launch
Bias is one risk. Another is plain decay: records that were true at entry stop being true. In the staffing case, openings were duplicated or stale, project end dates were unreliable and skill levels were guessed from time on a project. A model built on that learns the mess. Data quality has to be designed into the workflow that creates the data.
- Make the right entry the easy one. Required fields, drop-downs and defaults beat free text.
- Give every record an expiry. A skill or availability entry older than a set period is flagged, not trusted.
- Tie accuracy to something the entrant cares about. People keep data fresh when it affects them, for example their own recognition or workload.
- Log overrides with a reason. They show where the model or the data is wrong, for free.
- Name an owner and a retraining rhythm. Without one, a model drifts until someone notices in a complaint.
What This Means for Indian Fintech
In lending, fraud and collections, the same questions apply, with more at stake. A feature such as pincode or device type can proxy for religion, caste or income. Reserve Bank of India guidance on responsible AI, discussed in my blog on AI in Indian fintech and the FREE-AI framework, expects fairness, explainability and oversight. Documenting why each variable is in the model is good practice and also the first thing a regulator or auditor will ask for.
Part 6: Data Decays on a Schedule
Accuracy at launch is not accuracy next year. Skills change, people move, projects end and nobody updates the record. If even 3% of records go stale in a month, nearly a third are stale after a year, and a model that relied on them is quietly learning from fiction. At 5% a month it is almost half.
The practical answer is to treat freshness as a measured quantity. Track the share of records older than their expiry, assign the entry to someone who gains from keeping it accurate, and retrain the model on a calendar instead of when a complaint arrives. A one-page model card, covering what the model predicts, which variables it uses and why, how it was tested for bias, who owns it and when it is reviewed, is the cheapest document an AI team can produce.
The Bottom Line
The model is only as fair, accurate and defensible as the choices that fed it. Start with a narrow, justified set of variables, test the risky ones rather than assuming they are safe, check outputs by group, and build the data workflow so that accuracy is the easy path. Before you ask which model to use, ask which variables you can defend and who owns the data after launch.
🔑 Key Takeaways
- The choice of variables is made early, and it sets accuracy, risk and legal exposure.
- Removing a sensitive field does not remove its signal, because other fields act as proxies.
- Amazon's tool, a US health algorithm and the Dutch benefits model show bias entering through history, the target and explicit inputs.
- Sort every variable into include, review and test, drop or exclude before modelling.
- Check outputs by group with a simple selection-rate comparison, and repeat on a schedule.
- Design data quality into the workflow with required fields, expiry dates and logged overrides.
Frequently Asked Questions
Does removing gender or race from the data remove bias?
No. A model can rebuild the signal from other fields that correlate with it. Reuters reported that Amazon's recruiting tool downgraded résumés containing the word women's and graduates of two all-women's colleges, which acted as proxies for gender.
What did the Obermeyer study find?
Obermeyer, Powers, Vogeli and Mullainathan reported in Science in 2019 that a widely used US health algorithm used cost as a stand-in for health need. Because less money was spent on Black patients at the same level of illness, they were scored as lower risk. The authors estimated the design cut the share of Black patients flagged for extra care by more than half, and that changing the target reduced the bias.
What was the Dutch childcare benefits scandal?
A risk model used by the Dutch tax authority flagged benefit fraud and treated non-Dutch or dual nationality as a risk factor. Estimates of wrongly accused families range from about 26,000 to 35,000. The Dutch data protection authority found the algorithms discriminatory, and the government resigned in January 2021 after a parliamentary inquiry.
What is the four-fifths rule?
A US employment guideline under which a selection rate for one group that is less than four fifths (80%) of the highest group's rate is generally treated as a sign of adverse impact. It is a screening flag and not proof of bias, and India has no equivalent statutory ratio.
How should a startup choose which variables to use?
Start with a narrow set with a reason for each, exclude protected attributes, test likely proxies such as location or language by checking whether outputs differ by group when they are in or out, and add variables one at a time. Log why each variable is in the model.
Sources
- Dastin, J. (2018). Amazon scraps secret AI recruiting tool that showed bias against women, Reuters, 10 October 2018 (syndicated by Euronews).
- Obermeyer, Z., Powers, B., Vogeli, C. and Mullainathan, S. (2019). Dissecting racial bias in an algorithm used to manage the health of populations, Science, 366(6464), 447-453. See also the Berkeley summary.
- RNZ (2021). Dutch government resigns over child welfare fraud scandal; TheJournal.ie, Netherlands government resigns over child benefits; and University of Antwerp, Toeslagen executive summary. Counts of affected families differ between sources.
- US Code of Federal Regulations, 29 CFR 1607.4. Uniform Guidelines on Employee Selection Procedures, information on impact (the four-fifths rule of thumb).
- Related on this site: AI in Indian fintech and the RBI FREE-AI framework.
- Kellogg School of Management (2022). Tapping into a Digital Brain: AI-Powered Talent Management at Infosys (the case discussed in class; not reproduced here).
- The selection-rate chart and the fit examples are illustrative, not data from any company.