Decentralized Randomized Response & Live Reconstruction Statistics
● Local-only mode
Privacy and classroom notice: Randomization occurs in this browser using the Web Crypto API. Integer draws use rejection sampling, so no outcome receives extra probability from modulo bias. In local-only mode, no response is transmitted.
Joining a shared room loads MQTT.js and sends only the station number and randomized Yes/No output through a public demonstration broker.
Use a unique classroom code, never enter personal information, and have every device join before collection because earlier submissions are not stored or replayed.
Step 1: Choose Your Randomization Device
Step 2: Private Local Execution
1st Coin (Pathfinder)
★
2nd Coin (Noise Generator)
★
Flip the first coin in private. If Heads, answer truthfully. If Tails, flip the second coin to inject noise.
Each student has a 50% chance of needing the second flip, so a small class may not split exactly in half.
6-Sided Die
Roll the die. 1–4 requires truthful reporting; 5 forces "Yes"; 6 forces "No".
Spinner (75% Green / 25% Red)
Spin the wheel. Green (75%) means truthful reporting; Red (25%) means answering the opposite (negation).
✓ Protocol Compliance Rule:
Sample Question
Response Aggregator & Statistics
Total Submissions: 0
Station
Observed Yes
Observed Proportion (P̂Y)
Live Inversion Formula
Raw Reconstruction and Feasible Summary (π̂)
Privacy (ε)
Station 1: Coin
0 / 0
—
Waiting for submissions
—Estimate undefined when n = 0
ε ≈ 1.10
Station 2: Die
0 / 0
—
Waiting for submissions
—Estimate undefined when n = 0
ε ≈ 1.61
Station 3: Spinner
0 / 0
—
Waiting for submissions
—Estimate undefined when n = 0
ε ≈ 1.10
The raw inversion is an unbiased estimate and may fall below 0% or above 100% in a small sample. The feasible value is clipped only for display.
The 95% interval transforms a Wilson interval for the observed Yes proportion and then clips its endpoints to the feasible 0%–100% range.
Key comparison: Stations 1 and 3 use different procedures but produce the same channel:
P(report Yes | true Yes) = 0.75 and P(report Yes | true No) = 0.25. They therefore have the same reconstruction formula and ε.
The die reports the truthful value with probability 5/6, so it provides more statistical signal but weaker privacy because ln(5) > ln(3).
All stations use the same question so their results can be compared without changing the underlying survey item.