Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mean/average absolute deviation mad() #11325

Closed
Foadsf opened this issue Jun 13, 2018 · 3 comments
Closed

mean/average absolute deviation mad() #11325

Foadsf opened this issue Jun 13, 2018 · 3 comments

Comments

@Foadsf
Copy link

Foadsf commented Jun 13, 2018

I'm really surprised that there are no mad function built into the numpy!

@rgommers
Copy link
Member

It's just not that often used. statsmodels has a MAD implementation, please use that one.

@Foadsf
Copy link
Author

Foadsf commented Jun 13, 2018

Why should I use a different library just for one function. I do not understand why you refuse to add it while it is very easy to implement. It takes just a couple of lines!

@rgommers
Copy link
Member

Why should I use a different library just for one function.

That argument can be used for lots and lots of functions. we don't just add anything to numpy, it has to be useful to a wide enough audience. Robust statistics don't meet that bar; statsmodels or scipy.stats are the places to add such stats-specific functionality.

It takes just a couple of lines!

You can then very easily just define it yourself when you need it, if you don't want to use statsmodels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants