Home▸AI & Machine Learning▸Artificial Intelligence Ai Bias Simulation

🧪 Artificial Intelligence Ai Bias Simulation

Train a real logistic-regression classifier in your browser on synthetic loan data where one group's credit-history feature is historically suppressed, and watch disparate approval and false-rejection rates emerge — then fix it with a demographic-parity threshold.

AI & Machine Learning2DModerate60 FPS📱 Mobile-adapted
artificial-intelligence-ai-bias-simulation ↗ Open standalone

This simulation demonstrates how bias enters real machine-learning systems even when the protected attribute (group membership) is never fed to the model. Two hundred synthetic loan applicants are split into Group A and Group B with identical underlying qualification distributions, but Group B's recorded credit-history feature is historically suppressed by an adjustable amount — modelling biased record-keeping, redlining, or systematic under-scoring. A genuine logistic-regression classifier trains itself by gradient descent in your browser on this data, and its 3D decision boundary — a tilted plane through a point cloud of applicants — shows exactly how a single shared approval threshold produces disparate approval and false-rejection rates between equally-qualified groups. A one-click "fairness fix" swaps in group-specific thresholds to equalize approval rates (demographic parity), with the accuracy trade-off shown live, so you can see both how algorithmic bias is manufactured and how one standard mitigation actually works.

⚙ Under the hood

This simulation demonstrates the potential for bias in artificial intelligence systems. It explores how algorithms can perpetuate and amplify existing societal biases if not carefully designed and monitored.

Ai BiasBias Detection

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)