summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_statistics.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.10] [ GH-99155: Fix `NormalDist` pickle with `0` and `1` protocols ↵Miss Islington (bot)2022-11-071-3/+8
| | | | (GH-99156). (GH-99188) (GH-99190)
* bpo-45852: Fix the Counter/iter test for statistics.mode() (GH-29667) ↵Miss Islington (bot)2021-11-211-4/+7
| | | | | | | | | | (GH-29671) Suggested by Stefan Pochmann. (cherry picked from commit 48744db70ed519c1566c22bf123a0e1f5c69253f) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* [3.10] bpo-20499: Rounding error in statistics.pvariance (GH-28230) (GH-28248)Raymond Hettinger2021-09-091-14/+14
|
* bpo-44151: linear_regression() minor API improvements (GH-26199) (GH-26338)Miss Islington (bot)2021-05-251-1/+1
|
* bpo-38490: statistics: Add covariance, Pearson's correlation, and simple ↵Tymoteusz Wołodźko2021-04-251-0/+78
| | | | | linear regression (#16813) Co-authored-by: Tymoteusz Wołodźko <twolodzko+gitkraken@gmail.com
* bpo-38308: Add optional weighting to statistics.harmonic_mean() (GH-23914)Raymond Hettinger2020-12-241-0/+21
|
* bpo-40275: Use new test.support helper submodules in tests (GH-21743)Hai Shi2020-08-061-3/+5
|
* bpo-40855: Fix ignored mu and xbar parameters (GH-20835)Raymond Hettinger2020-06-131-0/+12
|
* bpo-40331: Increase test coverage for the statistics module (GH-19608)Tzanetos Balitsaris2020-05-131-0/+60
|
* bpo-40290: Add zscore() to statistics.NormalDist. (GH-19547)Raymond Hettinger2020-04-161-0/+15
|
* bpo-39002: Fix simple typo: tranlation -> translation (GH-17517)Tim Gates2019-12-091-2/+2
|
* bpo-38521: Fix error in NormalDist.__eq__() (GH-16840)Raymond Hettinger2019-10-181-0/+4
|
* bpo-36018: Address more reviewer feedback (GH-15733)Raymond Hettinger2019-09-081-20/+15
|
* Fix typos mostly in comments, docs and test names (GH-15209)Min ho Kim2019-08-301-2/+2
|
* bpo-37798: Test both Python and C versions in test_statistics.py (GH-15453)Dong-hee Na2019-08-241-33/+73
|
* bpo-37707: Exclude expensive unit tests from PGO task (GH-15009)Neil Schemenauer2019-07-301-0/+2
| | | | | 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.
* bpo-36324: Make internal attributes for statistics.NormalDist() private. ↵Raymond Hettinger2019-07-211-15/+17
| | | | | | | | | | | | (GH-14871) * Make internals private * Finish making mu and sigma private * Add missing __hash__() method * Add blurb
* bpo-36546: Add more tests and expand docs (#13406)Raymond Hettinger2019-05-181-11/+27
|
* Fix typo: quaatile to quantile (GH=13001)Xtreak2019-05-021-1/+1
|
* bpo-36018: Test idempotence. Test two methods against one-another. (GH-13021)Raymond Hettinger2019-04-301-0/+23
|
* bpo-36546: More tests: type preservation and equal inputs (#13000)Raymond Hettinger2019-04-291-12/+18
|
* bpo-36546: Add statistics.quantiles() (#12710)Raymond Hettinger2019-04-231-0/+142
|
* bpo-27181: Add statistics.geometric_mean() (GH-12638)Raymond Hettinger2019-04-071-0/+88
|
* bpo-36326: Let inspect.getdoc() find docstrings for __slots__ (GH-12498)Raymond Hettinger2019-03-251-1/+1
|
* bpo-36324: NormalDist() add more tests and update comments (GH-12476)Raymond Hettinger2019-03-201-24/+44
| | | | | | | * Improve coverage. * Note inherent limitations of the accuracy tests https://bugs.python.org/issue36324
* bpo-36324: Add inv_cdf() to statistics.NormalDist() (GH-12377)Raymond Hettinger2019-03-191-0/+63
|
* bpo-35892: Fix mode() and add multimode() (#12089)Raymond Hettinger2019-03-121-8/+19
|
* Refine statistics.NormalDist documentation and improve test coverage (GH-12208)Raymond Hettinger2019-03-071-1/+2
|
* bpo-36169 : Add overlap() method to statistics.NormalDist (GH-12149)Raymond Hettinger2019-03-071-0/+62
|
* Add more tests for pdf() and cdf() (GH-12190)Raymond Hettinger2019-03-061-3/+29
|
* bpo-36018: Add special value tests and make minor tweaks to the docs (GH-12096)Raymond Hettinger2019-02-281-0/+8
| | | https://bugs.python.org/issue36018
* bpo-36018: Add properties for mean and stdev (GH-12022)Raymond Hettinger2019-02-241-0/+6
| | | | | | | | | | | | 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
* bpo-36018: Make __pos__ return a distinct instance of NormDist (GH-12009)Raymond Hettinger2019-02-241-0/+12
| | | https://bugs.python.org/issue36018
* bpo-36018: Add the NormalDist class to the statistics module (GH-11973)Raymond Hettinger2019-02-231-0/+177
|
* bpo-35904: Add statistics.fmean() (GH-11892)Raymond Hettinger2019-02-211-0/+45
|
* bpo-30144: Import collections ABC from collections.abc rather than ↵Serhiy Storchaka2017-04-241-2/+3
| | | | collections. (#1263)
* Issue #27181 remove geometric_mean and defer for 3.7.Steven D'Aprano2016-10-041-267/+0
|
* Remove expected failure from test of _product internal function.Steven D'Aprano2016-08-241-2/+2
|
* Remove support for nth root of negative numbers with odd powers.Steven D'Aprano2016-08-241-24/+5
| | | | | | | 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.
* Issue #27181: Skip tests known to fail until a fix is foundVictor Stinner2016-08-161-0/+1
|
* Issue27181 add geometric mean.Steven D'Aprano2016-08-091-0/+285
|
* Tighten up test of harmonic mean on a single value.Steven D'Aprano2016-08-091-4/+1
|
* Add harmonic mean and tests.Steven D'Aprano2016-08-091-10/+149
|
* Backed out changeset af29d89083b3 (closes #25548) (closes #27498)Benjamin Peterson2016-07-141-1/+1
|
* Issue27139 patch by Julio C Cardoza.Steven D'Aprano2016-07-071-0/+16
|
* Issue #25548: Showing memory address of class objects in replKushal Das2016-06-041-1/+1
|
* Issue 26002 and 25974Steven D'Aprano2016-05-041-17/+14
| | | | | patches by Upendra Kumar and Stefan Krah speed up median by using bisect, and general speedup for Decimals using as_integer_ratio
* Issue #25928: Temporarily disable some tests in test_statistics in orderStefan Krah2015-12-281-0/+3
| | | | to sort out its assumptions about the as_integer_ratio() interface.
* Issue #25177: Fixed problem with the mean of very small and very large numbers.Steven D'Aprano2015-12-011-48/+315
|
* remove unused importBenjamin Peterson2015-02-251-1/+0
|