You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Binomial distribution does not draw its PDF for n = 10 and alpha = 0. The script below generates the exception "The skewness is not defined for the Binomial distribution when p is 0 or 1".
The exception is triggered by the computation of the default plot range, based on 2 quantiles. It involves the call to Binomial::computeScalarQuantile, which uses the Cornish Fisher expansion to find a reasonable starting point for a sequential search of the quantile value. This expansion is based on higher order moments, not defined for a Dirac distribution. It should be fixed when the Binomial::computeScalarQuantile() is fixed, or at least you should get a different exception ;-)
What happened?
The Binomial distribution does not draw its PDF for n = 10 and alpha = 0. The script below generates the exception "The skewness is not defined for the Binomial distribution when p is 0 or 1".
How to reproduce the issue?
A workaround is to use the
Dirac(0)
distribution, which draws the correct PDF.Version
1.22
Operating System
unknown
Installation media
unknown
Additional Context
This bug was found by @adutfoy while working on quantiles of the Binomial distribution.
The text was updated successfully, but these errors were encountered: