Skip to contents

Make a Measurement that implements randomized response on a categorical value.

Usage

make_randomized_response(categories, prob, .T = NULL)

Arguments

categories

Set of valid outcomes

prob

Probability of returning the correct answer. Must be in [1/num_categories, 1)

.T

Data type of a category.

Value

Measurement

Details

Required features: contrib

make_randomized_response in Rust documentation.

Supporting Elements:

  • Input Domain: AtomDomain<T>

  • Output Type: T

  • Input Metric: DiscreteDistance

  • Output Measure: MaxDivergence

Proof Definition:

(Proof Document)