Inconsistent behavior of exstimators for null samples
Offen
design-shed
- Vorherrschende Sprache
- Haskell
- Sterne
- 309
- Forks
- 76
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.