How this calculation works
Estimate prevalence from forced-response randomized reports with known protocol probabilities and a transformed Wilson interval.
P(report yes)=q+tπ;πhat=clip[(yes/n−q)/t,0,1].A worked example
Among 1000 reports with 370 yes, truth probability 0.6 and forced-yes probability 0.2, the constrained prevalence estimate is 0.283333 and transformed 95%interval approximately[0.234378,0.333947].
Good to know
1–1e6 independent compliant respondents; known truth probability 0.001–1, forced-yes probability≥0, and their sum≤1. Constrained binomial estimate; transformed 95%Wilson interval intersected with[0,1]; incompatible interval rejected. No individual-answer reconstruction or protocol-noncompliance correction.
Reference: RRreg authors: forced-response protocol and prevalence (opens in a new tab) ↗
Privacy randomization changes the observed proportion
In a forced-response design, a respondent sometimes answers the sensitive question truthfully and sometimes reports a forced answer determined by a random mechanism. The observed yes fraction therefore mixes actual prevalence with deliberate randomization. Treating every yes as a truthful admission overstates or understates prevalence depending on the protocol.
The calculator uses known probabilities for truth, forced yes and the remaining forced no outcomes. It estimates an aggregate population fraction. It neither identifies which respondent used a particular branch nor reconstructs anyone's hidden truthful answer from the combined report count.
Compare this with the Survey sample size calculator. Recover prevalence and sampling uncertainty from privacy-randomized yes/no reports, rather than interpret the observed yes proportion as ordinary truth.
Specifying the randomization protocol
Let t be the unconditional probability of a truthful response and q the unconditional probability of a forced yes. Their sum cannot exceed one; the remainder forces no. These probabilities belong to the protocol and should be known rather than estimated by reusing the same observed yes fraction.
The truth probability must be positive because it is the identification coefficient for prevalence. When t is small, privacy randomization dominates the reports and dividing by t amplifies sampling uncertainty. A large sample cannot remove a systematic mistake in the protocol probabilities or undisclosed respondent noncompliance.
The thousand-report worked example
The default data contain three-hundred-seventy yes reports among one-thousand respondents, an observed fraction of zero-point-three-seven. With truth probability zero-point-six and forced yes zero-point-two, the implied prevalence is zero-point-three-seven minus zero-point-two, divided by zero-point-six.
This gives approximately zero-point-two-eight-three-three-three. A Wilson interval is first formed for the report-yes probability and then transformed through the same linear relationship. The displayed prevalence interval is approximately zero-point-two-three-four-three-eight to zero-point-three-three-three-nine-five, after respecting the possible prevalence range.
Why a constrained estimate is necessary
Finite samples can produce a report fraction below q or above q plus t even when the population protocol is correctly specified. The unconstrained inverse estimate would then fall below zero or above one. Those numbers cannot be population prevalences, so the binomial maximum-likelihood estimate is constrained to the boundary.
The page returns the unconstrained value and a boundary indicator as diagnostics rather than concealing the sampling discrepancy. If the transformed Wilson interval has no intersection with zero to one, the entered report count is incompatible with that protocol at this interval convention and no clipped interval is claimed.
Interval construction and its meaning
Wilson's interval is applied to the ordinary binomial report count. Because the relation between report probability and prevalence is increasing for positive t, transforming its endpoints preserves the interval order. Intersecting with the valid parameter space prevents impossible displayed bounds.
This is a transformed approximate frequentist interval, not a Bayesian credible interval or a formal test of protocol compliance. Its coverage depends on the report model and the original Wilson approximation. The truncation at boundaries should be stated when comparing with likelihood-based or exact alternatives.
Assumptions hidden by a simple formula
Respondents must use the random mechanism as specified, answer truthfully on the truthful branch and contribute independent reports under the same prevalence model. Selective refusal, misunderstanding or a mechanism whose probabilities vary unrecorded between respondents can invalidate the simple two-parameter inverse.
The randomization protocol protects individual information only according to its own design and implementation. This calculator does not certify that privacy was preserved in collection, storage or publication. An aggregate prevalence estimate should not be used to infer a named person's sensitive status.
Checks before interpretation
With truth probability one and forced yes zero, the calculation reduces to an ordinary proportion estimate and Wilson interval. Increasing the forced-yes probability while holding all else fixed lowers the inferred prevalence. Those limiting checks help detect confusion between unconditional branch probabilities and conditional instructions.
Report the sample count and all protocol probabilities alongside the estimate. Do not compare an observed report-yes percentage directly with an unrandomized survey prevalence. They measure different quantities until the randomization mechanism is accounted for, and that adjustment remains valid only under the stated compliance and sampling assumptions.
A few questions, answered
Can it recover individual answers?
No. It estimates an aggregate prevalence and cannot identify each respondent’s truthful state.
What is forced-no probability?
It is 1 minus truth probability minus forced-yes probability under this unconditional branch convention.
Why can the estimate hit 0 or 1?
Sampling can put the raw inverse outside the valid range; the constrained binomial estimate then lies on a boundary.
Does the interval account for noncompliance?
No. It assumes respondents followed the known randomization protocol correctly.