Codes in Matlab codes are used for estimations. The figure.r is a R code generating figures used in the paper.

In a matlab codes file, Density_estimation.m and mean_estimation.m are codes for experiments comparing the utility of density estimation and mean estimation under different privacy constraints.

alpha_DP_density_est.m, GDP_density_est.m, and nonpriv_density_est.m are codes for non-parametric density estimations under epsilon-LDP, GLDP, and non-private setting that achieves the minimax rates.

LapDP_density_est.m is a code for non-parametric density estimation using Laplacian mechanism.

Other codes except laprnd.m are codes defining functions used in alpha_DP_density_est.m.

laprnd.m is a code generating Laplacian random vector used in other codes.