How can outlier values be treated?

Data Science Interview QuestionsCategory: Data ScienceHow can outlier values be treated?
3 Answers
AP answered 2 years ago

if the no: of outliers is very less then they can be deleted from the dataset , if they constitute to majority of the data then we can replace them using mean or median for numerical data and mode for categorical dataset.

Sonal answered 2 years ago

A Very first step is to detect the outliers and then to remove those.there are many methods to detect the outliers.our main task is to find real outliers sometimes we cosider some points to be an outlier and remove it.
if data set is too large then will not affect the model if  outliers are removed.but if data set is small then to remove outlier can be dangerous.

priya answered 5 months ago

so first of all we should check whether the outlier is an error or it is an right outlier for example if we have an age column and age ranges between 10 to 50 but a row has 102 age then our outlier in this list would be 102 because it doesnt follow the general trend of the data but people can have 102 age but what if the list contains -5 so this is an error age cannot be in -5 in this case this outlier should remove also its important to check with the team whether you should keep that outlier or not

Your Answer

2 + 17 =