Comments (1)
Also got caught by this!
Median absolute deviation is a well-defined statistic that doesn't include the normalization factor. Other software, such as scipy, matlab, mathematica, follow the definition (of course) and compute median(abs.(x .- median(x)))
. Would be totally sensible for Julia to also follow the definition.
Such behavior can only be changed in a breaking version, because it's documented. StatsBase does have breaking versions from time to time, can this be added to a list for the next potential breaking version? This amounts to chaning normalize=true
to normalize=false
as the default value.
I think the reason for this behavior in StatsBase is mostly historical. See earlier issues on this topic:
#97
#347
from statsbase.jl.
Related Issues (20)
- `wsample(w)` behaves not as the documentation describes it
- Move `entropy` to StatsAPI.jl and import it from there?
- Cronbach's alpha
- std,var return NaN when there is only one element in array. HOT 1
- Adopting Transducers.jl as a Dependency HOT 2
- Differences between zscore(X) and standardize(ZScoreTransform, X)
- bin and reduce
- additional higher-level `rle` api?
- zscore with missing values HOT 5
- Cumulant function is not numerically stable HOT 4
- Inf and NaN in weights HOT 7
- Inconsistencies between `mean` and `mean!` when using 0-Arrays.
- Duplicate function and help entry
- counts should accept AbstractUnitRange as levels argument
- Method ambiguities reported by Aqua HOT 1
- [feature request] allow `transform` to avoid Z-score transforming when sigma=0 HOT 1
- Improve performance of describe
- `alias_sample!` can be faster
- Return type of entropy changes with the base HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from statsbase.jl.