GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-115532 Add kde_random() to the statistic module by rhettinger · Pull Request #118210 · python/cpython

Conversation

@rhettinger

@rhettinger rhettinger commented Apr 24, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Adds the ability to randomly sample distributions created by the new kde() function.

The module maintainer was contacted off-line and endorsed this addition.

  • Issue: Add kernel density estimation to the statistics module #115532

📚 Documentation preview 📚: https://cpython-previews--118210.org.readthedocs.build/

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

williambdean reacted with eyes emoji
All reactions
  • 👀 1 reaction
rhettinger added 26 commits April 5, 2024 00:01
@rhettinger
Add kde_rand()
49f3471
@rhettinger
Update __all__
0fd40f3
@rhettinger
Auto detect size changes
75680e5
@rhettinger
.
63ba396
@rhettinger
Factor-out s-scurve function
c69c504
@rhettinger
.
dcd83f2
@rhettinger
.
57492bf
@rhettinger
.
5b41598
@rhettinger
Add docs for kde_random().
89a6033
@rhettinger
.
4d4f792
@rhettinger
.
7848cca
@rhettinger
Improve docstrings
37a8955
@rhettinger
The "with locks" comment was inaccurate.
a30fb9d
@rhettinger
Add summary table entry. Fix doctests.
a2a077f
@rhettinger
Fix typo
a82b100
@rhettinger
.
1397e91
@rhettinger
Change variable name to match the supporting reference.
630d942
@rhettinger
Closed-form for _parabolic_invcdf().
e9e5d54
@rhettinger
Flip sign in Newton-Raphson to match the common presentation.
8a0fd69
@rhettinger
Merge branch 'main' into kde_rand
879a1c8
@rhettinger
Add kernel_invcdf tests
3459bf2
@rhettinger
Better _quartic_invcdf_estimate
1ca870a
@rhettinger
Make standalone _triweight_invcdf_estimate()
96a5f14
@rhettinger
Floats everywhere
f05eddb
@rhettinger
.
065be11
@rhettinger
Merge branch 'main' into kde_rand
3ac42df
@rhettinger rhettinger added type-feature A feature request or enhancement skip news labels Apr 24, 2024
@bedevere-app bedevere-app Bot mentioned this pull request Apr 24, 2024
Add kernel density estimation to the statistics module #115532
Closed
@bedevere-app bedevere-app Bot added the awaiting core review label Apr 24, 2024
@rhettinger
rhettinger marked this pull request as draft April 24, 2024 04:06
@bedevere-app bedevere-app Bot removed the awaiting core review label Apr 24, 2024
rhettinger added 3 commits April 29, 2024 21:42
@rhettinger
Merge branch 'main' into kde_rand
bba0bdf
@rhettinger
Never used the global, shared Random instance.
d71ca9d
@rhettinger
.
ee43ed7
@rhettinger
rhettinger marked this pull request as ready for review April 30, 2024 07:41
@bedevere-app bedevere-app Bot added the awaiting core review label Apr 30, 2024
rhettinger and others added 3 commits April 30, 2024 02:41
@rhettinger
Merge branch 'main' into kde_rand
7ed7d41
@rhettinger
Update whatsnew
f85c303
@rhettinger
Expand "it" variable name to "iterator"
544ca8f
@rhettinger rhettinger changed the title gh-115532 [working draft] Add kde_random() to the statistic module gh-115532 Add kde_random() to the statistic module Apr 30, 2024
rhettinger and others added 10 commits May 3, 2024 19:17
@rhettinger
Test the kde_random() outer function
1249d14
@rhettinger
Merge branch 'main' into kde_rand
258e0f4
@rhettinger
Add fully qualified reference
a09d30b
@rhettinger
Add an approximate distribution test
405d443
@rhettinger
Use F_hat() for a better estimate
a4692bf
@rhettinger
Test the curve in more places
ec2d9f2
@rhettinger
Refine the reproducibility note.
c612c1f
@rhettinger
Missing CDF qualifier
1324952
@rhettinger
Word smithing
13e702f
@rhettinger
Word smithing
15a4764
@rhettinger
rhettinger merged commit 42dc5b4 into python:main May 4, 2024
@bedevere-app bedevere-app Bot removed the awaiting core review label May 4, 2024
SonicField pushed a commit to SonicField/cpython that referenced this pull request May 8, 2024
@rhettinger @SonicField
pythongh-115532 Add kde_random() to the statistic module (python#118210)
44ef1ef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

skip news type-feature A feature request or enhancement

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@rhettinger
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.