Skip to content

yuxiangw/optimal_dp_linear_regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Optimal and adaptive differentially private linear regression

This package contains the Matlab code used to reproduce the experimental results of the following paper:

  • Wang, Yu-Xiang. "Revisiting differentially private linear regression: optimal and adaptive prediction & estimation in unbounded domain." in Uncertainties in Artificial Intelligence (2018).

Arxiv https://arxiv.org/abs/1803.02596

  • TL;DR: AdaOPS and AdaSSP can automatically adapts to structures of the data set while preserving (eps,delta)-Differential Privacy.

bibtex entry:

@inproceedings{wang2018revisiting,
  title={Revisiting differentially private linear regression: optimal and adaptive prediction \& estimation in unbounded domain},
  author={Wang, Yu-Xiang},
  booktitle={Uncertainty in Artificial Intelligence (UAI-18)},
  year={2018}
}

Sample outputs:

Prediction on the `bike' data set Estimation of linear Gaussian model parameters

Left: Statistical learning: Varying \eps, \delta = 1e-6. Right: Statistical estimation: \eps = 1.0, \delta = 1e-6

Where are the 36 data sets used in this repository coming from?

  • Original data source

UCI Machine Learning Repository

  • Actual data source

Zichao Yang: https://github.com/zcyang

  • Yang, Zichao, Andrew Wilson, Alex Smola, and Le Song. "A la carte–learning fast kernels." In Artificial Intelligence and Statistics, pp. 1098-1106. 2015.

How to use the code?

  1. (Optionally) get the four somewhat large data sets (all other 32 data sets are stored in the pre-processed format)
cd data
chmod 755 wget_largedata.sh
./wget_largedata.sh

You might need to do some further processing to those four data sets to ensure all fields are numerical, there are no headers and the last column is the label to predict.

  1. Process the data sets into *.mat files. In MATLAB:
cd data
generatedata_all

This will process the datasets in standard ways.

  1. Run UCI data experiments

Run code/exp_uci.m

  1. Run synthetic data experiments

Run code/exp_simulation.m

About

This repo contains the code to reproduce the experimental results of https://arxiv.org/abs/1803.02596

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published