promptdojo_

Distributions, sampling, and variance — step 7 of 7

Checkpoint

One last thing before we move on. Same surface as a write step — but the lesson doesn't complete until this passes.

Checkpoint: each sample is a list of readings. Write most_volatile(samples) so it returns the name of the sample with the highest variance — the most spread-out one. Compute variance the real way (average squared distance from the mean), not the range.

full-screen editor opens — close anytime to keep reading.