mean_removing_outli​ers(X, RMZEROVALS)

버전 1.0.0.0 (2.46 KB) 작성자: Ruggero G. Bettinardi
Compute Mean and St.Dev. after outliers' removal
다운로드 수: 63
업데이트 날짜: 2017/5/15

라이선스 보기

[M,SD,Cx] = mean_removing_outliers(X,RMZEROVALS)

Compute the (non-parametric) robust mean (M) and the standard deviation (SD)
of a given vector or matrix (X). The resulting values are considered robust as they are
computed ITERATIVELY removing those observations that are classified as outliers.
Instead of using the classical "Tukey's Boxplot" method (where observation Xi
is considered outlier if Xi < Q1 - 1.5·IQR or Xi > Q3 + 1.5·IQR), this algorithm uses a slightly
different method to detect outliers. Here, Xi is considered an outlier if
Xi < Q1 - 1.5*(Q2-Q1) or Xi > Q3 + 1.5*(Q3-Q2). This method is more conservative
(as the interval containing valid observations is in general narrower than
that defined by Tukey's method, thus usually leading to a bigger no. of
detected outliers) but at the same time it is more "tailored" on the actual
empirical distribution.
NOTE: NaN values are excluded from the computation.

INPUT

X : vector
RMZEROVALS : if '1', zero values are removed from the
computation. default RMZEROVALS is 0, meaning that
zero values are used in the computation.

OUTPUT

M : Robust mean (i.e. computed after outliers removal)
SD : Robust Standard Deviation (i.e. computed after outliers removal)
Cx : vector of the conserved (i.e. non-outliers) observations

인용 양식

Ruggero G. Bettinardi (2024). mean_removing_outliers(X, RMZEROVALS) (https://www.mathworks.com/matlabcentral/fileexchange/62953-mean_removing_outliers-x-rmzerovals), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2009a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Probability Distributions에 대해 자세히 알아보기
태그 태그 추가

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0