Giter VIP home page Giter VIP logo

lefteris-souflas / census-privacy-analysis Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.99 MB

Exploring US Census microdata, tackling privacy issues, and anonymization. Exercise A delves into quasi-identifiers, anonymization methods, identification risks, and differential privacy. Exercise B involves data loading, k-anonymity, histograms, adding noise for privacy, computing private averages, and analyzing privacy parameter impacts.

License: MIT License

Jupyter Notebook 100.00%
data-anonymization differential-privacy encryption gdpr pseudonymization quasi-identifiers jupyter-notebook k-anonymity python3 gaussian-mechanism gaussian-noise

census-privacy-analysis's Introduction

Census Privacy Analysis

Assignment 2 for the Business & Privacy Issues in Data Analysis Course of AUEB's MSc in Business Analytics

Description

The US Census Bureau provides microdata to be used in research and applications. These data were deemed a threat to privacy, and in 2020 they were anonymized for the first time. In this exercise, you must study the last non-anonymized census and discuss the privacy threats. An example of the microdata of the 2010 census can be found here. For a full description of the dataset, you can read the technical documentation.

For the exercise, please use the Delaware data available here.

How to use the dataset

  1. Download and decompress the zip file.
  2. The extracted directory contains the de.2010.pums.01.txt file.
  3. The de.2010.pums.01.txt file contains rows corresponding to:
    • Person records rows start with ‘P’
    • Household records rows that start with ‘H’
  4. For the next steps ignore the Household records.
  5. For the Person records, please read the brief description for the comprised columns and the possible values for each column that can be found here. We suggest using software like Excel or Numbers (manually) to guide the Person data or write a script to parse the file into a table.

Exercise A

After examining the data table (columns & values), answer the following questions:

  1. Which attributes can act as quasi-identifiers and why?
  2. Which of the following properties holds for the data?
    • They are anonymized
    • They are pseudonymized
    • They are encrypted
  • Explain the key differences between the three approaches with respect to GDPR.
  1. Explain how a person can be identified.
  2. Define differential privacy and explain the importance of the privacy parameter e.

Exercise B

Load the dataset into a Python notebook (we suggest Jupyter) and display the first few rows to understand the data.

  1. Use the Amnesia anonymization tool to apply k-anonymity to the dataset. Comment on the resulting dataset.
  2. Plot the distribution of numeric features in the dataset using histograms.
  3. Apply a random noise mechanism to some of the numeric columns using the Gaussian mechanism. The noise should be added to the original values in a way that preserves differential privacy.
  4. Calculate the differentially private averages for the individuals using the noisy data.
  5. Plot the distribution of numeric features after the noise addition. Try different values of the e parameter. Comment on the effect of the differential privacy on the results.

census-privacy-analysis's People

Contributors

lefteris-souflas avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.