Skip to content

prob_dist: motivating height example and Japan age distribution#790

Merged
jstac merged 2 commits into
mainfrom
dist_improve
Jul 15, 2026
Merged

prob_dist: motivating height example and Japan age distribution#790
jstac merged 2 commits into
mainfrom
dist_improve

Conversation

@jstac

@jstac jstac commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

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

  • Code on the three motivating figures is hidden (hide-input) to keep the early narrative visual.
  • A lightweight derived CSV (us_adult_heights.csv, tidy sex,height_cm) is committed rather than the bulky raw NHANES files.
  • Data hosting is interim. Both data files live under _static/lecture_specific/prob_dist/ and are read via relative paths so this branch builds without a main dependency. Each cell carries a # … see QuantEcon/meta#336 TODO 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

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>
@netlify

netlify Bot commented Jul 15, 2026

Copy link
Copy Markdown

Deploy Preview for taupe-gaufre-c4e660 ready!

Name Link
🔨 Latest commit a9f74c4
🔍 Latest deploy log https://app.netlify.com/projects/taupe-gaufre-c4e660/deploys/6a57222b16a7e200081149e1
😎 Deploy Preview https://deploy-preview-790--taupe-gaufre-c4e660.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

github-actions Bot commented Jul 15, 2026

Copy link
Copy Markdown

@github-actions
github-actions Bot temporarily deployed to pull request July 15, 2026 05:19 Inactive
@github-actions
github-actions Bot temporarily deployed to pull request July 15, 2026 05:20 Inactive
- 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>
@github-actions
github-actions Bot temporarily deployed to pull request July 15, 2026 06:08 Inactive
@github-actions
github-actions Bot temporarily deployed to pull request July 15, 2026 06:09 Inactive
@jstac
jstac merged commit 6c607de into main Jul 15, 2026
7 checks passed
@jstac
jstac deleted the dist_improve branch July 15, 2026 06:14
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