[Feature] Add mean centering to statistics library#91633
Closed
knowmoe wants to merge 2 commits into
Closed
Conversation
|
Every change to Python requires a NEWS entry. Please, add it using the blurb_it Web app or the blurb command-line tool. |
Member
|
Hi, thanks for the PR! Adding a new function to the stdlib is a significant change, so I'd definitely advise opening an issue to discuss your proposed new feature. If you do so, and then change the title of your PR to reference your issue, the CI check will go green. You might also consider starting a discussion thread at https://discuss.python.org/c/ideas/6 |
Author
|
Shall do, cheers @AlexWaygood! |
Contributor
|
I think this is beyond the scope for statistics, doesn't meet any known user needs, and should not be added. |
Member
|
Thanks @nomothane.
I have never heard of mean-centering in this sense before. I know of it
in the sense of modifying the data set by subtracting the mean from each
data point to make the new mean be zero.
https://link.springer.com/article/10.3758/s13428-015-0624-x
https://www.theanalysisfactor.com/center-on-the-mean/
@nomothane do you have a link to more information about why somebody
might use this? The provided documentation is unclear to me. It appears
to be just multiplying the provided mean by (n-1)/n, where n = number of
data points.
Without a solid justification, I agree with @rhettinger that this should
not be added.
I think that we're going to reject this PR one way or another, but just
to be sure (and for future reference) it would be good if you could
provide a link to something explaining what this "mean centering" is
used for.
|
Contributor
|
No champions have emerged for this. Am marking a closed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Sorry, I don't have a GH issue number.
A quick one-over the docs should make sense of things 😉