Commit Graph

51 Commits

Author SHA1 Message Date
Miss Islington (bot) 41f4dc3bcf bpo-36018: Minor fixes to the NormalDist() examples and recipes. (GH-18226) (GH-18227)
* Change the source for the SAT data to a primary source.
* Fix typo in the standard deviation
* Clarify that the binomial probabalities are just for the Python room.
(cherry picked from commit 01bf2196d8)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2020-01-27 19:40:14 -08:00
Miss Islington (bot) eebcff8c07 bpo-36018: Add another example for NormalDist() (GH-18191) (GH-18192) 2020-01-25 21:24:13 -08:00
Miss Islington (bot) 089387ed1f
bpo-21063: Improve module synopsis for distutils (GH-17363)
(cherry picked from commit f8a6316778)

Co-authored-by: Sanchit Khurana <54467174+GeniusLearner@users.noreply.github.com>
2019-11-25 14:26:43 -08:00
Miss Islington (bot) 3562439eb2 bpo-38385: Fix iterator/iterable terminology in statistics docs (GH-17111) (GH-17113)
(cherry picked from commit 733b9a308e)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-11-12 00:04:12 -08:00
Miss Islington (bot) 6b66dc3879 bpo-38382: Document the early-out behavior for a zero (GH-17037) (GH-17078)
(cherry picked from commit 7f460494d2)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-11-06 21:58:11 -08:00
Miss Islington (bot) 36f62860f6 bpo-38464: Document parameter for NormalDist.quantiles() (GH-16757) (GH-16758)
(cherry picked from commit 8a6cbf8adb)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-10-13 20:04:29 -07:00
Raymond Hettinger cc1bdf91d5
[3.8] bpo-36018: Address more reviewer feedback (GH-15733) (GH-15734) 2019-09-08 18:40:06 -07:00
Miss Islington (bot) b8c66779c7 More refinements to the statistics docs (GH-15713) (GH-15715)
(cherry picked from commit d8c93aa5d2)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-09-05 23:19:13 -07:00
Miss Islington (bot) f5649bfe76 bpo-36324: Apply review comment from Jake Vanderplas (GH-15695) (GH-15696)
(cherry picked from commit 9b51570ffd)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-09-05 01:10:40 -07:00
Miss Islington (bot) dafbe32656 bpo-36324: Apply review comments from Allen Downey (GH-15693) (GH-15694)
(cherry picked from commit e4810b2a6c)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-09-05 00:42:22 -07:00
Miss Islington (bot) 970548c00b bpo-37905: Improve docs for NormalDist (GH-15486) (GH-15487)
(cherry picked from commit 8371799e30)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-08-25 01:04:24 -07:00
Miss Islington (bot) 5925b7d555 bpo-35892: Add usage note to mode() (GH-15122) (GH-15176)
(cherry picked from commit e43e7ed364)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-08-08 01:36:55 -07:00
Miss Islington (bot) 0104841d12 Add examples to elucidate the formulas (GH-14898) (GH-14899)
(cherry picked from commit b530a4460b)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-07-21 16:39:08 -07:00
Raymond Hettinger e917f2ed9a
bpo-36546: Add more tests and expand docs (#13406) 2019-05-18 10:18:29 -07:00
Raymond Hettinger fb8c7d5332
bpo-36018: Make "seed" into a keyword only argument (GH-12921) 2019-04-23 01:46:18 -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 714c60d7ac
bpo-36324: Add inv_cdf() to statistics.NormalDist() (GH-12377) 2019-03-18 20:17:14 -07:00
Raymond Hettinger 1c668d1657 Correct the heading levels (GH-12338) 2019-03-14 21:46:31 -07:00
Raymond Hettinger fc06a192fd
bpo-35892: Fix mode() and add multimode() (#12089) 2019-03-12 00:43:27 -07:00
Raymond Hettinger cc353a0cd9 Various refinements to the NormalDist examples and recipes (GH-12272) 2019-03-10 23:43:33 -07:00
Raymond Hettinger d70a359adf Make a documentation link target more specific (GH-12249) 2019-03-09 00:42:23 -08:00
Raymond Hettinger 14bab7abee NormalDist.overlap() only needs one example (GH-12218) 2019-03-07 08:54:31 -08: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 9add4b3317 bpo-36018: Add documentation link to "random variable" (GH-12114)
https://bugs.python.org/issue36018
2019-02-28 21:47:26 -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 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
Tal Einat fdd6e0bf18
bpo-33573: docs to suggest median() alternatives for non-numeric data (GH-7587) 2018-06-25 14:04:01 +03:00
Sanyam Khurana 338cd83c5d bpo-25910: Link redirections in docs (#1933)
Fixes some redirection links in docs.
2018-01-20 01:25:37 +01:00
Serhiy Storchaka 0264e46caa Issue #28763: Use double hyphens (rendered as en-dashes) in numerical ranges
in the documentation.
2016-11-26 13:49:59 +02:00
Serhiy Storchaka c7b1a0bbe2 Issue #28763: Use double hyphens (rendered as en-dashes) in numerical ranges
in the documentation.
2016-11-26 13:43:28 +02:00
Raymond Hettinger 6da9078195 Issue #27825: Improve for statistics data arguments. (Contributed by Mariatta Wijaya.) 2016-11-21 16:31:02 -08:00
Steven D'Aprano fae2829c7a Issue #27181 remove geometric_mean and defer for 3.7. 2016-10-05 03:24:45 +11:00
Zachary Ware c019bd3033 Fix markup, add versionadded tags 2016-08-23 13:23:31 -05:00
Steven D'Aprano 228731879a Add documentation for geometric and harmonic means. 2016-08-24 02:34:25 +10:00
Terry Jan Reedy fa089b9b0b Issue #22558: Add remaining doc links to source code for Python-coded modules.
Reformat header above separator line (added if missing) to a common format.
Patch by Yoni Lavi.
2016-06-11 15:02:54 -04:00
Serhiy Storchaka 6dff0205b7 Issue #26736: Used HTTPS for external links in the documentation if possible. 2016-05-07 10:49:07 +03:00
Georg Brandl 525d355984 Fixing broken links in doc, part 3: the rest 2014-10-29 10:26:56 +01:00
Berker Peksag 9c1dba2758 Revert #22251 2014-09-28 00:00:58 +03:00
Berker Peksag 3749404ba5 Issue #22251: Fix ReST markup to avoid errors building docs. 2014-09-27 23:21:35 +03:00
Nick Coghlan 73afe2a972 Close #20481: Disallow mixed type input in statistics
The most appropriate coercion rules are not yet clear, so simply
disallowing mixed type input for 3.4.

(Committed on Steven's behalf)
2014-02-08 19:58:04 +10:00
Georg Brandl e051b55049 Note that examples are sorted only for convenience. 2013-11-04 07:30:50 +01:00
Georg Brandl a3fdcaa5d6 Closes #19323: fix typo. Thanks to Michael Merickel. 2013-10-21 09:08:39 +02:00
Georg Brandl eb2aeecc2f Reformat statistics.rst and remove unnecessary headings for each function. 2013-10-21 08:57:26 +02:00
Benjamin Peterson 4ea16e56eb remove backticks 2013-10-20 17:52:54 -04:00
Benjamin Peterson 44c3065b62 fix declaration of StatisticsError 2013-10-20 17:52:09 -04:00
Ned Deily 3586673703 Issue #19304: Fix typos noted by Claudiu Popa. 2013-10-19 12:10:01 -07:00