Skip to content

Naming for mad()? #347

Closed
Closed
@mikkling

Description

@mikkling

I'm just learning Julia, and it took a while to find out what was wrong with the code for my simple outlier detection algorithm test -- turns out that mad() doesn't yield the expected median of the absolute deviations from the median...

I looked at earlier issues in StatsBase about MAD and found this (#197):

"Just to be clear, constant is what make this function produce a consistent estimator of the standard deviation for normally distributed data. So if you intend to remove it, you need to either decide that (a) your estimator is inconsistent or (b) you don't provide any mechanism for producing the number some people believe MAD should generate."

This is certainly a good function, but perhaps it could be named something that indicates that it estimates standard deviation? I, for one, was expecting a function named mad to yield by-the-book MAD.

[This is also my very first post on GitHub. Sorry if I offend against proper posting conventions!]

|m|
Mikael

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions