Lesson 4.1: Ethical and Social Issues Around Data Collection
Lesson 4.1: Ethical and Social Issues Around Data Collection
What You'll Learn
- 4.1.A: Explain the risks to privacy from collecting and storing personal data on computer systems.
- 4.1.B: Explain the importance of recognizing data quality and potential bias in data sets.
- Distinguish between personally identifiable information (PII) and non-PII data.
- Identify sources of bias in data collection and their downstream effects on algorithms.
- Explain why legal compliance does not equal ethical behavior in data practices.
Key Vocabulary
| Term | Definition |
|---|---|
| PII | Personally Identifiable Information — any data that can identify a specific individual, such as name, SSN, email, or location. |
| digital footprint | The trail of data a person generates through online activity, including searches, purchases, and location history. |
| bias | Systematic error introduced when a data set does not accurately represent the population it is meant to model. |
| informed consent | A person's knowing agreement to have their data collected, understanding what it will be used for. |
| data aggregation | Combining multiple data sources or records so that non-sensitive data points together reveal sensitive information. |
| representation bias | Bias that occurs when certain groups are over- or under-represented in a data set, causing a trained model to perform poorly for underrepresented groups. |
Privacy Risks of Storing Personal Data (4.1.A)
Every time a program stores data about a user, it creates a potential privacy risk. The AP CSA exam expects you to be able to identify what constitutes PII, explain why storing it creates risk, and recognize when combining non-PII data creates a new privacy problem.
What Is PII?
PII is any data that, alone or combined with other data, can identify a specific person. Examples include:
- Name, address, phone number, email
- Social Security number, driver's license, passport number
- Biometric data (fingerprints, face scans)
- IP address, GPS coordinates, device identifiers
- Medical and financial records
📌 The Aggregation Problem
Each of the following alone seems harmless: your first name, the city you live in, the college you attended, your employer. But combined, they likely identify you uniquely. This is data aggregation — one of the most commonly tested concepts in this topic on the AP exam.
Why Stored Data Creates Risk
Stored data can be breached, sold, subpoenaed, or used in ways users didn't anticipate. Key risks the AP exam focuses on:
- Data breaches: Unauthorized access exposes stored PII.
- Re-identification: Anonymized data can be de-anonymized when combined with other public data.
- Surveillance: Governments or corporations can track behavior using digital footprints.
- Purpose creep: Data collected for one reason is later used for another without consent.
⚠️ AP Exam Trap: Legal ≠ Ethical
The AP exam frequently tests whether students can distinguish between what is legal and what is ethical. A company can legally collect and sell your browsing history in many jurisdictions — but that doesn't make it ethical. Watch for MCQ answer choices that conflate the two.
Data Quality and Bias (4.1.B)
When a data set is biased, any algorithm trained on it or run against it will produce biased results — even if the code is written perfectly. Recognizing bias is a software design skill, not just a social awareness skill.
Types of Bias in Data
- Representation bias: The data set underrepresents some groups. A facial recognition model trained mostly on light-skinned faces performs poorly on darker-skinned faces.
- Historical bias: Past data encodes past discrimination. A hiring algorithm trained on historical résumés may perpetuate the same patterns.
- Measurement bias: The tool used to collect data is inaccurate for some groups. A sensor calibrated for one demographic may give systematically wrong readings for another.
- Feedback loop bias: An algorithm's decisions create more data that reinforces its original bias.
✅ Example: Biased Training Data
A loan-approval algorithm is trained on 10 years of historical approvals. Because past practices denied loans to certain zip codes, the algorithm learns to penalize those zip codes — even if race is not an explicit variable. The data quality problem (biased historical decisions) produces a biased algorithm.
Data Quality Factors
Beyond bias, data quality also depends on:
- Accuracy: Does the data correctly reflect reality?
- Completeness: Are there missing values that skew results?
- Timeliness: Is the data current enough for the use case?
- Consistency: Is data collected the same way across all records?
Real-World Connection
📌 Why This Section Opens Unit 4
Unit 4 is about arrays, ArrayLists, searching, sorting, and algorithms — powerful tools for processing data at scale. Topic 4.1 comes first to establish a principle: what you do with data has consequences. Every array you process in this unit could represent real people. The AP exam tests whether future programmers think about that before they write the loop.
The Programmer's Responsibility
When you write code that collects, stores, or processes user data, you take on ethical obligations:
- Collect only what you need (data minimization).
- Be transparent about what data is collected and why.
- Secure stored data appropriately.
- Examine training data for bias before deploying algorithms.
- Consider who might be harmed by your program's outputs.
Summary
- PII is any data that can identify a specific individual; combining non-PII data can also create PII through aggregation.
- Storing personal data creates risks: breaches, re-identification, surveillance, and purpose creep.
- Legal data practices are not automatically ethical — the AP exam tests this distinction explicitly.
- Biased data produces biased algorithms; types include representation, historical, measurement, and feedback loop bias.
- Programmers share responsibility for the ethical use of data their code handles.
Practice Questions
Mastery: Ethical and Social Issues Around Data Collection
Get in Touch
Whether you're a student, parent, or teacher — I'd love to hear from you.
Just want free AP CS resources?
Enter your email below and check the subscribe box — no message needed. Students get daily practice questions and study tips. Teachers get curriculum resources and teaching strategies.
Message Sent!
Thanks for reaching out. I'll get back to you within 24 hours.
Prefer email? Reach me directly at [email protected]