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
Theoretical mode
and modes
fail with some models
#1772
Comments
That fallback seems dangerous. Maybe we should remove it and replace it with individual methods for distributions that have a single mode? |
Yes. I was just about to make that point. The fallback inappropriately assumes a single mode. A more accurate approach would be to check the pdfs across the support of a distribution:
Brute force is inefficient, but it's better than efficiently arriving at an incorrect result. Perhaps someone could make some improvements to the above code, but that general approach would be better. Otherwise, I agree with @nalimilan, the fallback should be removed unless it always provides an accurate result. |
|
My mistake. I updated the example above so that it is restricted to |
The package does not calculate correctly the theoretical mode and/or modes under models like
Binomial
,Poisson
andNegativeBinomial
here some examples:The text was updated successfully, but these errors were encountered: