#8445·pymc

BUG: 对于卡西、指数和韦布尔分布,icdf 在远端尾部会丢失精度

作者: siddhant-shahhh创建于 2026年9月20日更新于 2026年9月20日
标签bug

For Cauchy, `tan(pi * (v - 1/2))` equals `-1 / tan(pi * v)` for `v < 1/2` and `1 / tan(pi * (1 - v))` for `v > 1/2`. Neither form cancels, and neither evaluates tan near its pole. The original expression is worth keeping around the median, where it cannot cancel and is exactly `alpha` at `v = 1/2`, which the reciprocal form is not.