Topics

Ethics in data science is often reduced to a short list of themes such as privacy, bias, and transparency. Those themes matter, but a checklist is too weak for systems that affect access to credit, employment, healthcare, public services, education, insurance, or information. Ethical analysis has to begin earlier, with the purpose of the system, the way data are collected, the population represented, the decisions that will use the output, and the distribution of benefits and harms.
A technically accurate model can still be inappropriate. A model can optimize the wrong target, encode historically unequal treatment, expose sensitive information, shift burdens onto people with little ability to contest a decision, or create incentives that change the data-generating process after deployment.
Start with purpose and necessity
The first ethical question is not whether a model is fair. It is whether the model should exist in the proposed form at all.
A useful governance process asks:
- What decision will the system influence?
- Is the data collection necessary and proportionate to that purpose?
- Which groups bear the costs of errors?
- Can affected people contest or appeal the decision?
- Is there a less intrusive or simpler alternative?
- Who is accountable when the system fails?
These questions prevent technical optimization from replacing substantive judgment.
Privacy is more than removing names
Removing direct identifiers does not guarantee anonymity. Rich datasets can often be reidentified by combining quasi-identifiers such as age, location, timestamps, and behavioral patterns.
Privacy should therefore be treated as a property of the entire data lifecycle: collection, linkage, access, analysis, retention, sharing, and deletion. Data minimization, access controls, encryption, aggregation, differential privacy, and secure computation can all reduce risk, but none is a universal solution.
The appropriate mechanism depends on the threat model. Publishing a statistical table, training an internal model, and releasing individual-level records create different risks.
Bias begins before the model
Algorithmic bias is frequently described as a property of a fitted model, but many problems arise earlier. Measurement can differ between groups. Labels can reflect unequal access to services. Historical outcomes can encode previous decisions. Sampling can exclude parts of the population. Missingness can be socially structured.
If a label is biased, fitting a more sophisticated predictor to that label can reproduce the bias more accurately.
This is why fairness analysis should examine the full pipeline:
Fairness metrics encode different goals
Different fairness criteria formalize different normative objectives. Equalized odds concerns error rates conditional on the true outcome. Predictive parity concerns the relationship between predictions and observed outcomes. Calibration concerns whether estimated risks correspond to observed frequencies.
These criteria can conflict when base rates differ across groups. That is not a defect in the mathematics; it reflects a genuine conflict between different definitions of fairness.
A fairness metric therefore cannot determine policy by itself. The relevant criterion depends on the decision, legal context, harms, and institutional responsibilities.
Transparency is not the same as interpretability
Transparency can refer to documentation, data provenance, decision rules, model cards, audit logs, or disclosure of system limitations. Interpretability concerns whether the behavior of a model can be understood in a useful way.
A simple model can still be deployed opaquely. A complex model can be accompanied by strong documentation, uncertainty estimates, monitoring, and contestability.
The right question is what information each stakeholder needs. A regulator, model developer, clinician, and affected individual may require different forms of explanation.
Human oversight has to be real
Placing a person in the workflow does not automatically create meaningful oversight. If operators are overloaded, lack authority, or are encouraged to rubber-stamp model outputs, the system is still effectively automated.
Human oversight should specify when intervention is expected, what information is available, how disagreements are recorded, and whether overrides are reviewed. Otherwise, responsibility can be blurred rather than strengthened.
Distribution shift can create ethical failures
A model validated on one population may perform differently in another. When deployment populations change, harms can become uneven even if aggregate accuracy remains stable.
Monitoring should therefore examine subgroup performance, calibration, missingness, data quality, and operational thresholds over time. Ethical review is not a one-time approval step; it is part of model maintenance.
Feedback loops and performative effects
Predictions can change the environment they predict. A fraud model changes which transactions are investigated. A risk model changes who receives an intervention. A recommender changes what users see and therefore what data are collected next.
These feedback loops can reinforce disparities or create blind spots. Evaluation should therefore include downstream consequences, not only static test-set metrics.
Accountability and auditability
A responsible system needs a clear chain of accountability. It should be possible to determine who approved the purpose, who owns the data, who validated the model, who selected thresholds, who monitors performance, and who can suspend the system.
Auditability also requires reproducibility. Data versions, transformations, model specifications, evaluation protocols, and deployment changes should be recorded well enough for an independent reviewer to reconstruct the decision process.
Ethical analysis is a design problem
Ethics is strongest when it changes the design of the system rather than merely documenting risks after development. Examples include collecting fewer variables, using a different target, adding an appeal process, changing a threshold, limiting automation, redesigning validation, or deciding not to deploy.
The central principle is simple: model performance is only one component of system quality. A defensible data-science system must also be necessary, proportionate, contestable, auditable, and aligned with the rights and interests of the people affected by it.
References
- Barocas, S., Hardt, M., & Narayanan, A. Fairness and Machine Learning.
- Dwork, C., & Roth, A. (2014). The Algorithmic Foundations of Differential Privacy.
- Mitchell, M., et al. (2019). Model Cards for Model Reporting.
- Selbst, A. D., et al. (2019). Fairness and Abstraction in Sociotechnical Systems.
- Suresh, H., & Guttag, J. V. (2021). A Framework for Understanding Sources of Harm throughout the Machine Learning Life Cycle.
Embed interactive plots, widgets, and demos using <figure>, <iframe>, or <div class="interactive-embed"> containers. Ensure each embed includes descriptive captions for accessibility.
How to cite
Use the quick export buttons to save citations for reference managers or copy the formatted text directly.
Diogo Ribeiro (2023). Ethics in Data Science. Faculty of Media Arts and Design, Technical University of Porto. https://diogoribeiro7.github.io/data-science/ethics_data_science/.


