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
{{ message }}
Repository navigation
Incorrect quantiles for beta-binomial distribution #2090
quantile re-derives the whole probability vector from pointwise pdf calls (each an independent logbeta-based formula evaluated in isolation) and hands it to Categorical, whose quantile does a plain left-to-right running sum against p. For p = 1.0 that running sum only needs to accumulate any tiny excess (here +1.3e-15 total, distributed unevenly across 1001 terms) to cross the >= 1.0 threshold hundreds of indices early, since most of the mass in this skewed case sits at very small k. cdf, defined independently via integerunitrange_cdf, does not share this error and correctly stays under 1.0 until k = 1000. The two functions on the same object were never checked against each other. [copied out of a longer response, may lack context]
Activity