haskell / haskell/statistics

Inconsistent behavior of exstimators for null samples

未关闭
#100 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
design-shed
主要语言
Haskell
星标
309
派生
76
PR 合并指标
30 天内没有已合并 PR

描述

Functions for estimation of various statistics have inconsistent behavior for samples of insufficient size. For example for empty sample
- mean returns NaN
- welfordMean returns 0
- Quantile.weightedAvg throws exception.

It's not clear what is correct behavior. One possibility is to simply return Maybe when estimate is impossible but that will require constant unwrapping of Maybes so I'm not sure it's good thing

was brought up in #94

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。