If we have a dataset that follows normal distribution than we can use 3 or more standard deviation to spot outliers in the dataset. Many times these are legitimate values and it really depends on the situation if you want to remove them or not. But removing outliers can significantly increase the statistical power of machine learning model hence it is recommended that you treat outliers before building a model. Z score indicates how many standard deviation away a given sample is. We are going to go through all this theory and write python code to remove outliers from heights dataset that I have taken it from kaggle.
Link for kaggle dataset: https://www.kaggle.com/mustafaali96/w...
Code & Exercise: https://github.com/codebasics/py/blob...
CSV file for exercise: https://github.com/codebasics/py/tree...
Topics
00:00 Introduction
00:20 Exploratory analysis on a kaggle dataset
01:14 Plot histogram and bell curve
06:30 Use 3 standard deviation to remove outliers
12:14 Use Z score to remove outliers
17:39 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: z score, standard deviation | Feature engineering tutorial python # 3 with a duration of hours minute second in good quality, which was uploaded by the user codebasics 28 May 2020, share the link with friends and acquaintances, this video has already been watched 137,469 times on youtube and it was liked by 2.5 thousand viewers. Enjoy your viewing!