summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_statistics.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-40855: Fix ignored mu and xbar parameters (GH-20835) (GH-20863)Miss Islington (bot)2020-06-131-0/+12
|
* bpo-39002: Fix simple typo: tranlation -> translation (GH-17517) (GH-17538)Miss Islington (bot)2019-12-101-2/+2
| | | | | (cherry picked from commit c18b805ac6a2d22176240ca93982fa1fb6559ec7) Co-authored-by: Tim Gates <tim.gates@iress.com>
* bpo-38521: Fix error in NormalDist.__eq__() (GH-16840) (GH-16842)Miss Islington (bot)2019-10-181-0/+4
| | | | | (cherry picked from commit 5eabec022b9a10734fcf58faad02c4d233592f64) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* [3.8] bpo-36018: Address more reviewer feedback (GH-15733) (GH-15734)Raymond Hettinger2019-09-091-20/+15
|
* Fix typos mostly in comments, docs and test names (GH-15209)Miss Islington (bot)2019-08-301-2/+2
| | | | | (cherry picked from commit 39d87b54715197ca9dcb6902bb43461c0ed701a2) Co-authored-by: Min ho Kim <minho42@gmail.com>
* bpo-37798: Test both Python and C versions in test_statistics.py (GH-15453) ↵Miss Islington (bot)2019-08-241-33/+73
| | | | | | | (GH-15467) (cherry picked from commit 8ad22a42267d4ecb1c080d420933680cc126363e) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* bpo-37707: Exclude expensive unit tests from PGO task (GH-15009) (#15024)Miss Islington (bot)2019-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. (cherry picked from commit 52a48e62c6a94577152f9301bbe5f3bc806cfcf1) Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
* bpo-36324: Make internal attributes for statistics.NormalDist() private. ↵Miss Islington (bot)2019-07-211-15/+17
| | | | (GH-14871) (GH-14875)
* 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
|
* Issue #16056: Rename test method in test_statistics to avoid conflict.Berker Peksag2014-09-241-2/+2
|
* Close #20536: correctly handle Decimal exponents in statisticsNick Coghlan2014-02-081-0/+38
|
* Close #20481: Disallow mixed type input in statisticsNick Coghlan2014-02-081-34/+25
| | | | | | | The most appropriate coercion rules are not yet clear, so simply disallowing mixed type input for 3.4. (Committed on Steven's behalf)
* Issue #20478: avoid special casing Counter in statisticsNick Coghlan2014-02-081-0/+8
| | | | | | | | | Passing Counter objects to the Counter constructor is special cased, going through iter() firsts ensures they are handled the same way as any other iterable. (Committing on Steven's behalf as I don't believe his SSH key is registered yet)
* Issue #19535: Fixed test_docxmlrpc, test_functools, test_inspect, andSerhiy Storchaka2013-12-081-0/+3
| | | | test_statistics when python is run with -OO.
* Fix suspicious test caseChristian Heimes2013-11-261-2/+2
|
* Issue #18606: Add the new "statistics" module (PEP 450). ContributedLarry Hastings2013-10-191-0/+1534
by Steven D'Aprano.