prob_dist: motivating height example and Japan age distribution#790
Merged
Conversation
Rework the opening of the Probability Distributions lecture with two real-data illustrations: - Outline: histograms of US adult male/female heights (NHANES), fitted by a normal distribution, to motivate why a two-parameter density is a useful summary and why we study named distribution families. - Discrete distributions: the fraction of the Japanese population at each age (2024, Japanese nationals) as a first concrete PMF example. Data files are stored under _static/lecture_specific/prob_dist/ and read via relative paths for now; these should move to a canonical datasets repo and be referenced by stable URL once one exists (QuantEcon/meta#336). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
✅ Deploy Preview for taupe-gaufre-c4e660 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
- Credit the Statistics Bureau of Japan for the age data. - Rename the height-fit loop variable data -> sample to avoid shadowing. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reworks the opening of the Probability Distributions lecture with two real-data illustrations.
Outline — US adult heights
Histograms of male and female heights (US, NHANES 2015–2018), each fitted by a normal distribution whose mean and standard deviation match the sample. This motivates the key idea that ~5,000 numbers can be summarized by a smooth density with just two parameters (μ, σ), which in turn motivates studying named distribution families.
Discrete distributions — Japan age distribution
The fraction of the Japanese population (2024, Japanese nationals) at each single year of age, as a first concrete PMF example where each$x_i$ is a number.
Notes
hide-input) to keep the early narrative visual.us_adult_heights.csv, tidysex,height_cm) is committed rather than the bulky raw NHANES files._static/lecture_specific/prob_dist/and are read via relative paths so this branch builds without amaindependency. Each cell carries a# … see QuantEcon/meta#336TODO to switch to a canonical datasets-repo URL once that exists (see Proposal: a single canonical QuantEcon datasets repository, with a documented convention meta#336).Builds clean locally with
jb build lectures -nW --keep-going.🤖 Generated with Claude Code