Inconsistent behavior of exstimators for null samples
Open
design-shed
- Dominant language
- Haskell
- Stars
- 309
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.