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
BUG: stats.truncnorm.moments yields error for moment order greater than 5 #18634
Comments
Thanks for reporting. I'll take a look. Could be as simple as making the list in this line an array. That code wasn't modified in the recent I'm always curious about what these things are used for. Are you able to describe what you're working on? |
Do we really want to go into that direction and consider this to be on scope? To me higher moment is quite niche. Usually it's already hard to converge a 4th order, so going higher? If we really do that, maybe we should add some warnings both in the doc and raise some warnings if we think moments are not converged. |
It's not a new direction. |
Mmm ok but if we don't test and document a behavior, we can argue that it's a fortunate accident that something extra is working. |
What is not tested/documented? |
I am confused now, I thought that's what you were saying 😅 |
Describe your issue.
When using the stats.truncnorm.moment, I always get an error, if I try to compute a moment greater than 5
Reproducing Code Example
Error message
SciPy/NumPy/Python version and system information
The text was updated successfully, but these errors were encountered: