Saltar al contenido

Lección 22 · Ethics, Privacy and Communication

Data Privacy and Personal Data

Recognize personal and sensitive data, understand re-identification, compare pseudonymization, aggregation and masking, and handle data safely every day.

Privacy is about people having reasonable control over information about themselves, and being safe from its misuse. If your work touches names, emails, locations, health details, purchases or messages, you handle information that can affect someone's life. This lesson gives you practical habits. It is general education, not legal advice: your organization's rules and your local law come first.

What counts as personal data

Broadly, personal data is information that relates to an identified or identifiable person. Definitions differ between laws, but think widely:

  • direct identifiers: full name, email, phone, government ID numbers;
  • indirect identifiers: birth date, postal code, job title, device ID, location trail;
  • information about the person: orders, grades, health notes, opinions.

Some categories, often including health, biometrics, religion, political opinions and sexual orientation, are treated as especially sensitive by many laws and need extra care.

Removing names is not enough

Combinations of ordinary details can point to one person. If a small town has only one 47-year-old female dentist, then "age 47, woman, dentist" identifies her even without a name. Matching a "de-identified" dataset with another source can re-identify people. Location histories are especially revealing, because home and work places form a distinctive pattern.

Python How many records are unique?

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.

Dropping the job and grouping ages reduces the number of unique people, but here it does not remove them all.

Protective techniques

Ways to reduce risk

Pseudonymize Swap names for codes
Aggregate Report groups
Suppress Hide tiny groups
Restrict access Only who needs it
1 / 2
  • Pseudonymization replaces direct identifiers with codes and keeps the link separately and securely. It lowers risk, but the data can still be linked back. Under the EU's GDPR, for example, pseudonymized data that can be linked to a person with extra information counts as personal data, especially for whoever holds or can reasonably get that link. In 2025 the EU's Court of Justice ruled (case C-413/23 P) that it is not necessarily personal data for every recipient: that depends on whether the recipient can reasonably identify people. The rules are still developing, so ask a privacy specialist before you treat any data as outside the law.
  • Anonymization aims to make re-identification no longer reasonably possible. It is hard to achieve and depends on what other data exists. Do not label data "anonymous" casually.
  • Generalization uses less detail, such as an age band instead of a birth date.
  • Aggregation and suppression: publish counts for groups and hide cells with very few people. Watch for totals that let readers calculate a hidden cell.
  • Masking hides parts of a value, such as showing only the last digits.
  • Differential privacy is a formal method that adds carefully measured randomness to results to limit what can be learned about any one person.

Suppression in practice

SQL Hide small groups in a report

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

The threshold of 5 is only an example; the right rule depends on the data and your policy. If you also published North's total of 7, anyone could subtract 6 and learn the hidden count of 1. Suppression must consider totals and other published tables.

Everyday safe habits

  1. Collect less. Data you never collect cannot leak.
  2. Limit access to people who need it for their task.
  3. Delete data when its purpose and retention rules end.
  4. Use approved tools to share files. Avoid personal email or public links.
  5. Test with fake data, not real customer records.
  6. Check screenshots and slides for names and hidden columns.
  7. Be careful with AI tools. Do not paste personal or confidential data into a service unless your organization has approved it for that data. See the generative AI tutorial for background.
  8. Report incidents fast, such as a file sent to the wrong person. Early reporting limits harm.

Rights and transparency

Many data protection laws give people rights such as seeing their data, correcting mistakes or asking for deletion, with conditions and exceptions. Know whom to contact in your organization when such a request arrives. A clear, short privacy notice that says what is collected, why, who receives it and how long it is kept builds trust.

Plan a safe report

Suppose you must share staff training results with managers. The raw file lists names, birth dates, scores and notes about learning difficulties. Ask what the managers need: probably the pass rate by department and the topics that cause trouble. So you remove names, birth dates and notes, and report group totals. For a department with only three people, you merge it with a similar one or write "too few to report", because a pass rate of 2 of 3 could point to individuals.

Then check how the file travels. Send it through an approved tool, limit who can open it, and set a date to delete older versions. Look at the file once more for hidden columns, extra sheets or earlier edit history before you send it. Individual feedback, if needed, goes only to the person and those with a clear duty to help them.

Practice

Which of these could identify a person? A staff list without names that shows job title, office and start date; a map of one person's daily phone locations with the name removed; a count of 2,000 website visits by country.

Answers: the staff list can identify people, especially when only one person has a certain job in an office. The location map is very revealing, since home and work places often point to one person. The country counts are usually low risk, but a country with only one or two visitors could matter in some settings, so check small cells. When you are unsure, treat the data as personal and ask your privacy contact.

Common mistakes: thinking hashing an email makes it anonymous (the same email gives the same hash, so it can still be matched or guessed); sharing "anonymous" data with unique combinations; keeping old exports forever; and sending whole datasets when a summary would do.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Why is removing names often not enough to anonymize data?

    Indirect identifiers, alone or combined with other data, can single someone out.
  2. 2. What is pseudonymization?

    It reduces risk but the data can still be linked back to people.
  3. 3. A published table hides one small cell but also shows the row total and all other cells. What is the problem?

    Totals can reveal suppressed values, so suppression must be planned together.
  4. 4. What is the safest way to test a new data tool?

    Test data avoids exposing real people while you learn the tool.

Summary

  • Personal data includes anything that relates to an identifiable person.
  • Unique combinations can re-identify people even without names.
  • Pseudonymized data is not the same as anonymous data.
  • Generalize, aggregate, suppress and restrict access, minding totals.
  • Collect little, share carefully and report incidents quickly.

Next: Communicating With Data

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