Outlier detection and removal using IQR | Feature engineering tutorial python # 4

Published: 29 May 2020
on channel: codebasics
88,400
1.7k

IQR is another technique that one can use to detect and remove outliers. The formula for IQR is very simple. IQR = Q3-Q1. Where Q3 is 75th percentile and Q1 is 25th percentile. Once you have IQR you can find upper and lower limit by removing this formula,
lower_limit = Q1-1.5*IQR
upper_limit = Q3 +1.5*IQR
Anything less than a lower limit or above the upper limit is considered outlier. We will use python pandas to remove outliers on a sample dataset and in the end, as usual, I have an interesting exercise for you to practice

Code & Exercise: https://github.com/codebasics/py/blob...
Link for kaggle dataset: https://www.kaggle.com/mustafaali96/w...

Topics

00:00 What is percentile and IQR
04:15 Remove outliers using IQR
06:55 Exercise

Do you want to learn technology from me? Check https://codebasics.io/ for my affordable video courses.

Website: https://codebasics.io/
Facebook:   / codebasicshub  
Twitter:   / codebasicshub  


On this page of the site you can watch the video online Outlier detection and removal using IQR | Feature engineering tutorial python # 4 with a duration of hours minute second in good quality, which was uploaded by the user codebasics 29 May 2020, share the link with friends and acquaintances, this video has already been watched 88,400 times on youtube and it was liked by 1.7 thousand viewers. Enjoy your viewing!