Course contentsShow
← Data Science
Lesson 1906 of 2,14544. Data Ethics and PrivacyFree lesson

Legal Bases for Processing Personal Data

Exploring the six lawful bases for data processing including consent, contract, legal obligation, and legitimate interests.

Legal Bases for Processing Personal Data

What You'll Learn

You'll learn the six lawful bases under GDPR that allow organizations to collect and process personal data—and how to choose the right one for your Data Science project.


Why Legal Bases Matter

Under GDPR, you cannot just process personal data because you want to. You need a legal justification—one of six lawful bases. Think of these as the "license" that permits data processing. Choose poorly, and your entire analytics pipeline could be non-compliant.


The Six Lawful Bases

1. Consent

The individual has explicitly agreed to processing for a specific purpose. Consent must be freely given, specific, informed, and unambiguous—a clear opt-in, not pre-ticked boxes.

2. Contract

Processing is necessary to fulfill a contract with the individual (e.g., delivering a purchased service based on their shipping address).

3. Legal Obligation

You're required by law to process the data (e.g., tax reporting, regulatory compliance).

4. Vital Interests

Processing is necessary to protect someone's life (rarely used in Data Science—think emergency medical scenarios).

5. Public Task

You're performing a task in the public interest or exercising official authority (government agencies, public research).

6. Legitimate Interests

Processing serves your legitimate business interests unless those interests are overridden by the individual's rights and freedoms. This requires a balancing test and is common in analytics—but contentious.


Choosing the Right Basis

For a customer churn model, contract might apply if prediction is core to service delivery. For newsletter analytics, you likely need consent. For fraud detection, legitimate interests often fits—but document your balancing test!

Key Takeaway: Always identify and document one of the six lawful bases before processing personal data; "legitimate interests" is powerful for Data Science but requires justification through a balancing test.