8000 gh-115532 Add kde_random() to the statistic module by rhettinger · Pull Request #118210 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-115532 Add kde_random() to the statistic module #118210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 42 commits into from
May 4, 2024
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
49f3471
Add kde_rand()
rhettinger Apr 5, 2024
0fd40f3
Update __all__
rhettinger Apr 5, 2024
75680e5
Auto detect size changes
rhettinger Apr 6, 2024
63ba396
.
rhettinger Apr 6, 2024
c69c504
Factor-out s-scurve function
rhettinger Apr 6, 2024
dcd83f2
.
rhettinger Apr 6, 2024
57492bf
.
rhettinger Apr 6, 2024
5b41598
.
rhettinger Apr 7, 2024
89a6033
Add docs for kde_random().
rhettinger Apr 7, 2024
4d4f792
.
rhettinger Apr 7, 2024
7848cca
.
rhettinger Apr 7, 2024
37a8955
Improve docstrings
rhettinger Apr 7, 2024
a30fb9d
The "with locks" comment was inaccurate.
rhettinger Apr 7, 2024
a2a077f
Add summary table entry. Fix doctests.
rhettinger Apr 7, 2024
a82b100
Fix typo
rhettinger Apr 8, 2024
1397e91
.
rhettinger Apr 11, 2024
630d942
Change variable name to match the supporting reference.
rhettinger Apr 13, 2024
e9e5d54
Closed-form for _parabolic_invcdf().
rhettinger Apr 15, 2024
8a0fd69
Flip sign in Newton-Raphson to match the common presentation.
rhettinger Apr 15, 2024
879a1c8
Merge branch 'main' into kde_rand
rhettinger Apr 15, 2024
3459bf2
Add kernel_invcdf tests
rhettinger Apr 17, 2024
1ca870a
Better _quartic_invcdf_estimate
rhettinger Apr 19, 2024
96a5f14
Make standalone _triweight_invcdf_estimate()
rhettinger Apr 19, 2024
f05eddb
Floats everywhere
rhettinger Apr 19, 2024
065be11
.
rhettinger Apr 23, 2024
3ac42df
Merge branch 'main' into kde_rand
rhettinger Apr 24, 2024
bba0bdf
Merge branch 'main' into kde_rand
rhettinger Apr 30, 2024
d71ca9d
Never used the global, shared Random instance.
rhettinger Apr 30, 2024
ee43ed7
.
rhettinger Apr 30, 2024
7ed7d41
Merge branch 'main' into kde_rand
rhettinger Apr 30, 2024
f85c303
Update whatsnew
rhettinger Apr 30, 2024
544ca8f
Expand "it" variable name to "iterator"
rhettinger Apr 30, 2024
1249d14
Test the kde_random() outer function
rhettinger May 4, 2024
258e0f4
Merge branch 'main' into kde_rand
rhettinger May 4, 2024
a09d30b
Add fully qualified reference
rhettinger May 4, 2024
405d443
Add an approximate distribution test
rhettinger May 4, 2024
a4692bf
Use F_hat() for a better estimate
rhettinger May 4, 2024
ec2d9f2
Test the curve in more places
rhettinger May 4, 2024
c612c1f
Refine the reproducibility note.
rhettinger May 4, 2024
1324952
Missing CDF qualifier
rhettinger May 4, 2024
13e702f
Word smithing
rhettinger May 4, 2024
15a4764
Word smithing
rhettinger May 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix typo
  • Loading branch information
rhettinger committed Apr 8, 2024
commit a82b100daf0f68c2ab0f7640786ade3a05d3ba54
2 changes: 1 addition & 1 deletion Lib/statistics.py
4CFA
Original file line number Diff line number Diff line change
Expand Up @@ -1746,7 +1746,7 @@ def _simple_s_curve(power):

_kernel_invcdfs = {
'normal': NormalDist().inv_cdf,
'logisitic': lambda p: log(p / (1 - p)),
'logistic': lambda p: log(p / (1 - p)),
'sigmoid': lambda p: log(tan(p * pi/2)),
'rectangular': lambda p: 2*p - 1,
'parabolic': _parabolic_invcdf,
Expand Down
0