Skip to content

The wrong skew measure? #90

@mcorrell

Description

@mcorrell

datalib currently calculates what is supposed to be Pearson's mode skewness, but does so as:
(avg - med) / std

This is non-parametric skewness, rather than:

Pearson's mode skewness which is
(avg - mode) / std

Or Pearson's median skewness, which is
3 * (avg - med) / std

So this is only giving correct values when med == mode.

Should I:

  1. Rename the function to reflect that it's nonparametric skew.
  2. Add a mode function, and then fix the modeskew function by calling mode.
  3. Add a factor of 3 and rename the function to reflect that it's median skew.
  4. Some combination of those things.
  5. None of those things.

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