Python으로 배우는 데이터 프라이버시와 익명화
Rebeca Gonzalez
Instructor
$$
$$








차등 개인정보 보호는 개인정보 보호를 수학적으로 정의한 개념입니다.






그리스 문자 엡실론 $\epsilon$: 공개 데이터의 프라이버시·노이즈 수준.
예: $\epsilon$ = 1
$\epsilon^1=2.72$

# Get counts and bars for non-private histogram of salaries counts, bins = np.histogram(salaries)# Normalize counts to get proportions of the height proportions = counts / counts.sum()# Draw the histogram of proportions plt.bar(bins[:-1], height=proportions, width=(bins[1] - bins[0])) plt.show()

import diffprivlib.tools# Get counts and bars for private histogram of salaries with epsilon of 0.1 dp_counts, dp_bins = tools.histogram(salaries, epsilon=0.1)# Normalize counts to get proportions dp_proportions = dp_counts / dp_counts.sum()# Draw the histogram of proportions and see differences plt.bar(dp_bins[:-1], dp_proportions, width=(dp_bins[1] - dp_bins[0])) plt.show()
비공개 히스토그램

프라이빗 히스토그램 결과

Python으로 배우는 데이터 프라이버시와 익명화