How would you test whether a random sampler is really uniform?
MediumConcept20 minSWERERSMLEPro outline
The question
A teammate says a shuffling function in the data pipeline is biased toward some positions. You can call it as many times as you like and you only see its outputs.
How do you test the claim, how many samples do you need, and what could fool your test?
What the interviewer is looking for
- Turns the claim into a clear hypothesis
- Picks a fitting test, such as chi-square on position counts
- Reasons about sample size and power
- Checks more than one-dimensional counts, such as pairs or order
- Mentions multiple testing when checking many positions
Your answer
Saved in this browser only. Nobody else sees it.
Why this question
Written by BlogLLM in the style of a publicly reported Perplexity question type: Applied Python on streams, such as estimating probability and checking uniformity from samples.
Reported in: calibrd.com
Practice question written by BlogLLM based on publicly reported interview formats. Not an official Perplexity question.