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

More circular statistics, and use those for Distributions of Longitude (and Angle?) #14427

Open
mhvk opened this issue Feb 21, 2023 · 3 comments

Comments

@mhvk
Copy link
Contributor

mhvk commented Feb 21, 2023

What is the problem this feature will solve?

In discussions on fixing Distribution so that LatitudeDistribution and LongitudeDistribution can be created, @eerovaher noted that the standard pdf_mean, pdf_std, etc., are not really useful for Longitude, given the wrapping. We probably should use those in stats.circstat instead (or at least give the option to), but those do not have median, mad, and various sortings (including histograms) are missing as well (and are obviously tricky!).

Describe the desired outcome

Ideally we implement a full complement of circular statistics. In #14421 (comment), @nstarman linked to an introduction of circular statistics that includes a median, https://insidebigdata.com/2021/02/12/circular-statistics-in-python-an-intuitive-intro/

Additional context

No response

@mhvk
Copy link
Contributor Author

mhvk commented Feb 21, 2023

cc @larrybradley and @mirca

@pllim
Copy link
Member

pllim commented Feb 21, 2023

There is also this issue:

@nstarman
Copy link
Member

nstarman commented Feb 21, 2023

I agree #13749 is an ongoing issue! And it would be nice to upstream. However, I don't think this PR exacerbates issue 13749 as it adds statistics which should appear in any stats library, so we would need to make sure we and scipy have median stats, regardless.

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

No branches or pull requests

3 participants