cms-analysis / HiggsAnalysis-CombinedLimit

CMS Higgs Combination toolkit.
https://cms-analysis.github.io/HiggsAnalysis-CombinedLimit/latest
Apache License 2.0
75 stars 383 forks source link

Adding option to remove outliers #973

Open nucleosynthesis opened 3 months ago

nucleosynthesis commented 3 months ago

Added option in HybridNew to remove outliers from test-stat distributions before calculating p-values/limits.

This option removes test-statistic values from the test-statistic distributions that are further than $X\sigma$ from the mean of the distribution, where $\sigma$ is the standard deviation of the distribution and $X$ is the value passed to the option, before calculating $p-$values and limits. Setting this to some reasonably large number (eg 50) should remove the spurious values. By default, no removal of outliers is performed.

Added text to documentation about this option.

nucleosynthesis commented 3 months ago

Obviously would be better to calculate median rather than mean before outlier removal, will update PR with that