histogramPostHerfindahl: Histogram Herfindahl Index

Description Usage Arguments Details Value

View source: R/utilities-histogram.R

Description

Produce differentially private Herfindahl index for categorical types of data.

Usage

1

Arguments

release

A numeric vector with a noisy estimate of bin counts.

n

A numeric vector of length one specifying the number of observations in in the data.

Details

Let s_i be the percentage of data points in category i in the result histogram. Then, the Herfindahl index is defined to be the sum of the squares of s_i over all categories. Since the percentage of data points in category i may be computed directly from the bin counts in a histogram, a differentially private Herfindahl index may be calculated from a noisy histogram with no additional privacy loss incurred.

Value

Herfindahl index.


IQSS/PSI-Library documentation built on Feb. 15, 2020, 9:03 p.m.