Skip to content

Known unknowns: leave mean-vs-median precision to No median feat - #18

Merged
danhalligan merged 1 commit into
mainfrom
known-unknowns-trim-median
Nov 4, 2026
Merged

danhalligan merged 1 commit into
mainfrom
known-unknowns-trim-median

Conversation

@danhalligan

Copy link
Copy Markdown
Owner

Known unknowns section 3 and No median feat section 2 both asked learners to compare the precision of the median and the mean on normal and exponential data, and produced the same numbers (about 1.25x on normal data, equal on exponential).

No median feat covers that comparison better, with trimmed means, heavy tails, glitches and bias, so this removes the question from Known unknowns:

  • The section 3 question no longer asks "which statistic is more precise for each population?"
  • The "what did you discover?" text drops the 1.25σ/√n comparison and points to No median feat instead.
  • The stage keeps its real point: the bootstrap works for the median where there is no formula, and its estimates are noisier than for the mean.

Text only. No code or tests change. The matching solved notebook is in danhalligan/red-to-green-python-solutions (see the companion PR there). ruff and pytest tests pass.

Known unknowns section 3 now asks only whether the bootstrap works for the
median. Which statistic is more precise, and when, is taken up in No median
feat, which covers it with skewed, heavy-tailed and glitched data.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@danhalligan
danhalligan merged commit 49d1afc into main Nov 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant