Skip to content
tezvyn:

Algorithmic Bias: When Code Creates Unfair Outcomes

Source: Wikipedia: Algorithmic biasEasyHow cards are made

Algorithmic Bias: When Code Creates Unfair Outcomes

Algorithmic bias is a mirror reflecting flawed human data, leading to systematically unfair outcomes. It appears in hiring tools favoring one gender or loan systems denying certain groups. The footgun is assuming tech is neutral; the bias is in the data.

Why it exists

Algorithms are used to automate decisions at scale. The problem of algorithmic bias exists because the data used to train these systems, and the rules they operate on, often contain hidden, systematic unfairness from the real world. When an algorithm learns from biased history, it automates that bias.

The mental model

An algorithm is like a diligent but uncritical student. If you give it a library of books reflecting historical prejudices and ask it to define a 'good candidate,' its answer will be systematically skewed. The algorithm isn't malicious; it's just a mirror reflecting the bias in its training material, often amplifying it at scale.

How it works

Algorithmic bias creates a systematic and repeatable tendency to produce unfair outcomes. This happens when a model learns patterns from historical data. If that data reflects past discrimination (e.g., a company historically hired more men), the model learns to associate male-coded traits with success. It then applies this learned pattern to new decisions, perpetuating the original bias by privileging one category over another.

When to use it

The concept of algorithmic bias is relevant in any automated system making decisions about people, especially when trained on historical data. This includes credit scoring systems, resume screeners for hiring, risk assessments in the justice system, and even content recommendation engines. It's a critical lens for evaluating the fairness of any sociotechnical system.

When not to use it

There is no situation where creating algorithmic bias is acceptable. Instead, you must be most wary of it in high-stakes domains affecting people's lives, opportunities, or freedoms. The risk is highest when the training data is known to reflect historical societal inequities, as the algorithm will likely learn and perpetuate those same unfair patterns as its intended function.

One canonical example

Consider a hiring tool trained on 10 years of a company's resume data to find the best software engineers. If, historically, the company predominantly hired men, the algorithm might learn to penalize resumes that include words like 'women's' (e.g., 'women's coding club') or favor resumes with stereotypically male-associated activities. The system creates an unfair, biased outcome by privileging one group based on correlations in the data, even if 'gender' is not an explicit input.

Interview question

What is the primary source of algorithmic bias, even when the algorithm itself is designed to be neutral?

  • a.The historical data used for training contains patterns reflecting existing societal discrimination.Correct
  • b.Developers intentionally program the algorithm to favor specific demographic groups.
  • c.The algorithm's complex mathematical models are inherently flawed and unpredictable.
  • d.Algorithms are unable to process diverse inputs, leading to a narrow interpretation of fairness.
Why?

The card explicitly states that algorithmic bias arises because 'the data used to train these systems... often contain hidden, systematic unfairness from the real world.' It clarifies that 'the algorithm isn't malicious,' meaning the bias is not due to intentional programming (Option B), but rather learned from biased training material.

Just read this? Test yourself on what you have been reading.

Read the original → en.wikipedia.org

Put your scrolling time to good use

Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon

We are hiring for this. Open roles that interview on machine learning — each one lists the topics its interview covers.

See open roles