← Apple questions
CodingReported in a candidate post, Mar 2025

Sample n items preserving the original probability distribution

Filed under Apple

Given a dataset of items (for example labelled categories), draw a sample of n items so that the proportion of each category in the sample matches its proportion in the original dataset as closely as…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Apple questions

Collected from public candidate posts and coding forums. Updated Nov 2026.