Raymond Hettinger
4a5cccb02b
bpo-20499: Rounding error in statistics.pvariance (GH-28230)
2021-09-08 22:00:12 -05:00
Raymond Hettinger
793f55bde9
bpo-39218: Improve accuracy of variance calculation (GH-27960)
2021-08-30 20:57:30 -05:00
Irit Katriel
f5d7a8d29c
bpo-44960: add regression test for geometric_mean with mixed int/floa… ( #27856 )
...
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2021-08-20 14:08:21 +01:00
Zack Kneupper
2f3a87856c
bpo-44151: linear_regression() minor API improvements (GH-26199)
2021-05-24 17:30:58 -07:00
Raymond Hettinger
be4dd7fcd9
bpo-44150: Support optional weights parameter for fmean() (GH-26175)
2021-05-20 20:22:26 -07:00
Tymoteusz Wołodźko
09aa6f914d
bpo-38490: statistics: Add covariance, Pearson's correlation, and simple linear regression ( #16813 )
...
Co-authored-by: Tymoteusz Wołodźko <twolodzko+gitkraken@gmail.com
2021-04-25 14:45:09 +03:00
Raymond Hettinger
cc3467a57b
bpo-38308: Add optional weighting to statistics.harmonic_mean() (GH-23914)
2020-12-23 19:52:09 -08:00
Hai Shi
79bb2c93f2
bpo-40275: Use new test.support helper submodules in tests (GH-21743)
2020-08-06 13:51:29 +02:00
Raymond Hettinger
d71ab4f738
bpo-40855: Fix ignored mu and xbar parameters (GH-20835)
2020-06-13 15:55:52 -07:00
Tzanetos Balitsaris
b809717c1e
bpo-40331: Increase test coverage for the statistics module (GH-19608)
2020-05-13 13:29:31 +03:00
Raymond Hettinger
70f027dd22
bpo-40290: Add zscore() to statistics.NormalDist. (GH-19547)
2020-04-16 10:25:14 -07:00
Tim Gates
c18b805ac6
bpo-39002: Fix simple typo: tranlation -> translation (GH-17517)
2019-12-09 09:42:17 -08:00
Raymond Hettinger
5eabec022b
bpo-38521: Fix error in NormalDist.__eq__() (GH-16840)
2019-10-18 14:20:35 -07:00
Raymond Hettinger
4db25d5c39
bpo-36018: Address more reviewer feedback (GH-15733)
2019-09-08 16:57:58 -07:00
Min ho Kim
39d87b5471
Fix typos mostly in comments, docs and test names (GH-15209)
2019-08-30 16:21:19 -04:00
Dong-hee Na
8ad22a4226
bpo-37798: Test both Python and C versions in test_statistics.py (GH-15453)
2019-08-24 10:51:20 -07:00
Neil Schemenauer
52a48e62c6
bpo-37707: Exclude expensive unit tests from PGO task (GH-15009)
...
Mark some individual tests to skip when --pgo is used. The tests
marked increase the PGO task time significantly and likely don't
help improve optimization of the final executable.
2019-07-30 11:08:18 -07:00
Raymond Hettinger
02c91f59b6
bpo-36324: Make internal attributes for statistics.NormalDist() private. (GH-14871)
...
* Make internals private
* Finish making mu and sigma private
* Add missing __hash__() method
* Add blurb
2019-07-21 00:34:47 -07:00
Raymond Hettinger
e917f2ed9a
bpo-36546: Add more tests and expand docs ( #13406 )
2019-05-18 10:18:29 -07:00
Xtreak
874ad1b3b4
Fix typo: quaatile to quantile (GH=13001)
2019-05-02 14:20:58 -04:00
Raymond Hettinger
b0a2c0fa83
bpo-36018: Test idempotence. Test two methods against one-another. (GH-13021)
2019-04-29 23:47:33 -07:00
Raymond Hettinger
db81ba1393
bpo-36546: More tests: type preservation and equal inputs ( #13000 )
2019-04-28 21:31:55 -07:00
Raymond Hettinger
9013ccf6d8
bpo-36546: Add statistics.quantiles() ( #12710 )
2019-04-23 00:06:35 -07:00
Raymond Hettinger
6463ba3061
bpo-27181: Add statistics.geometric_mean() (GH-12638)
2019-04-07 09:20:03 -07:00
Raymond Hettinger
d1e768a677
bpo-36326: Let inspect.getdoc() find docstrings for __slots__ (GH-12498)
2019-03-25 13:01:13 -07:00
Raymond Hettinger
2afb598618
bpo-36324: NormalDist() add more tests and update comments (GH-12476)
...
* Improve coverage.
* Note inherent limitations of the accuracy tests
https://bugs.python.org/issue36324
2019-03-20 13:28:59 -07:00
Raymond Hettinger
714c60d7ac
bpo-36324: Add inv_cdf() to statistics.NormalDist() (GH-12377)
2019-03-18 20:17:14 -07:00
Raymond Hettinger
fc06a192fd
bpo-35892: Fix mode() and add multimode() ( #12089 )
2019-03-12 00:43:27 -07:00
Raymond Hettinger
1f58f4fa6a
Refine statistics.NormalDist documentation and improve test coverage (GH-12208)
2019-03-06 23:23:55 -08:00
Raymond Hettinger
318d537daa
bpo-36169 : Add overlap() method to statistics.NormalDist (GH-12149)
2019-03-06 22:59:40 -08:00
Raymond Hettinger
18ee50d5da
Add more tests for pdf() and cdf() (GH-12190)
2019-03-06 02:31:14 -08:00
Raymond Hettinger
ef17fdbc1c
bpo-36018: Add special value tests and make minor tweaks to the docs (GH-12096)
...
https://bugs.python.org/issue36018
2019-02-28 09:16:25 -08:00
Raymond Hettinger
9e456bc70e
bpo-36018: Add properties for mean and stdev (GH-12022)
...
Responding to suggestions on the tracker and some off-line suggestions.
Davin suggested that english named accessors instead of greek letters would result in more intelligible user code. Steven suggested that the parameters still need to be *mu* and *theta* which are used elsewhere (and I noted those parameter names are used in linked-to resources).
Michael suggested proving-out the API by seeing whether it generalized to *Lognormal*. I did so and found that Lognormal distribution parameters *mu* and *sigma* do not represent the mean and standard deviation of the lognormal distribution (instead, they are for the underlying regular normal distribution).
Putting these ideas together, we have NormalDist parameterized by *mu* and *sigma* but offering English named properties for accessors. That gives lets us match other API that access mu and sigma, it matches the external resources on the topic, gives us clear english names in user code. The API extends nicely to LogNormal where the parameters and the summary statistic accessors are not the same.
https://bugs.python.org/issue36018
2019-02-24 11:44:55 -08:00
Raymond Hettinger
79fbcc597d
bpo-36018: Make __pos__ return a distinct instance of NormDist (GH-12009)
...
https://bugs.python.org/issue36018
2019-02-23 22:19:01 -08:00
Raymond Hettinger
11c7953165
bpo-36018: Add the NormalDist class to the statistics module (GH-11973)
2019-02-23 14:44:07 -08:00
Raymond Hettinger
47d9987247
bpo-35904: Add statistics.fmean() (GH-11892)
2019-02-21 15:06:29 -08:00
Serhiy Storchaka
2e576f5aec
bpo-30144: Import collections ABC from collections.abc rather than collections. ( #1263 )
2017-04-24 09:05:00 +03:00
Steven D'Aprano
fb315dbe82
Issue #27181 remove geometric_mean and defer for 3.7.
2016-10-05 03:24:45 +11:00
Steven D'Aprano
a790fe7ff8
Remove expected failure from test of _product internal function.
2016-08-24 13:54:31 +10:00
Steven D'Aprano
d6ea3011c5
Remove support for nth root of negative numbers with odd powers.
...
Although nth roots of negative numbers are real for odd n, the
statistics module doesn't make use of this. Remove support for
negative roots from the private _nth_root function, which
simplifies the test suite.
2016-08-24 12:48:12 +10:00
Victor Stinner
e3f1e8a9d3
Issue #27181 : Skip tests known to fail until a fix is found
2016-08-16 22:22:21 +02:00
Steven D'Aprano
9a2be91c6b
Issue27181 add geometric mean.
2016-08-09 13:58:10 +10:00
Steven D'Aprano
e7fef52f98
Tighten up test of harmonic mean on a single value.
2016-08-09 13:19:48 +10:00
Steven D'Aprano
a474afdddc
Add harmonic mean and tests.
2016-08-09 12:49:01 +10:00
Benjamin Peterson
ab078e9ed1
Backed out changeset af29d89083b3 ( closes #25548 ) ( closes #27498 )
2016-07-13 21:13:29 -07:00
Steven D'Aprano
8c115a46e7
Issue27139 patch by Julio C Cardoza.
2016-07-08 02:38:45 +10:00
Kushal Das
5801ecb440
Issue #25548 : Showing memory address of class objects in repl
2016-06-04 16:21:13 -07:00
Steven D'Aprano
3b06e24352
Issue 26002 and 25974
...
patches by Upendra Kumar and Stefan Krah
speed up median by using bisect, and general speedup for Decimals using as_integer_ratio
2016-05-05 03:54:29 +10:00
Stefan Krah
2335f44d8e
Issue #25928 : Temporarily disable some tests in test_statistics in order
...
to sort out its assumptions about the as_integer_ratio() interface.
2015-12-29 00:11:36 +01:00
Steven D'Aprano
b28c3275c7
Issue #25177 : Fixed problem with the mean of very small and very large numbers.
2015-12-01 19:59:53 +11:00