This is the most widely used method for outlier detection in econometrics and statistical problems. X
is our data that we're searching for outliers in it (in MATLAB) :
abs(X-mean(X)) >= n*std(X)
So if this inequality was true, that sample is an outlier; otherwise we will keep the sample. I'm using neural network
and SVM
for my classification problem. Before normalization of data, I find outlier for each feature in input database. After creating my MLP
or SVM
model now I want use it for out-sample data ( new data from this year - model trained by data of last year ).
- Should I use outlier detection in this new database?
- If answer to that question is yes, Should I use
mean
andstd
of previous year that was used for outlier detection of main data, or use newmean
andstd
of out-sample data?
A
, why would you try to judge the goodness of your model, which was designed/trained using data that followA
, to estimate against a value that does not follow that criterion? You just said it was nonsensical (based on criterionA
). On the same manner, the out-sample data, are out-sample data. The statistics of yourtraining
sample should not be applied to yourtest
sample. Otherwise you are re-using your data. $\endgroup$max
,min
,std
andmean
of data for normalization of out-sample data. because of that I thought maybe we have same method in outlier detection. What do you think? So I should have outlier detection in out-sample data (withmean
andstd
of out-sample) or don't have outlier detection in out-sample data? ( my out-sample data is not test sample - That is a new database that should check with destined model - this year data that we need prediction of it) $\endgroup$