This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients Folket, rhettinger, steven.daprano
Date 2020-06-11.17:17:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1591895859.24.0.354113391589.issue40855@roundup.psfhosted.org>
In-reply-to
Content
> do you have any comment on my previous answer?

I see what you're trying to do but think that interpretation is surprising
and is at odds with the existing and intended uses of the *xbar* argument.  

The goals were to allow the mean to be precomputed (common case) or to be recentered (uncommon).  Neither case should have the effect of changing the divisor.  

We can't break existing code that assumes that stdev(data) is equal to stdev(data, xbar=mean(data)).

>>> data = [1, 2]
>>> stdev(data)
0.7071067811865476
>>> stdev(data, xbar=mean(data))
0.7071067811865476
History
Date User Action Args
2020-06-11 17:17:39rhettingersetrecipients: + rhettinger, steven.daprano, Folket
2020-06-11 17:17:39rhettingersetmessageid: <1591895859.24.0.354113391589.issue40855@roundup.psfhosted.org>
2020-06-11 17:17:39rhettingerlinkissue40855 messages
2020-06-11 17:17:39rhettingercreate