Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | The stdev calculation is more accurate computing its own mean (#92220) | Raymond Hettinger | 2022-05-03 | 1 | -2/+1 |
| | |||||
* | Statistics internals: Make fewer calls to _coerce() when data types are ↵ | Raymond Hettinger | 2022-02-28 | 1 | -4/+9 |
| | | | | mixed (GH-31619) | ||||
* | bpo-46257: Convert statistics._ss() to a single pass algorithm (GH-30403) | Raymond Hettinger | 2022-01-05 | 1 | -57/+43 |
| | |||||
* | Fix double-space in exception message (GH-29955) | Ned Batchelder | 2021-12-08 | 1 | -1/+1 |
| | |||||
* | bpo-45876: Have stdev() also use decimal specific square root. (GH-29869) | Raymond Hettinger | 2021-12-01 | 1 | -3/+2 |
| | |||||
* | bpo-45876: Correctly rounded stdev() and pstdev() for the Decimal case ↵ | Raymond Hettinger | 2021-12-01 | 1 | -13/+66 |
| | | | | (GH-29828) | ||||
* | bpo-45876: Improve accuracy for stdev() and pstdev() in statistics (GH-29736) | Raymond Hettinger | 2021-11-27 | 1 | -14/+42 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Inlined code from variance functions * Added helper functions for the float square root of a fraction * Call helper functions * Add blurb * Fix over-specified test * Add a test for the _sqrt_frac() helper function * Increase the tested range * Add type hints to the internal function. * Fix test for correct rounding * Simplify ⌊√(n/m)⌋ calculation Co-authored-by: Mark Dickinson <dickinsm@gmail.com> * Add comment and beef-up tests * Test for zero denominator * Add algorithmic references * Add test for the _isqrt_frac_rto() helper function. * Compute the 109 instead of hard-wiring it * Stronger test for _isqrt_frac_rto() * Bigger range * Bigger range * Replace float() call with int/int division to be parallel with the other code path. * Factor out division. Update proof link. Remove internal type declaration Co-authored-by: Mark Dickinson <dickinsm@gmail.com> | ||||
* | bpo-45766: Add direct proportion option to linear_regression(). (#29490) | Raymond Hettinger | 2021-11-21 | 1 | -7/+24 |
| | | | | | | | | | | | | | | | | | * bpo-45766: Add direct proportion option to linear_regression(). * Update 2021-11-09-09-18-06.bpo-45766.dvbcMf.rst * Use ellipsis to avoid round-off issues. * Update Misc/NEWS.d/next/Library/2021-11-09-09-18-06.bpo-45766.dvbcMf.rst Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> * Update signature in main docs * Fix missing comma Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> | ||||
* | bpo-45851: Avoid full sort in statistics.multimode() (#29662) | Raymond Hettinger | 2021-11-20 | 1 | -3/+5 |
| | | | Suggested by Stefan Pochmann. | ||||
* | Factor-out constant calculation. (GH-29491) | Raymond Hettinger | 2021-11-09 | 1 | -2/+4 |
| | |||||
* | bpo-20499: Rounding error in statistics.pvariance (GH-28230) | Raymond Hettinger | 2021-09-09 | 1 | -42/+36 |
| | |||||
* | bpo-39218: Improve accuracy of variance calculation (GH-27960) | Raymond Hettinger | 2021-08-31 | 1 | -14/+19 |
| | |||||
* | Update nonstandard variable names (GH-26540) | Raymond Hettinger | 2021-06-04 | 1 | -5/+5 |
| | |||||
* | bpo-44151: Various grammar, word order, and markup fixes (GH-26344) | Raymond Hettinger | 2021-05-25 | 1 | -8/+8 |
| | |||||
* | bpo-44151: linear_regression() minor API improvements (GH-26199) | Zack Kneupper | 2021-05-25 | 1 | -15/+14 |
| | |||||
* | bpo-44150: Support optional weights parameter for fmean() (GH-26175) | Raymond Hettinger | 2021-05-21 | 1 | -7/+18 |
| | |||||
* | Apply edits from Allen Downey's review of the linear_regression docs. (GH-26176) | Raymond Hettinger | 2021-05-17 | 1 | -6/+6 |
| | |||||
* | Improve speed and accuracy for correlation() (GH-26135) | Raymond Hettinger | 2021-05-15 | 1 | -12/+14 |
| | |||||
* | Eliminate duplicated calculations and unnecessary work for linear regression ↵ | Raymond Hettinger | 2021-05-06 | 1 | -2/+7 |
| | | | | (GH-25922) | ||||
* | Fix inconsistent fsum vs sum and fmean vs mean (GH-25898) | Raymond Hettinger | 2021-05-04 | 1 | -3/+3 |
| | |||||
* | bpo-38490: statistics: Add covariance, Pearson's correlation, and simple ↵ | Tymoteusz Wołodźko | 2021-04-25 | 1 | -1/+135 |
| | | | | | linear regression (#16813) Co-authored-by: Tymoteusz Wołodźko <twolodzko+gitkraken@gmail.com | ||||
* | bpo-43147: Remove archaic terminology. (GH-24462) | Raymond Hettinger | 2021-02-08 | 1 | -4/+3 |
| | |||||
* | bpo-38308: Add optional weighting to statistics.harmonic_mean() (GH-23914) | Raymond Hettinger | 2020-12-24 | 1 | -18/+28 |
| | |||||
* | Some reformatting (suggested by Black) and minor factoring. (GH-20865) | Raymond Hettinger | 2020-06-14 | 1 | -31/+29 |
| | |||||
* | bpo-40855: Fix ignored mu and xbar parameters (GH-20835) | Raymond Hettinger | 2020-06-13 | 1 | -2/+4 |
| | |||||
* | Minor code cleanups for statistics (GH-19873) | Raymond Hettinger | 2020-05-03 | 1 | -76/+7 |
| | | | | | * Minor cleanups: Removed unused code. Move C import near its Python version. * Clean-up whitespace | ||||
* | bpo-40290: Add zscore() to statistics.NormalDist. (GH-19547) | Raymond Hettinger | 2020-04-16 | 1 | -0/+11 |
| | |||||
* | bpo-38385: Fix iterator/iterable terminology in statistics docs (GH-17111) | Raymond Hettinger | 2019-11-12 | 1 | -1/+1 |
| | |||||
* | bpo-38521: Fix error in NormalDist.__eq__() (GH-16840) | Raymond Hettinger | 2019-10-18 | 1 | -1/+1 |
| | |||||
* | Minor code and comment cleanup (GH-16315) | Raymond Hettinger | 2019-09-21 | 1 | -1/+3 |
| | |||||
* | bpo-36546: No longer a need to make "data" positional only (GH-16252) | Raymond Hettinger | 2019-09-18 | 1 | -1/+1 |
| | |||||
* | bpo-36018: Address more reviewer feedback (GH-15733) | Raymond Hettinger | 2019-09-08 | 1 | -5/+27 |
| | |||||
* | bpo-36324: Apply review comments from Allen Downey (GH-15693) | Raymond Hettinger | 2019-09-05 | 1 | -21/+17 |
| | |||||
* | bpo-37798: Add C fastpath for statistics.NormalDist.inv_cdf() (GH-15266) | Dong-hee Na | 2019-08-23 | 1 | -73/+82 |
| | |||||
* | bpo-36324: Update comments to include the target hash sums (GH-15110) | Raymond Hettinger | 2019-08-04 | 1 | -0/+3 |
| | |||||
* | Minor whitespace, indentation, and quoting changes to improve internal ↵ | Raymond Hettinger | 2019-07-21 | 1 | -53/+74 |
| | | | | consistency and appease linters (GH-14888) | ||||
* | bpo-36324: Make internal attributes for statistics.NormalDist() private. ↵ | Raymond Hettinger | 2019-07-21 | 1 | -34/+38 |
| | | | | | | | | | | | | (GH-14871) * Make internals private * Finish making mu and sigma private * Add missing __hash__() method * Add blurb | ||||
* | bpo-36546: Clean-up comments (GH-14857) | Raymond Hettinger | 2019-07-19 | 1 | -9/+3 |
| | |||||
* | bpo-36546: Mark first argument as position only (GH-14363) | Raymond Hettinger | 2019-06-25 | 1 | -1/+1 |
| | |||||
* | bpo-37158: Simplify and speed-up statistics.fmean() (GH-13832) | Raymond Hettinger | 2019-06-05 | 1 | -4/+4 |
| | |||||
* | bpo-36546: Add design notes to aid future discussions (GH-13769) | Raymond Hettinger | 2019-06-03 | 1 | -0/+39 |
| | |||||
* | bpo-36018: Make "seed" into a keyword only argument (GH-12921) | Raymond Hettinger | 2019-04-23 | 1 | -1/+1 |
| | |||||
* | bpo-35904: Add missing fmean() entry to the summary table (GH-12919) | Raymond Hettinger | 2019-04-23 | 1 | -0/+1 |
| | |||||
* | bpo-36546: Add statistics.quantiles() (#12710) | Raymond Hettinger | 2019-04-23 | 1 | -4/+53 |
| | |||||
* | bpo-27181: Add statistics.geometric_mean() (GH-12638) | Raymond Hettinger | 2019-04-07 | 1 | -1/+21 |
| | |||||
* | bpo-36326: Let inspect.getdoc() find docstrings for __slots__ (GH-12498) | Raymond Hettinger | 2019-03-25 | 1 | -1/+2 |
| | |||||
* | bpo-36324: Improved code formatting for the NormalDist.inv_cdf rational ↵ | Raymond Hettinger | 2019-03-19 | 1 | -46/+48 |
| | | | | | approximation (GH-12448) https://bugs.python.org/issue36324 | ||||
* | NormalDist.inv_cdf(): In-line constants because the variable names were not ↵ | Raymond Hettinger | 2019-03-19 | 1 | -59/+46 |
| | | | | informative (GH-12446) | ||||
* | Add docstrings to the arithmetic methods in NormalDist() (GH-12426) | Raymond Hettinger | 2019-03-19 | 1 | -14/+44 |
| | |||||
* | bpo-36324: Add inv_cdf() to statistics.NormalDist() (GH-12377) | Raymond Hettinger | 2019-03-19 | 1 | -0/+95 |
| |