Learn R Programming

CDF.PSIdekick (version 1.2)

MaxErrorAt_PDF: Locate where the maximum error occurs between two PDFs

Description

Find the location of the maximum direct error between a non-private PDF and a DP approximation of that PDF.

Usage

MaxErrorAt_PDF(Y, est, range, gran, ...)

Arguments

Y
The vector output of a non-differentially private PDF computation (values within bins)
est
The vector output of a differentially private PDF computation (values within bins)
range
A vector length 2 containing user-specified min and max to truncate the universe to
gran
The smallest unit of measurement in the data (one [year] for a list of ages)
...
Optionally add additional parameters. This is primarily used to allow automated execution of varied diagnostic functions.

Value

A single value, the value at which the largest absolute vertical difference between parallel observations in the private- and true-PDF vectors occurs.

Examples

Run this code
MaxErrorAt_PDF(c(.1,.2,.3,.4,.5,.6,.7,.8,.9,1), c(.1,.2,.3,.3,.3,.3,.3,.3,.4,1),
   range= c(1,10), gran =1)

Run the code above in your browser using DataLab