IntermediateAbout 18 min

    Sampling Training Data

    Read the full article on Substack

    8 min read.

    Self-driving data is mostly from sunny Phoenix and the sunny Bay Area, and sentiment models learn from people willing to write reviews. Step the four nonprobability methods, then compute the odds that simple random sampling loses a 0.01% class entirely.

    Think of it this way: Polling a city by standing outside one supermarket. You will get a thousand responses by lunchtime, and every one of them is from someone who shops there, at that hour, on a weekday. The sample size was never the problem.

    Reservoir, k = 4
    ·
    ·
    ·
    ·
    Stream, 0 of 30 seen
    123456789101112131415161718192021222324252627282930
    Items arrive one at a time. The reservoir keeps 4. Press Play.

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    Probability or not?

    Sort

    Sort each sampling method by whether every example has a known chance of selection.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    Nonprobability

    Drop items here

    Probability

    Drop items here
    6 pieces left to place

    Quiz

    20 questions
    Question 1 of 20
    Score: 0

    The book prefers "training data" to "training dataset" because "dataset" denotes a set that is:

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going