Saltar al contenido

Lección 21 · Ethics, Privacy and Communication

Data Ethics: Doing Right With Data

Apply data ethics: purpose, consent, fairness across groups, harm, transparency and accountability, with a fairness check you can run and a review checklist.

Data about people can improve services, find health risks and make work fairer. It can also exclude, expose, manipulate or discriminate. Data ethics asks not only "Can we do this?" but "Should we, who could be harmed, and who gets a say?" You do not need a philosophy degree. You need a few questions, asked early and honestly.

Laws and ethics

Laws about data protection differ between countries and sectors, and they change. Following the law is the minimum. Something may be legal and still unfair or hurtful. For legal duties, ask a qualified adviser or the responsible person in your organization.

Core principles

Respect people

Clear purpose
Meaningful choice
Protect data
1 / 2
  • Purpose: know why you collect data, and do not quietly use it for something very different.
  • Informed consent: when you rely on consent, people should understand what they agree to, be free to say no without unfair penalty, and be able to withdraw. A long, unclear notice is a weak form of choice.
  • Minimization: collect and keep only what you need.
  • Fairness: consider whether the data or method harms some groups more than others.
  • Transparency: be able to explain what you do in plain language.
  • Accountability: a named person or team is responsible, and people have a way to question results and correct errors.

Harm is more than leaks

Think about different harms:

Harm Example
Exposure A health condition can be inferred from shopping data
Exclusion An automated filter rejects people it has little data about
Unfair treatment One group gets worse prices or fewer opportunities
Manipulation Design pushes people toward choices against their interest
Chilling effect People avoid asking for help because they feel watched
Error A wrong record follows someone for years

Ask who bears each harm and whether they benefit at all.

Checking outcomes across groups

A system that works well on average can work poorly for a smaller group. Check results by group where it is lawful and appropriate to do so. The example uses invented loan screening data.

Python Compare error rates between groups

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Overall accuracy looks similar (88% and 80%), but qualified people in the south group are rejected three times as often. There are several definitions of fairness, such as equal approval rates or equal error rates, and when groups differ in their underlying rates, some definitions generally cannot all be satisfied at once. Choosing one is a value judgment that needs discussion, ideally including affected people.

Removing a sensitive column does not guarantee fairness. Other variables, such as postal code or school, can act as proxies that carry similar information.

Honest analysis is ethics too

  • Do not hide results that disagree with your goal.
  • Do not choose the chart or time window that misleads.
  • State limits and uncertainty.
  • Share corrections when you find errors.
  • Credit data sources and respect their licenses.

A short review before you start

Ask these questions, and write the answers down:

  1. What is the purpose, and is it fair to the people in the data?
  2. Would they be surprised or upset to learn how we use it?
  3. Do we need every field? Can we use less detailed data?
  4. Who could be harmed if we are wrong or if the data leaks?
  5. Which groups are missing or poorly represented?
  6. Can people challenge a result and get a human review?
  7. Who is responsible, and when will we check again?

A useful gut test: Would you be comfortable explaining this use to the people affected, in plain words? If not, stop and rethink. It is a starting point, not a complete test.

Automated decisions and AI tools

When software or AI influences decisions about jobs, credit, education, health or safety, the stakes rise. Test performance across groups, monitor it over time, keep meaningful human oversight (a person who can actually disagree, not one who just clicks "approve"), and give people a route to appeal.

Speaking up

If you see data used in a way that seems harmful, raise it through your organization's channels, such as a manager, privacy officer or ethics contact. Describe facts, not accusations: what the data is, how it is used and who may be affected.

A worked case

A delivery company wants to score drivers using phone sensor data, to cut accidents. The purpose sounds good. Now apply the review questions.

Drivers may not expect their phones to record movements outside work hours, so collection should stop when a shift ends. The company should say plainly what is recorded and why. Sensors can misread rough roads as harsh braking, which could unfairly affect drivers on certain routes, so results need checking by route and vehicle type. A low score should not trigger automatic penalties. A person should review the evidence, listen to the driver and be able to overrule the score. Data should be kept only as long as needed, with limited access.

These steps do not forbid the project. They change its design, and it is far cheaper to make such changes before launch than after trust is lost.

Common mistakes: assuming data is neutral; thinking that "it is public" means "any use is fine"; treating consent as a checkbox; and reviewing ethics only after the system is built.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Which statement about law and ethics is best?

    Some legal uses can still be unfair or harmful.
  2. 2. Why can removing a sensitive column fail to prevent unfairness?

    Related variables may carry much of the same information.
  3. 3. What does meaningful human oversight require?

    Oversight only works if the reviewer can actually change outcomes.
  4. 4. A system is accurate overall. What else should you check?

    Overall accuracy can hide much worse performance for some groups.

Summary

  • Ethics asks whether you should, and who could be harmed.
  • Use clear purposes, real choice, minimal data and accountability.
  • Check results across groups; fairness has several definitions.
  • Proxies can carry sensitive information.
  • Give people a way to question and correct decisions.

Next: Data Privacy

Tu progreso se guarda en este navegador. No necesitas una cuenta.