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
Mostrar comentarios más antiguos
% Remove outliers
[PV52021_nG_clPR,outlierIndices] = rmoutliers(PV52021_nG,"quartiles",...
"ThresholdFactor",4);
5 comentarios
Dyuman Joshi
el 14 de Jul. de 2022
Editada: Dyuman Joshi
el 14 de Jul. de 2022
You have to use a two element vector - [40 60], instead of 4
Gaetano Mannino
el 14 de Jul. de 2022
Jonas
el 14 de Jul. de 2022
you can read in the doc
Outliers are defined as elements more than 1.5 interquartile ranges above the upper quartile (75 percent) or below the lower quartile (25 percent). This method is useful when the data in A is not normally distributed.
there you can replace the 1.5 factor by 4 to understand what it means
Gaetano Mannino
el 14 de Jul. de 2022
someData=randn(10000,1)+randi(10);
quartiles=quantile(someData,[0.25 0.75]);
iqr=diff(quartiles);
factor=4;
upperBorder=quartiles(2)+factor*iqr
lowerBorder=quartiles(1)-factor*iqr
Respuestas (0)
Categorías
Más información sobre Predictive Maintenance Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
