Skip to content

Idea: Outlier handling on X scale #207

@mayer79

Description

@mayer79

Could we introduce an option for plot_marginal() and maybe for some other plotting functions to winsorize outliers in numerical x before calculating bins?

There are a couple of options, and all have drawbacks:

  1. Winsorize values outside [q1 - alpha * IQR, q3 + alpha * IQR], where qi is the i-th quartile: Expensive to calculate on large data, but one could subsample on 10k rows.
  2. Use mean(x) +- alpha std(x). Drawback: mean and std are not robust.
  3. Set manual limits. Drawback: User has to work.

Values outside the limits would fall into the most extreme bins for calculations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions