Week 5: Ethics in Social Network Analytics
Feb-2026
Last Week:
This Week: Ethics in Analytics
By the end of this lecture, you will be able to:
The Stakes Are High
Every click, scroll, and purchase generates data. How we collect, store, and use this data has real consequences for individuals and society.
What happened:
Consequences:
Lessons for ShopSocial:
Wooclap Question
Go to wooclap.com and enter code: KMIAHE
What data would you share for a 10% discount on ShopSocial?
A. Purchase history only
B. Location data
C. Browsing behavior
D. None - privacy is more important

Applied to ShopSocial:
Amazon’s AI Hiring Tool:
Shut down after discovering gender bias - the system penalized female candidates.

ProPublica Investigation:
Recidivism risk scoring was biased against African Americans.
\[Data + Model = Prediction\]
Common Bias Sources:
| Type | Example |
|---|---|
| Selection Bias | Training data doesn’t represent population |
| Feedback Loops | Recommendations reinforce existing patterns |
| Omitted Variables | Missing attributes that affect outcomes |
| Societal Bias | Human biases embedded in historical data |
Key Insight: Simply ignoring sensitive attributes (gender, race) does NOT remove bias - it’s already embedded in other features.
Activity (3 minutes)
You’re auditing ShopSocial’s analytics. Assess each feature:
| Feature | Ethical Concern | Acceptable? |
|---|---|---|
| Personalized pricing | Price discrimination | |
| “Customers like you bought” | Filter bubble | |
| Abandoned cart emails | Manipulation | |
| Sharing data with advertisers | Privacy violation |
Discussion: Which features would you approve? What safeguards would you add?

| Aspect | GDPR | EU AI Act |
|---|---|---|
| Focus | Personal data & privacy | AI systems & risks |
| Scope | Data collection/processing | AI model development |
| Key Concern | Consent & data rights | Fairness & safety |
For ShopSocial: Must comply with BOTH - protect customer data AND ensure fair AI recommendations.
Privacy:
Fairness:
Regulations:
Practice:
What You’ve Learned:
| Week | Topic |
|---|---|
| 1 | Web Analytics Fundamentals |
| 2 | Web Scraping & APIs |
| 3 | Social Network Analysis |
| 4 | Unsupervised Learning |
| 5 | Ethics & Regulations |
Next Steps:
Thank you!
Dr. Zexun Chen
Zexun.Chen@ed.ac.uk
Office Hours: By appointment
Good luck with your coursework!
