When I use quartile filter to remove outliers, how can I analitically express the thersehold factor? By default is 1.5, i need to know what rapresent thereshold factor of 4

1 回表示 (過去 30 日間)
% Remove outliers
[PV52021_nG_clPR,outlierIndices] = rmoutliers(PV52021_nG,"quartiles",...
"ThresholdFactor",4);
  5 件のコメント
Gaetano Mannino
Gaetano Mannino 2022 年 7 月 14 日
thanks exactly, i would like to knoow how "upper and lower limits" are calculated to understand what happens changing the value of the thereshold factor (it can be 4 like the example or another value)
Jonas
Jonas 2022 年 7 月 14 日
編集済み: Jonas 2022 年 7 月 14 日
someData=randn(10000,1)+randi(10);
quartiles=quantile(someData,[0.25 0.75]);
iqr=diff(quartiles);
factor=4;
upperBorder=quartiles(2)+factor*iqr
upperBorder = 16.0464
lowerBorder=quartiles(1)-factor*iqr
lowerBorder = 3.9419

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by