[Python-checkins] bpo-36018: Minor fixes to the NormalDist() examples and recipes. (GH-18226) (GH-18227)
Raymond Hettinger
webhook-mailer at python.org
Mon Jan 27 22:40:19 EST 2020
https://github.com/python/cpython/commit/41f4dc3bcf30cb8362a062a26818311c704ea89f
commit: 41f4dc3bcf30cb8362a062a26818311c704ea89f
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Raymond Hettinger <rhettinger at users.noreply.github.com>
date: 2020-01-27T19:40:14-08:00
summary:
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 01bf2196d842fc20667c5336e0a7a77eb4fdc25c)
Co-authored-by: Raymond Hettinger <rhettinger at users.noreply.github.com>
Co-authored-by: Raymond Hettinger <rhettinger at users.noreply.github.com>
files:
M Doc/library/statistics.rst
diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst
index 09b02cabf21f8..026f4aa462d3d 100644
--- a/Doc/library/statistics.rst
+++ b/Doc/library/statistics.rst
@@ -734,10 +734,10 @@ of applications in statistics.
:class:`NormalDist` readily solves classic probability problems.
For example, given `historical data for SAT exams
-<https://blog.prepscholar.com/sat-standard-deviation>`_ showing that scores
-are normally distributed with a mean of 1060 and a standard deviation of 192,
-determine the percentage of students with test scores between 1100 and
-1200, after rounding to the nearest whole number:
+<https://nces.ed.gov/programs/digest/d17/tables/dt17_226.40.asp>`_ showing
+that scores are normally distributed with a mean of 1060 and a standard
+deviation of 195, determine the percentage of students with test scores
+between 1100 and 1200, after rounding to the nearest whole number:
.. doctest::
@@ -781,7 +781,7 @@ For example, an open source conference has 750 attendees and two rooms with a
500 person capacity. There is a talk about Python and another about Ruby.
In previous conferences, 65% of the attendees preferred to listen to Python
talks. Assuming the population preferences haven't changed, what is the
-probability that the rooms will stay within their capacity limits?
+probability that the Python room will stay within its capacity limits?
.. doctest::
More information about the Python-checkins
mailing list