Skip to content

[stats_examples.md] Update np.random → Generator API#873

Open
Chihiro2000GitHub wants to merge 1 commit into
mainfrom
update-rng-stats-examples
Open

[stats_examples.md] Update np.random → Generator API#873
Chihiro2000GitHub wants to merge 1 commit into
mainfrom
update-rng-stats-examples

Conversation

@Chihiro2000GitHub
Copy link
Copy Markdown

Summary

This PR migrates legacy NumPy random API usage in stats_examples.md as part of QuantEcon/meta#299.

  • Introduced rng = np.random.default_rng() at the first point of use (Geometric distribution section) and reused it throughout the lecture.
  • Replaced all np.random.* calls with rng.* equivalents (geometric, negative_binomial, normal, exponential, random).
  • No fixed seed was introduced (the original lecture did not use one).
  • No Numba-related code was present; all changes are straightforward API replacements.
  • No prose edits were necessary.

Hi @mmcky and @HumphreyYang, I'd be grateful if you could take a look when you have time.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

📖 Netlify Preview Ready!

Preview URL: https://pr-873--sunny-cactus-210e3e.netlify.app

Commit: 56ec6fe

📚 Changed Lectures


Build Info

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